aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-vx.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1997-02-16 01:50:18 +0000
committerStu Grossman <grossman@cygnus>1997-02-16 01:50:18 +0000
commite1a51cc222031c7a4e78102a7ab982e1ead553c5 (patch)
tree91f833208205f0cdd12238706518b371aabb96c9 /gdb/remote-vx.c
parent54626f1aa47e7251e1f966f5e9711ff74379bf6c (diff)
downloadfsf-binutils-gdb-e1a51cc222031c7a4e78102a7ab982e1ead553c5.zip
fsf-binutils-gdb-e1a51cc222031c7a4e78102a7ab982e1ead553c5.tar.gz
fsf-binutils-gdb-e1a51cc222031c7a4e78102a7ab982e1ead553c5.tar.bz2
* remote-vx.c (vx_attach): Fix for PR 11356. Remove code added
by kung. It made no sense.
Diffstat (limited to 'gdb/remote-vx.c')
-rw-r--r--gdb/remote-vx.c33
1 files changed, 5 insertions, 28 deletions
diff --git a/gdb/remote-vx.c b/gdb/remote-vx.c
index 13b6c29..00deb6f 100644
--- a/gdb/remote-vx.c
+++ b/gdb/remote-vx.c
@@ -1252,38 +1252,15 @@ vx_attach (args, from_tty)
}
/* It worked... */
- push_target (&vx_run_ops);
- /* The unsigned long pid will get turned into a signed int here,
- but it doesn't seem to matter. inferior_pid must be signed
- in order for other parts of GDB to work correctly. */
- inferior_pid = pid;
- vx_running = 0;
-#if defined (START_INFERIOR_HOOK)
- START_INFERIOR_HOOK ();
-#endif
-
- 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. */
+ inferior_pid = pid;
+ push_target (&vx_run_ops);
- init_wait_for_inferior ();
- clear_proceed_status ();
- stop_soon_quietly = 1;
- wait_for_inferior ();
- stop_soon_quietly = 0;
- normal_stop ();
+ if (vx_running)
+ free (vx_running);
+ vx_running = 0;
}
-
/* detach_command --
takes a program previously attached to and detaches it.
The program resumes execution and will no longer stop