diff options
author | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-11-23 18:44:11 +0000 |
---|---|---|
committer | Paul Pluzhnikov <ppluzhnikov@google.com> | 2009-11-23 18:44:11 +0000 |
commit | 21a0512e533ac4e5d504e6674ff1361da59535fc (patch) | |
tree | 0650553121666c6029553f7f92bcc620fd151a23 /gdb/doc/gdb.texinfo | |
parent | 1338dd10efb7f5b6ab29142fa07004ff900a20b4 (diff) | |
download | gdb-21a0512e533ac4e5d504e6674ff1361da59535fc.zip gdb-21a0512e533ac4e5d504e6674ff1361da59535fc.tar.gz gdb-21a0512e533ac4e5d504e6674ff1361da59535fc.tar.bz2 |
gdb/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* cli/cli-cmds.c (disassemble_command): Split on comma.
(init_cli_cmds): Update help.
* NEWS: Mention incompatible change to 'disassemble'.
gdb/testsuite/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.asm/asm-source.exp: Adjust.
* gdb.base/help.exp: Adjust.
gdb/doc/ChangeLog:
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com>
* gdb.texinfo (Machine Code): Adjust.
Diffstat (limited to 'gdb/doc/gdb.texinfo')
-rw-r--r-- | gdb/doc/gdb.texinfo | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index a388bc9..bf76aa1 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -6539,10 +6539,14 @@ in symbolic form by specifying the @code{/r}. The default memory range is the function surrounding the program counter of the selected frame. A single argument to this command is a program counter value; @value{GDBN} dumps the function -surrounding this value. Two arguments specify a range of addresses -(first inclusive, second exclusive) to dump. In that case, the name of -the function is also printed (since there could be several functions in -the given range). +surrounding this value. When two arguments are given, they should +be separated by a comma, possibly surrounded by whitespace. The +arguments specify a range of addresses (first inclusive, second exclusive) +to dump. In that case, the name of the function is also printed (since +there could be several functions in the given range). + +The argument(s) can be any expression yielding a numeric value, such as +@samp{0x32c4}, @samp{&main+10} or @samp{$pc - 8}. If the range of memory being disassembled contains current program counter, the instruction at that location is shown with a @code{=>} marker. @@ -6552,7 +6556,7 @@ The following example shows the disassembly of a range of addresses of HP PA-RISC 2.0 code: @smallexample -(@value{GDBP}) disas 0x32c4 0x32e4 +(@value{GDBP}) disas 0x32c4, 0x32e4 Dump of assembler code from 0x32c4 to 0x32e4: 0x32c4 <main+204>: addil 0,dp 0x32c8 <main+208>: ldw 0x22c(sr0,r1),r26 |