public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t." @ 2015-06-25 21:27 joehtg at joehtg dot co.at 2023-03-17 18:36 ` [Bug exp/18603] " tromey at sourceware dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: joehtg at joehtg dot co.at @ 2015-06-25 21:27 UTC (permalink / raw) To: gdb-prs 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. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug exp/18603] print L'a' triggers inadequate error message: "No type named wchar_t." 2015-06-25 21:27 [Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t." joehtg at joehtg dot co.at @ 2023-03-17 18:36 ` tromey at sourceware dot org 2023-03-17 18:45 ` hikari at noyu dot me 2023-03-17 18:58 ` sam at gentoo dot org 2 siblings, 0 replies; 4+ messages in thread From: tromey at sourceware dot org @ 2023-03-17 18:36 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=18603 --- Comment #2 from Tom Tromey <tromey at sourceware dot org> --- wchar_t is defined for C++, see language_arch_info in c-lang.c. It seems to me this could just be lifted to the C language as well. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug exp/18603] print L'a' triggers inadequate error message: "No type named wchar_t." 2015-06-25 21:27 [Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t." joehtg at joehtg dot co.at 2023-03-17 18:36 ` [Bug exp/18603] " tromey at sourceware dot org @ 2023-03-17 18:45 ` hikari at noyu dot me 2023-03-17 18:58 ` sam at gentoo dot org 2 siblings, 0 replies; 4+ messages in thread From: hikari at noyu dot me @ 2023-03-17 18:45 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=18603 hikari_no_yume <hikari at noyu dot me> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hikari at noyu dot me --- Comment #3 from hikari_no_yume <hikari at noyu dot me> --- (In reply to Tom Tromey from comment #2) > wchar_t is defined for C++, see language_arch_info in c-lang.c. > It seems to me this could just be lifted to the C language > as well. Would symbols from the executable still be able to override it? If so then this seems like a good idea. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug exp/18603] print L'a' triggers inadequate error message: "No type named wchar_t." 2015-06-25 21:27 [Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t." joehtg at joehtg dot co.at 2023-03-17 18:36 ` [Bug exp/18603] " tromey at sourceware dot org 2023-03-17 18:45 ` hikari at noyu dot me @ 2023-03-17 18:58 ` sam at gentoo dot org 2 siblings, 0 replies; 4+ messages in thread From: sam at gentoo dot org @ 2023-03-17 18:58 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=18603 Sam James <sam at gentoo dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sam at gentoo dot org -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-17 18:58 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-25 21:27 [Bug exp/18603] New: print L'a' triggers inadequate error message: "No type named wchar_t." joehtg at joehtg dot co.at 2023-03-17 18:36 ` [Bug exp/18603] " tromey at sourceware dot org 2023-03-17 18:45 ` hikari at noyu dot me 2023-03-17 18:58 ` sam at gentoo dot org
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).