aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>2024-01-09 20:50:37 -0600
committerUlrich Weigand <ulrich.weigand@de.ibm.com>2024-01-10 17:38:10 +0100
commite1cab50d2dd3d416662b5399bd80e6311a6ade0e (patch)
tree9774b1203cab80f8dd78ffb546cc69be77d62f8a /gdb
parent2967219a219a5a5fa5671761521d180f83c927cb (diff)
downloadfsf-binutils-gdb-e1cab50d2dd3d416662b5399bd80e6311a6ade0e.zip
fsf-binutils-gdb-e1cab50d2dd3d416662b5399bd80e6311a6ade0e.tar.gz
fsf-binutils-gdb-e1cab50d2dd3d416662b5399bd80e6311a6ade0e.tar.bz2
Fix AIX catchpoint warning during fork () event
In AIX we were missing some hooks needed to catch a fork () event in rs6000-aix-nat.c. Due to their absence we were returning 1 while we insert the breakpoint/catchpoint location. This patch is a fix to the same.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/rs6000-aix-nat.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/gdb/rs6000-aix-nat.c b/gdb/rs6000-aix-nat.c
index 771fef4..74cc487 100644
--- a/gdb/rs6000-aix-nat.c
+++ b/gdb/rs6000-aix-nat.c
@@ -104,6 +104,9 @@ public:
const struct target_desc *read_description () override;
+ int insert_fork_catchpoint (int) override;
+ int remove_fork_catchpoint (int) override;
+
protected:
void post_startup_inferior (ptid_t ptid) override;
@@ -477,6 +480,19 @@ rs6000_nat_target::follow_fork (inferior *child_inf, ptid_t child_ptid,
}
}
+/* Functions for catchpoint in AIX. */
+int
+rs6000_nat_target::insert_fork_catchpoint (int pid)
+{
+ return 0;
+}
+
+int
+rs6000_nat_target::remove_fork_catchpoint (int pid)
+{
+ return 0;
+}
+
/* Fetch register REGNO from the inferior. */
static void