Remove USE_SIGTRAP_SIGINFO condition for FreeBSD/x86 debug regs support.
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Mar 2022 19:05:43 +0000 (12:05 -0700)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Mar 2022 19:05:43 +0000 (12:05 -0700)
For BSD x86 targets, stopped_by_hw_breakpoint doesn't check siginfo_t
but inspects the DR6 register directly via PT_GETDBREGS.

gdb/amd64-fbsd-nat.c
gdb/i386-fbsd-nat.c

index 98a1af03a66012812991a1ba3f76b26c8ea8e747..368f4c107864c1ba7f2c7fb57a231c04d255f73d 100644 (file)
@@ -46,7 +46,7 @@ public:
 
   const struct target_desc *read_description () override;
 
-#if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
+#if defined(HAVE_PT_GETDBREGS)
   bool supports_stopped_by_hw_breakpoint () override;
 #endif
 };
@@ -348,7 +348,7 @@ amd64_fbsd_nat_target::read_description ()
     return i386_target_description (X86_XSTATE_SSE_MASK, true);
 }
 
-#if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
+#if defined(HAVE_PT_GETDBREGS)
 /* Implement the supports_stopped_by_hw_breakpoints method.  */
 
 bool
index a6ced66250cdf42ef3154a22102424878084dc26..023f24bab3772c9855bceabd77178a4a35b5590c 100644 (file)
@@ -46,7 +46,7 @@ public:
 
   void resume (ptid_t, int, enum gdb_signal) override;
 
-#if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
+#if defined(HAVE_PT_GETDBREGS)
   bool supports_stopped_by_hw_breakpoint () override;
 #endif
 };
@@ -361,7 +361,7 @@ i386_fbsd_nat_target::read_description ()
   return i386_target_description (X86_XSTATE_X87_MASK, true);
 }
 
-#if defined(HAVE_PT_GETDBREGS) && defined(USE_SIGTRAP_SIGINFO)
+#if defined(HAVE_PT_GETDBREGS)
 /* Implement the supports_stopped_by_hw_breakpoints method.  */
 
 bool