From aef525cb15cdf95759c015cf237d6337407aa47a Mon Sep 17 00:00:00 2001 From: Yao Qi <yao@codesourcery.com> Date: Fri, 7 Jun 2013 00:19:36 +0000 Subject: gdb/ * tracepoint.c (start_tracing): Move code to ... (trace_reset_local_state): ... here. New. (disconnect_tracing): Don't call set_current_traceframe, set_tracepoint_num, and set_traceframe_context. Call trace_reset_local_state instead. (tfile_close): Call trace_reset_local_state. * ctf.c (ctf_close): Likewise. * remote.c (remote_close): Likewise. * tracepoint.h (trace_reset_local_state): Declare. --- gdb/ctf.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gdb/ctf.c') diff --git a/gdb/ctf.c b/gdb/ctf.c index 13df089..278f950 100644 --- a/gdb/ctf.c +++ b/gdb/ctf.c @@ -1212,6 +1212,8 @@ ctf_close (void) ctf_destroy (); xfree (trace_dirname); trace_dirname = NULL; + + trace_reset_local_state (); } /* This is the implementation of target_ops method to_files_info. -- cgit v1.1