diff options
author | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:50:05 +0000 |
---|---|---|
committer | Markus Metzger <mmetzger@sourceware.org> | 2013-03-11 08:50:05 +0000 |
commit | 15984c13c729e1f05eb789a3883df82994d5a593 (patch) | |
tree | f80d1649597fb49b4f33b80f3845f724565a1d34 /gdb/record.h | |
parent | 67c86d068313124e6c73e6ec0294866fc0471268 (diff) | |
download | binutils-15984c13c729e1f05eb789a3883df82994d5a593.zip binutils-15984c13c729e1f05eb789a3883df82994d5a593.tar.gz binutils-15984c13c729e1f05eb789a3883df82994d5a593.tar.bz2 |
Add command to print the function names from recorded instructions.
This command provides a quick high-level overview over the recorded execution
log at function granularity without having to reverse-step.
gdb/
* target.c (target_call_history, target_call_history_from,
target_call_history_range): New.
* target.h (target_ops) <to_call_history, to_call_history_from,
to_call_history_range>: New fields.
(target_call_history, target_call_history_from,
target_call_history_range): New declaration.
* record.c (get_call_history_modifiers, cmd_record_call_history,
record_call_history_size): New.
(_initialize_record): Add the "record function-call-history" command.
Add "set/show record function-call-history-size" commands.
* record.h (record_print_flag): New.
Diffstat (limited to 'gdb/record.h')
-rw-r--r-- | gdb/record.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h index 04d6b4a..86e6bc6 100644 --- a/gdb/record.h +++ b/gdb/record.h @@ -32,6 +32,16 @@ extern struct cmd_list_element *set_record_cmdlist; extern struct cmd_list_element *show_record_cmdlist; extern struct cmd_list_element *info_record_cmdlist; +/* A list of flags specifying what record target methods should print. */ +enum record_print_flag +{ + /* Print the source file and line (if applicable). */ + record_print_src_line = (1 << 0), + + /* Print the instruction number range (if applicable). */ + record_print_insn_range = (1 << 1), +}; + /* Wrapper for target_read_memory that prints a debug message if reading memory fails. */ extern int record_read_memory (struct gdbarch *gdbarch, |