aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@codesourcery.com>2006-06-08 19:08:22 +0000
committerNathan Sidwell <nathan@codesourcery.com>2006-06-08 19:08:22 +0000
commitad9a8f3f0088e383aa284d3f654af2852ed59dac (patch)
treede34f7a650ff6ac42676d1501d6ed395afcc7f77 /gdb/remote.c
parent1dd41f16d1f2ad0257298ebccc2fb0ce66da5532 (diff)
downloadgdb-ad9a8f3f0088e383aa284d3f654af2852ed59dac.zip
gdb-ad9a8f3f0088e383aa284d3f654af2852ed59dac.tar.gz
gdb-ad9a8f3f0088e383aa284d3f654af2852ed59dac.tar.bz2
* remote-fileio.c (remote_fileio_reset): New.
* remote-fileio.h (remote_fileio_reset): Prototype. * remote.c (extended_remote_restart, remote_open_1): Call it.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r--gdb/remote.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/remote.c b/gdb/remote.c
index d06ac86..9b7483d 100644
--- a/gdb/remote.c
+++ b/gdb/remote.c
@@ -1818,6 +1818,8 @@ extended_remote_restart (void)
xsnprintf (rs->buf, get_remote_packet_size (), "R%x", 0);
putpkt (rs->buf);
+ remote_fileio_reset ();
+
/* Now query for status so this looks just like we restarted
gdbserver from scratch. */
putpkt ("?");
@@ -2073,6 +2075,7 @@ remote_open_1 (char *name, int from_tty, struct target_ops *target,
unpush_target (target);
+ remote_fileio_reset ();
reopen_exec_file ();
reread_symbols ();