]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix AIX catchpoint warning during fork () event
authorAditya Vidyadhar Kamath <Aditya.Kamath1@ibm.com>
Wed, 10 Jan 2024 02:50:37 +0000 (20:50 -0600)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Wed, 10 Jan 2024 16:38:10 +0000 (17:38 +0100)
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.

gdb/rs6000-aix-nat.c

index 771fef407a74342c6727f6e4c84b9cef6f755990..74cc4879729d1220583d996a2ace8ab2342fddb6 100644 (file)
@@ -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