This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
gdb/2264: Support printing wchar_t strings
- From: rui dot maciel at gmail dot com
- To: gdb-gnats at sources dot redhat dot com
- Date: 26 May 2007 13:15:27 -0000
- Subject: gdb/2264: Support printing wchar_t strings
- Reply-to: rui dot maciel at gmail dot com
>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: