Fix gdb.bas/sigall.exp testcase in AIX.

In AIX, we are not able to see the message of a signal recieved if a debugee recieves a signal.
This is a patch to fix the signal handling done incorrectly in AIX.

We remove the status that represent program recieving a signal and allow host_status_to_waitstatus to
handle it for us.
This commit is contained in:
Aditya Vidyadhar Kamath 2023-11-20 04:13:49 -06:00 committed by Ulrich Weigand
parent 4be3bbe89f
commit a68722065f

View file

@ -918,11 +918,8 @@ rs6000_nat_target::wait (ptid_t ptid, struct target_waitstatus *ourstatus,
/* stop after load" status. */
if (status == 0x57c)
ourstatus->set_loaded ();
/* 0x7f is signal 0. 0x17f and 0x137f are status returned
if we follow parent, a switch is made to a child post parent
execution and child continues its execution [user switches
to child and presses continue]. */
else if (status == 0x7f || status == 0x17f || status == 0x137f)
/* 0x7f is signal 0. */
else if (status == 0x7f)
ourstatus->set_spurious ();
/* A normal waitstatus. Let the usual macros deal with it. */
else