* inf-loop.c (inferior_event_handler): Avoid calling is_running on

null inferior_ptid.
This commit is contained in:
Pedro Alves 2009-03-28 00:58:31 +00:00
parent 4af38be89b
commit 7b0e805131
2 changed files with 9 additions and 1 deletions

View file

@ -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.

View file

@ -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;