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/disasm.h | |
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/disasm.h')
-rw-r--r-- | gdb/disasm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/disasm.h b/gdb/disasm.h index 20ceb2b8c79..3743ccc916b 100644 --- a/gdb/disasm.h +++ b/gdb/disasm.h @@ -23,6 +23,7 @@ #define DISASSEMBLY_RAW_INSN (0x1 << 1) #define DISASSEMBLY_OMIT_FNAME (0x1 << 2) #define DISASSEMBLY_FILENAME (0x1 << 3) +#define DISASSEMBLY_OMIT_PC (0x1 << 4) struct ui_out; struct ui_file; |