public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] fbsd-nat: Use correct constant for target_waitstatus::sig.
@ 2023-03-27 19:51 John Baldwin
  0 siblings, 0 replies; only message in thread
From: John Baldwin @ 2023-03-27 19:51 UTC (permalink / raw)
  To: gdb-cvs

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5b9e851408c1933ddb45390768421cd0b2918637

commit 5b9e851408c1933ddb45390768421cd0b2918637
Author: John Baldwin <jhb@FreeBSD.org>
Date:   Mon Mar 27 12:51:02 2023 -0700

    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>

Diff:
---
 gdb/fbsd-nat.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c
index 2f5b512fb33..04d67fc5278 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 ())

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-03-27 19:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 19:51 [binutils-gdb] fbsd-nat: Use correct constant for target_waitstatus::sig John Baldwin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).