aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-06-08 19:04:08 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-06-08 19:04:08 +0000
commit1dd41f16d1f2ad0257298ebccc2fb0ce66da5532 (patch)
tree85a153c5311eb6adcf9cac38c1a99ddc61d49f0e /gdb/remote.c
parentea9c271d4e9a8d5c8c73495aef96b5a07d2c75e1 (diff)
downloadgdb-1dd41f16d1f2ad0257298ebccc2fb0ce66da5532.zip
gdb-1dd41f16d1f2ad0257298ebccc2fb0ce66da5532.tar.gz
gdb-1dd41f16d1f2ad0257298ebccc2fb0ce66da5532.tar.bz2
* gdb/remote.c (remote_open_1): Do preopen tasks before
irreversably destroying state.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index bf182b6..d06ac86 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -2069,13 +2069,13 @@ remote_open_1 (char *name, int from_tty, struct target_ops *target,
if (!async_p)
wait_forever_enabled_p = 1;
- reopen_exec_file ();
- reread_symbols ();
-
target_preopen (from_tty);
unpush_target (target);
+ reopen_exec_file ();
+ reread_symbols ();
+
remote_desc = remote_serial_open (name);
if (!remote_desc)
perror_with_name (name);