aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2012-05-28 20:43:26 +0000
committerPedro Alves <palves@redhat.com>2012-05-28 20:43:26 +0000
commitae25568b690d6778eef8a2b800f14dd0a77c2fb2 (patch)
treed5968fcdc32a7511377827986bcd823702721316 /gdb
parent0c5bf5a97d48620c93deb4dbc65da9cd94c2ef8f (diff)
downloadgdb-ae25568b690d6778eef8a2b800f14dd0a77c2fb2.zip
gdb-ae25568b690d6778eef8a2b800f14dd0a77c2fb2.tar.gz
gdb-ae25568b690d6778eef8a2b800f14dd0a77c2fb2.tar.bz2
2012-05-28 Pedro Alves <palves@redhat.com>
* infrun.c (wait_for_inferior): Move ecss and ecs locals to the block that uses them. Clear ecss before handling each event.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c9
2 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 49e7259..197749e 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2012-05-28 Pedro Alves <palves@redhat.com>
+
+ * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
+ block that uses them. Clear ecss before handling each event.
+
2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
* solib-svr4.c (svr4_current_sos): New comment on
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 50ad217..45b1fe7 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -2694,8 +2694,6 @@ void
wait_for_inferior (void)
{
struct cleanup *old_cleanups;
- struct execution_control_state ecss;
- struct execution_control_state *ecs;
if (debug_infrun)
fprintf_unfiltered
@@ -2704,13 +2702,14 @@ wait_for_inferior (void)
old_cleanups =
make_cleanup (delete_step_thread_step_resume_breakpoint_cleanup, NULL);
- ecs = &ecss;
- memset (ecs, 0, sizeof (*ecs));
-
while (1)
{
+ struct execution_control_state ecss;
+ struct execution_control_state *ecs = &ecss;
struct cleanup *old_chain;
+ memset (ecs, 0, sizeof (*ecs));
+
overlay_cache_invalid = 1;
if (deprecated_target_wait_hook)