aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-02-07 20:38:23 +0000
committerDoug Evans <dje@google.com>2013-02-07 20:38:23 +0000
commit7e1e03400a951a8508e6ff822a1705ac0745a50f (patch)
tree41a28927af36275ce8e235327da53fb601352c12 /gdb/doc
parent148de6bbb5fb9dc360a7e28e0c75d638e02caf1e (diff)
downloadgdb-7e1e03400a951a8508e6ff822a1705ac0745a50f.zip
gdb-7e1e03400a951a8508e6ff822a1705ac0745a50f.tar.gz
gdb-7e1e03400a951a8508e6ff822a1705ac0745a50f.tar.bz2
* cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
disassemble command. doc/ * gdb.texinfo (Machine Code): Clarify argument to disassemble command.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo5
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 7f5665a..7c16311 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,8 @@
+2013-02-07 Doug Evans <dje@google.com>
+
+ * gdb.texinfo (Machine Code): Clarify argument to disassemble
+ command.
+
2013-02-06 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (GDB/MI Async Records): Document new MI
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index 2b95415..e3f336e 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -7373,6 +7373,11 @@ Dump of assembler code from 0x400281 to 0x40028b:
End of assembler dump.
@end smallexample
+Addresses cannot be specified as a linespec (@pxref{Specify Location}).
+So, for example, if you want to disassemble function @code{bar}
+in file @file{foo.c}, you must type @samp{disassemble 'foo.c'::bar}
+and not @samp{disassemble foo.c:bar}.
+
Some architectures have more than one commonly-used set of instruction
mnemonics or other syntax.