diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-11-27 15:45:51 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-11-27 10:48:20 -0500 |
commit | f087eb27651a97ca2f6350c3c48fb97fc0da9669 (patch) | |
tree | c2998120feb08f9afa38644f48023ca576e2e341 /gdb/inf-ptrace.c | |
parent | 935dc9ff652ca256c10672412c1df3da95cadbfb (diff) | |
download | fsf-binutils-gdb-f087eb27651a97ca2f6350c3c48fb97fc0da9669.zip fsf-binutils-gdb-f087eb27651a97ca2f6350c3c48fb97fc0da9669.tar.gz fsf-binutils-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/inf-ptrace.c')
-rw-r--r-- | gdb/inf-ptrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c index ececf0e..407bffb 100644 --- a/gdb/inf-ptrace.c +++ b/gdb/inf-ptrace.c @@ -262,7 +262,7 @@ inf_ptrace_target::resume (ptid_t ptid, int step, enum gdb_signal signal) single-threaded processes, so simply resume the inferior. */ ptid = ptid_t (inferior_ptid.pid ()); - if (catch_syscall_enabled () > 0) + if (catch_syscall_enabled ()) request = PT_SYSCALL; else request = PT_CONTINUE; |