diff options
author | Pierre Muller <muller@sourceware.org> | 2010-04-21 23:21:04 +0000 |
---|---|---|
committer | Pierre Muller <muller@sourceware.org> | 2010-04-21 23:21:04 +0000 |
commit | 9a22f0d0aeec70f4ee1908008f3a2defaad6f7dd (patch) | |
tree | a36134950efba04d0c0104c79b7714b47e7e5d49 /gdb/doc | |
parent | 32d7376d07d6b1ae69b5e15d6b546a07f9fee446 (diff) | |
download | binutils-gdb-9a22f0d0aeec70f4ee1908008f3a2defaad6f7dd.tar.gz |
gdb ChangeLog
* gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
fields.
* gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
builtin_char32 fields.
* printcmd.c (decode_format): Set char size to '\0'
for strings unless explicit size is given.
(print_formatted): Correct calculation of NEXT_ADDRESS
for 16 or 32 bit strings.
(do_examine): Do not force byte size for strings.
Use builtin_char16 and builtin_char32 types to display
16 or 32 bit-wide strings.
(x_command): Set LAST_SIZE to 'b' for string type.
gdb/doc ChangeLog
* gdb.texinfo (Examining memory): Update for
change in string display with explicit size.
gdb/testsuite ChangeLog
* gdb.base/charset.c (Strin16, String32): New variables.
* gdb.base/charset.exp (gdb_test): Test correct display
of 16 or 32 bit strings.
Diffstat (limited to 'gdb/doc')
-rw-r--r-- | gdb/doc/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/doc/gdb.texinfo | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 243ef326688..84814a0223c 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-04-22 Pierre Muller <muller@ics.u-strasbg.fr> + + * gdb.texinfo (Examining memory): Update for change in string + display with explicit size. + 2010-04-19 Pedro Alves <pedro@codesourcery.com> PR breakpoints/8554. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 09244300480..97a5531c47d 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7262,8 +7262,16 @@ Giant words (eight bytes). @end table Each time you specify a unit size with @code{x}, that size becomes the -default unit the next time you use @code{x}. (For the @samp{s} and -@samp{i} formats, the unit size is ignored and is normally not written.) +default unit the next time you use @code{x}. For the @samp{i} format, +the unit size is ignored and is normally not written. For the @samp{s} format, +the unit size defaults to @samp{b}, unless it is explicitly given. +Use @kbd{x /hs} to display 16-bit char strings and @kbd{x /ws} to display +32-bit strings. The next use of @kbd{x /s} will again display 8-bit strings. +Note that the results depend on the programming language of the +current compilation unit. If the language is C, the @samp{s} +modifier will use the UTF-16 encoding while @samp{w} will use +UTF-32. The encoding is set by the programming language and cannot +be altered. @item @var{addr}, starting display address @var{addr} is the address where you want @value{GDBN} to begin displaying |