aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.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/remote.c
parent21d6c799a732f0a8b78d701d9b055508664389f6 (diff)
downloadgdb-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.c2
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. */