aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2011-02-11 15:07:50 +0000
committerPedro Alves <palves@redhat.com>2011-02-11 15:07:50 +0000
commitc5187ac67b5d78609b57df7c4a93a2f38813c006 (patch)
tree901112e3339edaa9e241819a0f6bfb7221ac551c /gdb
parent4f3e6fb7a0a03de50862ea7f19a45de4303bcdc1 (diff)
downloadgdb-c5187ac67b5d78609b57df7c4a93a2f38813c006.zip
gdb-c5187ac67b5d78609b57df7c4a93a2f38813c006.tar.gz
gdb-c5187ac67b5d78609b57df7c4a93a2f38813c006.tar.bz2
* infrun.c (proceed): Move switching out and in of tfind mode from
here ... (fetch_inferior_event): ... to here.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/infrun.c20
2 files changed, 16 insertions, 10 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c01f806..cde4e8d 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2011-02-11 Pedro Alves <pedro@codesourcery.com>
+
+ * infrun.c (proceed): Move switching out and in of tfind mode from
+ here ...
+ (fetch_inferior_event): ... to here.
+
2011-02-11 Yao Qi <yao@codesourcery.com>
* Makefile.in: Remove signals.o from COMMON_OBS. Link
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 664d91b..c894b32 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1994,16 +1994,6 @@ proceed (CORE_ADDR addr, enum target_signal siggnal, int step)
"infrun: proceed (addr=%s, signal=%d, step=%d)\n",
paddress (gdbarch, addr), siggnal, step);
- /* We're handling a live event, so make sure we're doing live
- debugging. If we're looking at traceframes while the target is
- running, we're going to need to get back to that mode after
- handling the event. */
- if (non_stop)
- {
- make_cleanup_restore_current_traceframe ();
- set_traceframe_number (-1);
- }
-
if (non_stop)
/* In non-stop, each thread is handled individually. The context
must already be set to the right thread here. */
@@ -2634,6 +2624,16 @@ fetch_inferior_event (void *client_data)
/* We'll update this if & when we switch to a new thread. */
previous_inferior_ptid = inferior_ptid;
+ /* We're handling a live event, so make sure we're doing live
+ debugging. If we're looking at traceframes while the target is
+ running, we're going to need to get back to that mode after
+ handling the event. */
+ if (non_stop)
+ {
+ make_cleanup_restore_current_traceframe ();
+ set_traceframe_number (-1);
+ }
+
if (non_stop)
/* In non-stop mode, the user/frontend should not notice a thread
switch due to internal events. Make sure we reverse to the