aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>2010-03-27 00:12:34 +0000
committerStan Shebs <shebs@codesourcery.com>2010-03-27 00:12:34 +0000
commit8b9b7ef838c598bb3aaf224e6cd515a6f7e26364 (patch)
tree37553817bbd17951f24abd78041cc1b2fad929c0 /gdb
parent7989c76eacd524b1191c0884197e6455dd048508 (diff)
downloadgdb-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')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/tracepoint.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d539e8f..6f7ef22 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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'.
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. */