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/remote.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/remote.c')
-rw-r--r-- | gdb/remote.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 24d10f2..080d048 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3054,6 +3054,8 @@ remote_close (void) delete_async_event_handler (&remote_async_inferior_event_token); remote_notif_unregister_async_event_handler (); + + trace_reset_local_state (); } /* Query the remote side for the text, data and bss offsets. */ |