Pass inferior down to target_detach and to_detach
[deliverable/binutils-gdb.git] / gdb / infcmd.c
index 1b63f9b730a174137646fc7d59790f8c5087bd6a..4ad37aa2756a14a8da85ddc93c7913692ecfb53a 100644 (file)
@@ -1,6 +1,6 @@
 /* Memory-access and commands for "inferior" process, for GDB.
 
-   Copyright (C) 1986-2017 Free Software Foundation, Inc.
+   Copyright (C) 1986-2018 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -2976,7 +2976,7 @@ detach_command (const char *args, int from_tty)
 
   disconnect_tracing ();
 
-  target_detach (args, from_tty);
+  target_detach (current_inferior (), from_tty);
 
   /* The current inferior process was just detached successfully.  Get
      rid of breakpoints that no longer make sense.  Note we don't do
This page took 0.023785 seconds and 4 git commands to generate.