public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Fix gdb.bas/sigall.exp testcase in AIX.
@ 2023-11-21 9:23 Ulrich Weigand
0 siblings, 0 replies; only message in thread
From: Ulrich Weigand @ 2023-11-21 9:23 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a68722065fd544995137677fb0e57c392ef00e0e
commit a68722065fd544995137677fb0e57c392ef00e0e
Author: Aditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>
Date: Mon Nov 20 04:13:49 2023 -0600
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.
Diff:
---
gdb/rs6000-aix-nat.c | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/gdb/rs6000-aix-nat.c b/gdb/rs6000-aix-nat.c
index b7a34e0bf5f..771fef407a7 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-11-21 9:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-21 9:23 [binutils-gdb] Fix gdb.bas/sigall.exp testcase in AIX Ulrich Weigand
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).