gdb/2264: Support printing wchar_t strings

rui.maciel@gmail.com rui.maciel@gmail.com
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
>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:



More information about the Gdb-prs mailing list