]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/doc/gdb.texinfo
* cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
[thirdparty/binutils-gdb.git] / gdb / doc / gdb.texinfo
index 2b954156642f5938f695fc43b7bbf8bc5e419b56..e3f336ea7e1f5aa7f7db23a47bb57a2eb6091657 100644 (file)
@@ -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.