This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gdb/2264: Support printing wchar_t strings


>Number:         2264
>Category:       gdb
>Synopsis:       Support printing wchar_t strings
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Sat May 26 13:18:01 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator:     rui.maciel@gmail.com
>Release:        GNU gdb 6.6-debian
>Organization:
>Environment:
linux (ubuntu 7.04)
>Description:
It isn't possible to print a wchar_t string as if it was a char string. For example, let's say I have the following string:

wchar_t *test = L"hi there";

If I compile the program, run it through dbg and run the command:

print test

GDB's output is:

(gdb) print text
print text
$264 = (wchar_t *) 0x804c724
^done

It would be nice if GDB printed the string.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]