From 0c532a298058669a72061ad94ba9e24170ae91ae Mon Sep 17 00:00:00 2001 From: Markus Metzger Date: Fri, 11 Sep 2015 10:09:54 +0200 Subject: 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. --- gdb/record.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gdb/record.c') 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\ -- cgit v1.1