summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
committerJohn Baldwin <jhb@FreeBSD.org>2022-03-22 12:05:43 -0700
commit711b0b6698ff6350b7c61710491c76c749945d4a (patch)
treef3f309efa231ad268730188827235314600a4ff5 /gdb/i386-fbsd-nat.c
parentRemove two unused variables (diff)
downloadbinutils-gdb-711b0b6698ff6350b7c61710491c76c749945d4a.tar.gz
binutils-gdb-711b0b6698ff6350b7c61710491c76c749945d4a.tar.bz2
binutils-gdb-711b0b6698ff6350b7c61710491c76c749945d4a.zip
Remove USE_SIGTRAP_SIGINFO condition for FreeBSD/x86 debug regs support.
For BSD x86 targets, stopped_by_hw_breakpoint doesn't check siginfo_t but inspects the DR6 register directly via PT_GETDBREGS.
Diffstat (limited to 'gdb/i386-fbsd-nat.c')
-rw-r--r--gdb/i386-fbsd-nat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/i386-fbsd-nat.c b/gdb/i386-fbsd-nat.c
index a6ced66250c..023f24bab37 100644
--- a/gdb/i386-fbsd-nat.c
+++ b/gdb/i386-fbsd-nat.c
@@ -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