* tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
+2010-03-26 Stan Shebs <stan@codesourcery.com>
+
+ * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
+
2010-03-26 Tom Tromey <tromey@redhat.com>
* breakpoint.c (commands_command_1): Duplicate 'arg'.
if (!cont)
stop_tracing ();
}
+
+ /* Also we want to be out of tfind mode, otherwise things can get
+ confusing upon reconnection. Just use these calls instead of
+ full tfind_1 behavior because we're in the middle of detaching,
+ and there's no point to updating current stack frame etc. */
+ set_traceframe_number (-1);
+ set_traceframe_context (NULL);
}
/* Worker function for the various flavors of the tfind command. */