aboutsummaryrefslogtreecommitdiff
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
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.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/remote.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c09c929..928f9a6 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2006-06-08 Nathan Sidwell <nathan@codesourcery.com>
+
+ * gdb/remote.c (remote_open_1): Do preopen tasks before
+ irreversably destroying state.
+
2006-06-08 Daniel Jacobowitz <dan@codesourcery.com>
* (struct remote_state): New type, only containing
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);