diff options
author | John Baldwin <jhb@FreeBSD.org> | 2023-03-27 12:51:02 -0700 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2023-03-27 12:51:02 -0700 |
commit | 5b9e851408c1933ddb45390768421cd0b2918637 (patch) | |
tree | ada9732040ff31391952e29651b265287d2eb0bc /gdb | |
parent | b48c2f04091d33d134b627f1b0a57e2d711cb5a2 (diff) | |
download | gdb-5b9e851408c1933ddb45390768421cd0b2918637.zip gdb-5b9e851408c1933ddb45390768421cd0b2918637.tar.gz gdb-5b9e851408c1933ddb45390768421cd0b2918637.tar.bz2 |
fbsd-nat: Use correct constant for target_waitstatus::sig.
Use GDB_SIGNAL_TRAP instead of SIGTRAP. This is a no-op since the
value of SIGTRAP on FreeBSD matches the value of GDB_SIGNAL_TRAP, but
it is more correct.
Approved-By: Simon Marchi <simon.marchi@efficios.com>
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/fbsd-nat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 2f5b512..04d67fc 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -1439,7 +1439,7 @@ fbsd_nat_target::wait_1 (ptid_t ptid, struct target_waitstatus *ourstatus, SIGTRAP, so only treat SIGTRAP events as system call entry/exit events. */ if (pl.pl_flags & (PL_FLAG_SCE | PL_FLAG_SCX) - && ourstatus->sig () == SIGTRAP) + && ourstatus->sig () == GDB_SIGNAL_TRAP) { #ifdef HAVE_STRUCT_PTRACE_LWPINFO_PL_SYSCALL_CODE if (catch_syscall_enabled ()) |