aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vx.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1992-09-26 05:20:24 +0000
committerJohn Gilmore <gnu@cygnus>1992-09-26 05:20:24 +0000
commit836e343b0145663c08f87d6e0cfdf2d43c493e53 (patch)
tree883564408f42536453ff73dc8981066a5554a830 /gdb/remote-vx.c
parent218ce930302dc328a7e6740d064ce38ffe76f0c8 (diff)
downloadgdb-836e343b0145663c08f87d6e0cfdf2d43c493e53.zip
gdb-836e343b0145663c08f87d6e0cfdf2d43c493e53.tar.gz
gdb-836e343b0145663c08f87d6e0cfdf2d43c493e53.tar.bz2
Split non-target-dependent code out of target_attach routines.
* target.h: Comments on target_attach args and results. * infcmd.c (attach_command): Check for existing execution, call target_attach, set up terminal status and wait_for_inferior, wait for the attach status, and do normal_stop. * inftarg.c (child_attach): Remove target independent stuff. * remote-adapt.c (adapt_attach): Ditto. * remote-mm.c (mm_attach): Ditto. * remote-udi.c (udi_attach): Ditto. * remote-vx.c (vx_attach): Ditto. Cleanup. * remote-hms.c (hms_attach): Remove completely, it was useless. * remote-mm.c, remote-hms.c, remote-udi.c, remote-adapt.c: Remove commented-out start_remote calls. * remote-hms.c, remote-adapt.c, remote-mm.c, remote-udi.c: Remove DENTER and DEXIT macros and their calls. Use a real debugger -- like gdb -- to see what functions are being called when.
Diffstat (limited to 'gdb/remote-vx.c')
-rw-r--r--gdb/remote-vx.c22
1 files changed, 1 insertions, 21 deletions
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index 39644f3..ddb6955 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -1126,8 +1126,7 @@ vx_open (args, from_tty)
clnt_freeres (pClient, xdr_ldtabl, &loadTable);
}
-/* attach_command --
- takes a task started up outside of gdb and ``attaches'' to it.
+/* Takes a task started up outside of gdb and ``attaches'' to it.
This stops it cold in its tracks and allows us to start tracing it. */
static void
@@ -1141,8 +1140,6 @@ vx_attach (args, from_tty)
Ptrace_return ptrace_out;
int status;
- dont_repeat();
-
if (!args)
error_no_arg ("process-id to attach");
@@ -1170,23 +1167,6 @@ vx_attach (args, from_tty)
push_target (&vx_run_ops);
inferior_pid = pid;
vx_running = 0;
-
- mark_breakpoints_out ();
-
- /* Set up the "saved terminal modes" of the inferior
- based on what modes we are starting it with. */
- target_terminal_init ();
-
- /* Install inferior's terminal modes. */
- target_terminal_inferior ();
-
- /* We will get a task spawn event immediately. */
- init_wait_for_inferior ();
- clear_proceed_status ();
- stop_soon_quietly = 1;
- wait_for_inferior ();
- stop_soon_quietly = 0;
- normal_stop ();
}