From 35682f0a64145893cb1f3c0f6df0cfec7330b823 Mon Sep 17 00:00:00 2001 From: Tankut Baris Aktemur Date: Thu, 22 Apr 2021 17:22:38 +0200 Subject: gdb/continuations: remove the 'err' from 'do_all_inferior_continuations' The 'err' parameter of 'do_all_inferior_continuations' is effectively unused. There is only one place where the function is called, and there the argument is a literal 0. So, remove the parameter. gdb/ChangeLog: 2021-04-22 Tankut Baris Aktemur * continuations.h (do_all_inferior_continuations): Remove the 'err' parameter. Update the references below. * continuations.c (do_my_continuations_1) (do_my_continuations) (do_all_inferior_continuations): Update. * inf-loop.c (inferior_event_handler): Update. * infcmd.c (attach_command_continuation): Update. --- gdb/infcmd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 3439568..5c3ee02 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -2547,14 +2547,11 @@ struct attach_command_continuation_args }; static void -attach_command_continuation (void *args, int err) +attach_command_continuation (void *args) { struct attach_command_continuation_args *a = (struct attach_command_continuation_args *) args; - if (err) - return; - attach_post_wait (a->from_tty, a->mode); } -- cgit v1.1