diff options
author | Markus Metzger <markus.t.metzger@intel.com> | 2015-09-11 10:09:54 +0200 |
---|---|---|
committer | Markus Metzger <markus.t.metzger@intel.com> | 2015-11-04 09:16:18 +0100 |
commit | 0c532a298058669a72061ad94ba9e24170ae91ae (patch) | |
tree | b38ded99d8bc4574fe3a4ab801e498d1510aa56a /gdb/record.c | |
parent | f94cc8975cfcf8625833eba0c0077bb878f0cbaa (diff) | |
download | fsf-binutils-gdb-0c532a298058669a72061ad94ba9e24170ae91ae.zip fsf-binutils-gdb-0c532a298058669a72061ad94ba9e24170ae91ae.tar.gz fsf-binutils-gdb-0c532a298058669a72061ad94ba9e24170ae91ae.tar.bz2 |
btrace: add instruction-history /s and fix documentation
Add support for the /s modifier of the "record instruction-history" command. It
behaves exactly like /m and prints disassembled instructions in the order in
which they were recorded with interleaved sources. We accept /s in addition
to /m to align with the "disassemble" command.
The "record instruction-history" modifiers were not documented. Document
all of them.
gdb/
* record.c (get_insn_history_modifiers): Set DISASSEMBLY_SOURCE
instead of DISASSEMBLY_SOURCE_DEPRECATED. Also accept /s.
(_initialize_record): Document the /s modifier.
* NEWS: Announce record instruction-history's new /s modifier.
doc/
* gdb.texinfo (Process Record and Replay): Document "record
instruction-history" modifiers.
Diffstat (limited to 'gdb/record.c')
-rw-r--r-- | gdb/record.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/record.c b/gdb/record.c index 71ef973..b06bec7 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -458,7 +458,8 @@ get_insn_history_modifiers (char **arg) switch (*args) { case 'm': - modifiers |= DISASSEMBLY_SOURCE_DEPRECATED; + case 's': + modifiers |= DISASSEMBLY_SOURCE; modifiers |= DISASSEMBLY_FILENAME; break; case 'r': @@ -817,7 +818,7 @@ Argument is instruction number, as shown by 'info record'."), add_cmd ("instruction-history", class_obscure, cmd_record_insn_history, _("\ Print disassembled instructions stored in the execution log.\n\ -With a /m modifier, source lines are included (if available).\n\ +With a /m or /s modifier, source lines are included (if available).\n\ With a /r modifier, raw instructions in hex are included.\n\ With a /f modifier, function names are omitted.\n\ With a /p modifier, current position markers are omitted.\n\ |