diff options
author | Yao Qi <yao@codesourcery.com> | 2013-06-07 00:19:36 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-06-07 00:19:36 +0000 |
commit | aef525cb15cdf95759c015cf237d6337407aa47a (patch) | |
tree | a2c9fc37b466e36720b24c3e3d786993ba4b89f2 /gdb/ctf.c | |
parent | 21d6c799a732f0a8b78d701d9b055508664389f6 (diff) | |
download | gdb-aef525cb15cdf95759c015cf237d6337407aa47a.zip gdb-aef525cb15cdf95759c015cf237d6337407aa47a.tar.gz gdb-aef525cb15cdf95759c015cf237d6337407aa47a.tar.bz2 |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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. |