* gdb/remote.c (remote_open_1): Do preopen tasks before
irreversably destroying state.
This commit is contained in:
parent
ea9c271d4e
commit
1dd41f16d1
2 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue