From f087eb27651a97ca2f6350c3c48fb97fc0da9669 Mon Sep 17 00:00:00 2001 From: Simon Marchi Date: Mon, 27 Nov 2023 15:45:51 +0000 Subject: gdb: make catch_syscall_enabled return bool Make it return a bool and adjust a few comparisons where it's used. Change-Id: Ic77d23b0dcfcfc9195dfe65e4c7ff9cf3229f6fb --- gdb/netbsd-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/netbsd-nat.c') diff --git a/gdb/netbsd-nat.c b/gdb/netbsd-nat.c index 0cfcb45..7ef200b 100644 --- a/gdb/netbsd-nat.c +++ b/gdb/netbsd-nat.c @@ -509,7 +509,7 @@ nbsd_resume(nbsd_nat_target *target, ptid_t ptid, int step, perror_with_name (("ptrace")); } - if (catch_syscall_enabled () > 0) + if (catch_syscall_enabled ()) request = PT_SYSCALL; else request = PT_CONTINUE; -- cgit v1.1