diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-03-22 12:05:43 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-03-22 12:05:43 -0700 |
commit | 711b0b6698ff6350b7c61710491c76c749945d4a (patch) | |
tree | f3f309efa231ad268730188827235314600a4ff5 /gdb/amd64-fbsd-nat.c | |
parent | de8fd80cf997516710c4f30e17e346e531cb2a4f (diff) | |
download | gdb-711b0b6698ff6350b7c61710491c76c749945d4a.zip gdb-711b0b6698ff6350b7c61710491c76c749945d4a.tar.gz gdb-711b0b6698ff6350b7c61710491c76c749945d4a.tar.bz2 |
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/amd64-fbsd-nat.c')
-rw-r--r-- | gdb/amd64-fbsd-nat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/amd64-fbsd-nat.c b/gdb/amd64-fbsd-nat.c index 98a1af0..368f4c1 100644 --- a/gdb/amd64-fbsd-nat.c +++ b/gdb/amd64-fbsd-nat.c @@ -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 |