diff options
author | Doug Evans <dje@google.com> | 2013-02-07 20:38:23 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2013-02-07 20:38:23 +0000 |
commit | 7e1e03400a951a8508e6ff822a1705ac0745a50f (patch) | |
tree | 41a28927af36275ce8e235327da53fb601352c12 /gdb/cli | |
parent | 148de6bbb5fb9dc360a7e28e0c75d638e02caf1e (diff) | |
download | gdb-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/cli')
-rw-r--r-- | gdb/cli/cli-cmds.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index d9bf80f..680cf99 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1843,7 +1843,12 @@ With a /m modifier, source lines are included (if available).\n\ With a /r modifier, raw instructions in hex are included.\n\ With a single argument, the function surrounding that address is dumped.\n\ Two arguments (separated by a comma) are taken as a range of memory to dump,\n\ - in the form of \"start,end\", or \"start,+length\".")); + in the form of \"start,end\", or \"start,+length\".\n\ +\n\ +Note that the address is interpreted as an expression, not as a location\n\ +like in the \"break\" command.\n\ +So, for example, if you want to disassemble function bar in file foo.c\n\ +you must type \"disassemble 'foo.c'::bar\" and not \"disassemble foo.c:bar\".")); set_cmd_completer (c, location_completer); if (xdb_commands) add_com_alias ("va", "disassemble", class_xdb, 0); |