From: Eli Zaretskii Date: Sat, 18 Jun 2005 12:10:55 +0000 (+0000) Subject: (Output Formats): More detailed description of the `c' format. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=51274035462db224eddb0a498a3fc890dbb50278;p=binutils-gdb.git (Output Formats): More detailed description of the `c' format. (Memory): List explicitly all the formats supported by `x'. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7f4d1591650..c05770c8dfb 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -3,6 +3,8 @@ * gdb.texinfo (Server): Clarify that `file' should be used before connecting to the server. (Files): Add an xref to the above description. + (Output Formats): More detailed description of the `c' format. + (Memory): List explicitly all the formats supported by `x'. 2005-06-18 Nick Roberts diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 88b9a2676f1..48295ce253f 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -5309,7 +5309,10 @@ The command @code{info symbol 0x54320} yields similar results. @xref{Symbols, info symbol}. @item c -Regard as an integer and print it as a character constant. +Regard as an integer and print it as a character constant. This +prints both the numerical value and its character representation. The +character representation is replaced with the octal escape @samp{\nnn} +for characters outside the 7-bit @sc{ascii} range. @item f Regard the bits of the value as a floating point number and print @@ -5359,10 +5362,12 @@ how much memory (counting by units @var{u}) to display. @c 4.1.2. @item @var{f}, the display format -The display format is one of the formats used by @code{print}, -@samp{s} (null-terminated string), or @samp{i} (machine instruction). -The default is @samp{x} (hexadecimal) initially. -The default changes each time you use either @code{x} or @code{print}. +The display format is one of the formats used by @code{print} +(@samp{x}, @samp{d}, @samp{u}, @samp{o}, @samp{t}, @samp{a}, @samp{c}, +@samp{f}), and in addition @samp{s} (for null-terminated strings) and +@samp{i} (for machine instructions). The default is @samp{x} +(hexadecimal) initially. The default changes each time you use either +@code{x} or @code{print}. @item @var{u}, the unit size The unit size is any of