* c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
pushing it on the output obstack.
This commit is contained in:
parent
17f2d84375
commit
2d90c72afe
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2009-05-12 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
|
* c-lang.c (print_wchar): Convert w into a gdb_wchar_t before
|
||||||
|
pushing it on the output obstack.
|
||||||
|
|
||||||
2009-05-11 Joel Brobecker <brobecker@adacore.com>
|
2009-05-11 Joel Brobecker <brobecker@adacore.com>
|
||||||
|
|
||||||
Fix internal error on breaking at a multi-locations caller source line.
|
Fix internal error on breaking at a multi-locations caller source line.
|
||||||
|
|
|
@ -166,9 +166,11 @@ print_wchar (gdb_wint_t w, const gdb_byte *orig, int orig_len,
|
||||||
&& w != LCST ('8')
|
&& w != LCST ('8')
|
||||||
&& w != LCST ('9'))))
|
&& w != LCST ('9'))))
|
||||||
{
|
{
|
||||||
|
gdb_wchar_t wchar = (gdb_wchar_t) w;
|
||||||
|
|
||||||
if (w == gdb_btowc (quoter) || w == LCST ('\\'))
|
if (w == gdb_btowc (quoter) || w == LCST ('\\'))
|
||||||
obstack_grow_wstr (output, LCST ("\\"));
|
obstack_grow_wstr (output, LCST ("\\"));
|
||||||
obstack_grow (output, &w, sizeof (gdb_wchar_t));
|
obstack_grow (output, &wchar, sizeof (gdb_wchar_t));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue