diff options
author | Stan Shebs <shebs@codesourcery.com> | 2010-03-27 00:12:34 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 2010-03-27 00:12:34 +0000 |
commit | 8b9b7ef838c598bb3aaf224e6cd515a6f7e26364 (patch) | |
tree | 37553817bbd17951f24abd78041cc1b2fad929c0 /gdb/tracepoint.c | |
parent | 7989c76eacd524b1191c0884197e6455dd048508 (diff) | |
download | gdb-8b9b7ef838c598bb3aaf224e6cd515a6f7e26364.zip gdb-8b9b7ef838c598bb3aaf224e6cd515a6f7e26364.tar.gz gdb-8b9b7ef838c598bb3aaf224e6cd515a6f7e26364.tar.bz2 |
2010-03-26 Stan Shebs <stan@codesourcery.com>
* tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c index 42210d4..daa2161 100644 --- a/gdb/tracepoint.c +++ b/gdb/tracepoint.c @@ -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. */ |