aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>2023-11-20 04:13:49 -0600
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2023-11-21 10:23:38 +0100
commita68722065fd544995137677fb0e57c392ef00e0e (patch)
treed4630a6da70413277f578a1c0bf6d3aaf220ce27
parent4be3bbe89f67c360098373d4850565a472c36f9d (diff)
downloadgdb-a68722065fd544995137677fb0e57c392ef00e0e.zip
gdb-a68722065fd544995137677fb0e57c392ef00e0e.tar.gz
gdb-a68722065fd544995137677fb0e57c392ef00e0e.tar.bz2
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.
-rw-r--r--gdb/rs6000-aix-nat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/gdb/rs6000-aix-nat.c b/gdb/rs6000-aix-nat.c
index b7a34e0..771fef4 100644
--- a/gdb/rs6000-aix-nat.c
+++ b/gdb/rs6000-aix-nat.c
@@ -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