2010-03-26 Stan Shebs <stan@codesourcery.com>

* tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
This commit is contained in:
Stan Shebs 2010-03-27 00:12:34 +00:00
parent 7989c76eac
commit 8b9b7ef838
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
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'.

View File

@ -1745,6 +1745,13 @@ disconnect_or_stop_tracing (int from_tty)
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. */