From 1dd41f16d1f2ad0257298ebccc2fb0ce66da5532 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Thu, 8 Jun 2006 19:04:08 +0000 Subject: * gdb/remote.c (remote_open_1): Do preopen tasks before irreversably destroying state. --- gdb/ChangeLog | 5 +++++ gdb/remote.c | 6 +++--- 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 + + * gdb/remote.c (remote_open_1): Do preopen tasks before + irreversably destroying state. + 2006-06-08 Daniel Jacobowitz * (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); -- cgit v1.1