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/infrun.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/infrun.c') diff --git a/gdb/infrun.c b/gdb/infrun.c index a1543ab..cc6b203 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -5080,7 +5080,7 @@ handle_syscall_event (struct execution_control_state *ecs) syscall_number = ecs->ws.syscall_number (); ecs->event_thread->set_stop_pc (regcache_read_pc (regcache)); - if (catch_syscall_enabled () > 0 + if (catch_syscall_enabled () && catching_syscall_number (syscall_number)) { infrun_debug_printf ("syscall number=%d", syscall_number); -- cgit v1.1