]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
[Ada] Fix printing of Wide_Wide_Strings
authorJoel Brobecker <brobecker@gnat.com>
Fri, 14 Jan 2011 20:18:10 +0000 (20:18 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Fri, 14 Jan 2011 20:18:10 +0000 (20:18 +0000)
commit40eb5175dc512f6ebdacf466f307beea7158134a
tree93d44571261b7a13e4fc3b16a80ce94c60f7b377
parente499f3729a307f20caf5b480d4394a1266230fb6
[Ada] Fix printing of Wide_Wide_Strings

This fixes the printing of Wide_Wide_String objects.  For instance,
consider:

    My_WWS : Wide_Wide_String := " helo";

Before this patch is applied, GDB prints:

    (gdb) print my_wws
    $1 = " ["00"]h["00"]e"

gdb/ChangeLog:

        * ada-valprint.c (ada_emit_char): Remove strange code.
        Check that c is <= UCHAR_MAX before passing it to isascii.
        (char_at): Do not assume that TYPE_LEN is either 1 or 2.
gdb/ChangeLog
gdb/ada-valprint.c