]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/ChangeLog
Use signal information to determine SIGTRAP type for FreeBSD.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
index 9a12a5e08fbfd880746007dde7b935ce7468d708..1190e0f2b364bb05902e86397bd50ad16077e000 100644 (file)
@@ -1,3 +1,19 @@
+2018-03-04  John Baldwin  <jhb@FreeBSD.org>
+
+       * fbsd-nat.c: Include "inf-ptrace.h".
+       (USE_SIGTRAP_SIGINFO): Conditionally define.
+       [USE_SIGTRAP_SIGINFO] (fbsd_handle_debug_trap): New function.
+       (fbsd_wait) [USE_SIGTRAP_SIGINFO]: Call "fbsd_handle_debug_trap".
+       [USE_SIGTRAP_SIGINFO] (fbsd_stopped_by_sw_breakpoint): New
+       function.
+       [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_sw_breakpoint):
+       Likewise.
+       [USE_SIGTRAP_SIGINFO] (fbsd_supports_stopped_by_hw_breakpoint):
+       Likewise.
+       (fbsd_nat_add_target) [USE_SIGTRAP_SIGINFO]: Set
+       "stopped_by_sw_breakpoint", "supports_stopped_by_sw_breakpoint",
+       "supports_stopped_by_hw_breakpoint" target methods.
+
 2018-03-04  John Baldwin  <jhb@FreeBSD.org>
 
        * NEWS (Changes since GDB 8.1): Add "set/show debug fbsd-nat".