* 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.
This commit is contained in:
Yao Qi
2013-06-07 00:19:36 +00:00
parent 21d6c799a7
commit aef525cb15
5 changed files with 31 additions and 7 deletions

View File

@ -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. */