gdb/2264: Support printing wchar_t strings
Sat May 26 13:18:00 GMT 2007

>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
>Release:        GNU gdb 6.6-debian
linux (ubuntu 7.04)
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

It would be nice if GDB printed the string.



More information about the Gdb-prs mailing list