Discussion:
[Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t."
joehtg at joehtg dot co.at
2015-06-25 21:27:51 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18603

Bug ID: 18603
Summary: print L'a' triggers inadequate error message: "No
type named wchar_t."
Product: gdb
Version: 7.7
Status: NEW
Severity: minor
Priority: P2
Component: exp
Assignee: unassigned at sourceware dot org
Reporter: joehtg at joehtg dot co.at
Target Milestone: ---

print wide literal, e.g. print L'a', causes error message
No type named wchar_t.
when no executable file is loaded or when the executable does not have wchar_t
variables.
gdb should get sizeof(wchar_t) from target-wide-charset
This would be useful for Debugging of programs using ICU or OCI (in UTF-16
mode) under Linux.
I'd like to use the command
print (wchar_t*)utext
for UChar * utext
if the program does not use native 32-bit wchar_t
--
You are receiving this mail because:
You are on the CC list for the bug.
tromey at sourceware dot org
2018-04-17 16:43:08 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=18603

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org

--- Comment #1 from Tom Tromey <tromey at sourceware dot org> ---
Getting the default from target-wide-charset seems reasonable.

Note that for printing a custom string type, it's much better to
write a pretty-printer in Python that can supply the correct encoding.
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...