diff options
author | mmetzger <mmetzger> | 2013-03-11 08:53:16 +0000 |
---|---|---|
committer | mmetzger <mmetzger> | 2013-03-11 08:53:16 +0000 |
commit | 0442a0cc085516276e3e40f674d7f2c2b2e8b933 (patch) | |
tree | 9f76f38fbbb422f86e0792a4a9962156dfc45956 /gdb/record.c | |
parent | 3576f33595d9226c324bd0dc1e5a33e75fc03c73 (diff) | |
download | gdb-0442a0cc085516276e3e40f674d7f2c2b2e8b933.tar.gz |
Add a disassembly flag to omit the pc prefix and use it in the "record
instruction-history" command of record-btrace.
The pc prefix would appear multiple times in the branch trace disassembly,
which is more confusing than helpful.
gdb/
* record-btrace.c (btrace_insn_history): Omit the pc prefix in
the instruction history disassembly.
* disasm.c (dump_insns): Omit the pc prefix, if requested.
* disasm.h (DISASSEMBLY_OMIT_PC): New.
Diffstat (limited to 'gdb/record.c')
-rw-r--r-- | gdb/record.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/record.c b/gdb/record.c index 6ac7a56bcd0..6bc1704a25b 100644 --- a/gdb/record.c +++ b/gdb/record.c @@ -411,6 +411,9 @@ get_insn_history_modifiers (char **arg) case 'f': modifiers |= DISASSEMBLY_OMIT_FNAME; break; + case 'p': + modifiers |= DISASSEMBLY_OMIT_PC; + break; default: error (_("Invalid modifier: %c."), *args); } @@ -691,6 +694,7 @@ Print disassembled instructions stored in the execution log.\n\ With a /m 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\ With no argument, disassembles ten more instructions after the previous \ disassembly.\n\ \"record instruction-history -\" disassembles ten instructions before a \ |