From 06cd862c015ff7285816de9e36290b5b1a7b090e Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Wed, 24 Feb 2010 01:06:28 +0000 Subject: * tracepoint.h (set_traceframe_number) (cleanup_restore_current_traceframe): Declare. * tracepoint.c (set_traceframe_number): New. (struct current_traceframe_cleanup): New. (do_restore_current_traceframe_cleanup) (restore_current_traceframe_cleanup_dtor) (make_cleanup_restore_current_traceframe): New. * infrun.c: Include tracepoint.h. (fetch_inferior_event): Switch out and in of tfind mode. --- gdb/tracepoint.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gdb/tracepoint.h') diff --git a/gdb/tracepoint.h b/gdb/tracepoint.h index d26c950..819a67a 100644 --- a/gdb/tracepoint.h +++ b/gdb/tracepoint.h @@ -140,6 +140,9 @@ extern void (*deprecated_trace_find_hook) (char *arg, int from_tty); extern void (*deprecated_trace_start_stop_hook) (int start, int from_tty); int get_traceframe_number (void); +void set_traceframe_number (int); +struct cleanup *make_cleanup_restore_current_traceframe (void); + void free_actions (struct breakpoint *); enum actionline_type validate_actionline (char **, struct breakpoint *); -- cgit v1.1