mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-22 19:09:31 +08:00
* infrun.c (normal_stop): Don't print a message if the inferior
has exited.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-09-08 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* infrun.c (normal_stop): Don't print a message if the inferior
|
||||||
|
has exited.
|
||||||
|
|
||||||
2003-09-08 Jim Blandy <jimb@redhat.com>
|
2003-09-08 Jim Blandy <jimb@redhat.com>
|
||||||
|
|
||||||
* Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
|
* Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
|
||||||
|
14
gdb/infrun.c
14
gdb/infrun.c
@ -3054,14 +3054,22 @@ print_stop_reason (enum inferior_stop_reason stop_reason, int stop_info)
|
|||||||
void
|
void
|
||||||
normal_stop (void)
|
normal_stop (void)
|
||||||
{
|
{
|
||||||
|
struct target_waitstatus last;
|
||||||
|
ptid_t last_ptid;
|
||||||
|
|
||||||
|
get_last_target_status (&last_ptid, &last);
|
||||||
|
|
||||||
/* As with the notification of thread events, we want to delay
|
/* As with the notification of thread events, we want to delay
|
||||||
notifying the user that we've switched thread context until
|
notifying the user that we've switched thread context until
|
||||||
the inferior actually stops.
|
the inferior actually stops.
|
||||||
|
|
||||||
(Note that there's no point in saying anything if the inferior
|
There's no point in saying anything if the inferior has exited.
|
||||||
has exited!) */
|
Note that SIGNALLED here means "exited with a signal", not
|
||||||
|
"received a signal". */
|
||||||
if (!ptid_equal (previous_inferior_ptid, inferior_ptid)
|
if (!ptid_equal (previous_inferior_ptid, inferior_ptid)
|
||||||
&& target_has_execution)
|
&& target_has_execution
|
||||||
|
&& last.kind != TARGET_WAITKIND_SIGNALLED
|
||||||
|
&& last.kind != TARGET_WAITKIND_EXITED)
|
||||||
{
|
{
|
||||||
target_terminal_ours_for_output ();
|
target_terminal_ours_for_output ();
|
||||||
printf_filtered ("[Switching to %s]\n",
|
printf_filtered ("[Switching to %s]\n",
|
||||||
|
Reference in New Issue
Block a user