diff options
author | Pedro Alves <pedro@codesourcery.com> | 2009-03-28 00:58:29 +0000 |
---|---|---|
committer | Pedro Alves <pedro@codesourcery.com> | 2009-03-28 00:58:29 +0000 |
commit | 46d9edb3cc87900695ed4f72b3db11d6b39f07f3 (patch) | |
tree | 01e9a41b1a71a3163652d5a3404d5e8bf00cb4e3 /gdb/inf-loop.c | |
parent | 33b624c666c0657d879322da307a8ff9712d5017 (diff) | |
download | gdb-46d9edb3cc87900695ed4f72b3db11d6b39f07f3.tar.gz |
* inf-loop.c (inferior_event_handler): Avoid calling is_running on
null inferior_ptid.
Diffstat (limited to 'gdb/inf-loop.c')
-rw-r--r-- | gdb/inf-loop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/inf-loop.c b/gdb/inf-loop.c index a730aed8e50..e19056766f8 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; |