summaryrefslogtreecommitdiff
path: root/gdb/ctf.c
diff options
context:
space:
mode:
authorYao Qi <yao@codesourcery.com>2013-06-07 00:19:36 +0000
committerYao Qi <yao@codesourcery.com>2013-06-07 00:19:36 +0000
commitaef525cb15cdf95759c015cf237d6337407aa47a (patch)
treea2c9fc37b466e36720b24c3e3d786993ba4b89f2 /gdb/ctf.c
parent21d6c799a732f0a8b78d701d9b055508664389f6 (diff)
downloadbinutils-gdb-aef525cb15cdf95759c015cf237d6337407aa47a.tar.gz
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.
Diffstat (limited to 'gdb/ctf.c')
-rw-r--r--gdb/ctf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/ctf.c b/gdb/ctf.c
index 13df0898658..278f9503107 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.