aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-linux-nat.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-11-27 15:45:51 +0000
committerSimon Marchi <simon.marchi@efficios.com>2023-11-27 10:48:20 -0500
commitf087eb27651a97ca2f6350c3c48fb97fc0da9669 (patch)
treec2998120feb08f9afa38644f48023ca576e2e341 /gdb/i386-linux-nat.c
parent935dc9ff652ca256c10672412c1df3da95cadbfb (diff)
downloadgdb-f087eb27651a97ca2f6350c3c48fb97fc0da9669.zip
gdb-f087eb27651a97ca2f6350c3c48fb97fc0da9669.tar.gz
gdb-f087eb27651a97ca2f6350c3c48fb97fc0da9669.tar.bz2
gdb: make catch_syscall_enabled return bool
Make it return a bool and adjust a few comparisons where it's used. Change-Id: Ic77d23b0dcfcfc9195dfe65e4c7ff9cf3229f6fb
Diffstat (limited to 'gdb/i386-linux-nat.c')
-rw-r--r--gdb/i386-linux-nat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c
index 7e0572e..43a0a8a5 100644
--- a/gdb/i386-linux-nat.c
+++ b/gdb/i386-linux-nat.c
@@ -652,7 +652,7 @@ i386_linux_nat_target::low_resume (ptid_t ptid, int step, enum gdb_signal signal
int pid = ptid.lwp ();
int request;
- if (catch_syscall_enabled () > 0)
+ if (catch_syscall_enabled ())
request = PTRACE_SYSCALL;
else
request = PTRACE_CONT;