aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-23 00:49:33 +0000
committerPaul Pluzhnikov <ppluzhnikov@google.com>2009-10-23 00:49:33 +0000
commit9c4191458a49d50ebda256b624eac5fc646f31a8 (patch)
tree474b2881c23441366319c61e671703aef7578058 /gdb/doc
parentbb8a0291affe114880874c0e192b471c87663b27 (diff)
downloadgdb-9c4191458a49d50ebda256b624eac5fc646f31a8.zip
gdb-9c4191458a49d50ebda256b624eac5fc646f31a8.tar.gz
gdb-9c4191458a49d50ebda256b624eac5fc646f31a8.tar.bz2
2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
* disasm.h (DISASSEMBLY_OMIT_FNAME) New define. (gdb_disassembly): Correct parameter name. * disasm.c (dump_insns): Adjust. (gdb_disassembly): Fix indentation. * cli/cli-cmds.c (disassemble_command): Adjust. doc/ChangeLog: 2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.texinfo (Machine Code): Mention function name in disasssembly and adjust example. testsuite/ChangeLog: 2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.asm/asm-source.exp: Adjust.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo24
2 files changed, 18 insertions, 11 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7f70e8d..d65e6856 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2009-10-22 Paul Pluzhnikov <ppluzhnikov@google.com>
+
+ * gdb.texinfo (Machine Code): Mention function name in disasssembly
+ and adjust example.
+
2009-10-22 Michael Snyder <msnyder@vmware.com>
* gdb.texinfo (Process Record and Replay): Document new form of
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 18bad64..c1e393f 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -6540,7 +6540,9 @@ 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.
+(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).
If the range of memory being disassembled contains current program counter,
the instruction at that location is shown with a @code{=>} marker.
@@ -6570,21 +6572,21 @@ program is stopped just after function prologue:
(@value{GDBP}) disas /m main
Dump of assembler code for function main:
5 @{
- 0x08048330 <main+0>: push %ebp
- 0x08048331 <main+1>: mov %esp,%ebp
- 0x08048333 <main+3>: sub $0x8,%esp
- 0x08048336 <main+6>: and $0xfffffff0,%esp
- 0x08048339 <main+9>: sub $0x10,%esp
+ 0x08048330 <+0>: push %ebp
+ 0x08048331 <+1>: mov %esp,%ebp
+ 0x08048333 <+3>: sub $0x8,%esp
+ 0x08048336 <+6>: and $0xfffffff0,%esp
+ 0x08048339 <+9>: sub $0x10,%esp
6 printf ("Hello.\n");
-=> 0x0804833c <main+12>: movl $0x8048440,(%esp)
- 0x08048343 <main+19>: call 0x8048284 <puts@@plt>
+=> 0x0804833c <+12>: movl $0x8048440,(%esp)
+ 0x08048343 <+19>: call 0x8048284 <puts@@plt>
7 return 0;
8 @}
- 0x08048348 <main+24>: mov $0x0,%eax
- 0x0804834d <main+29>: leave
- 0x0804834e <main+30>: ret
+ 0x08048348 <+24>: mov $0x0,%eax
+ 0x0804834d <+29>: leave
+ 0x0804834e <+30>: ret
End of assembler dump.
@end smallexample