aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:38 +0200
committerTankut Baris Aktemur <tankut.baris.aktemur@intel.com>2021-04-22 17:22:38 +0200
commit35682f0a64145893cb1f3c0f6df0cfec7330b823 (patch)
treedaecc75de98e836f007486fcaa0e0962bc445100 /gdb/infcmd.c
parent6fee5eee88a622d3e1ce06c18342365a98db1d40 (diff)
downloadgdb-35682f0a64145893cb1f3c0f6df0cfec7330b823.zip
gdb-35682f0a64145893cb1f3c0f6df0cfec7330b823.tar.gz
gdb-35682f0a64145893cb1f3c0f6df0cfec7330b823.tar.bz2
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 <tankut.baris.aktemur@intel.com> * 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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c5
1 files changed, 1 insertions, 4 deletions
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);
}