]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix gdb.bas/sigall.exp testcase in AIX.
authorAditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>
Mon, 20 Nov 2023 10:13:49 +0000 (04:13 -0600)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 21 Nov 2023 09:23:38 +0000 (10:23 +0100)
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.

gdb/rs6000-aix-nat.c

index b7a34e0bf5fd5d783af34ec9de9a7157c2ae98bd..771fef407a74342c6727f6e4c84b9cef6f755990 100644 (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