summaryrefslogtreecommitdiff
path: root/gdb/record.h
diff options
context:
space:
mode:
authormmetzger <mmetzger>2013-03-11 08:50:04 +0000
committermmetzger <mmetzger>2013-03-11 08:50:04 +0000
commit201e18ad00737a6c18d8f07d040747c9305c4c86 (patch)
tree486bf8f0a4f1670fff23898c2ef1f239d00446fc /gdb/record.h
parentd63ee17bdefcc06c7f15ac49b98fc339337cc5df (diff)
downloadgdb-201e18ad00737a6c18d8f07d040747c9305c4c86.tar.gz
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.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/record.h b/gdb/record.h
index 04d6b4ac9ff..86e6bc691db 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,