aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2009-03-28 00:58:31 +0000
committerPedro Alves <palves@redhat.com>2009-03-28 00:58:31 +0000
commit7b0e8051319071c234fd682d459148922622c35d (patch)
treec25ea1da2158d12e22acd2591baeb28c5484c1dc /gdb
parent4af38be89b614fc4ff33659503aea96af5adf6aa (diff)
downloadgdb-7b0e8051319071c234fd682d459148922622c35d.zip
gdb-7b0e8051319071c234fd682d459148922622c35d.tar.gz
gdb-7b0e8051319071c234fd682d459148922622c35d.tar.bz2
* inf-loop.c (inferior_event_handler): Avoid calling is_running on
null inferior_ptid.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/inf-loop.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0bef41c..b156123 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2009-03-28 Pedro Alves <pedro@codesourcery.com>
+
+ * inf-loop.c (inferior_event_handler): Avoid calling is_running on
+ null inferior_ptid.
+
2009-03-27 Eli Zaretskii <eliz@gnu.org>
* config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c
index a730aed..e190567 100644
--- a/gdb/inf-loop.c
+++ b/gdb/inf-loop.c
@@ -131,7 +131,10 @@ inferior_event_handler (enum inferior_event_type event_type,
bpstat_do_actions ();
}
- if (!was_sync && !is_running (inferior_ptid) && exec_done_display_p)
+ if (!was_sync
+ && exec_done_display_p
+ && (ptid_equal (inferior_ptid, null_ptid)
+ || !is_running (inferior_ptid)))
printf_unfiltered (_("completed.\n"));
break;