Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: gdb-patches@sources.redhat.com
Subject: [rfa/remote] Reread symbols on 'target remote'
Date: Sat, 28 Feb 2004 17:39:00 -0000	[thread overview]
Message-ID: <20040228173955.GA15910@nevyn.them.org> (raw)

Right now chng-syms.exp fails for remote targets, because "run" causes the
executable to be reread but "target remote" doesn't.  I thought I'd already
submitted a patch for this, a year or two ago, but I can't find it in my
archives anywhere.  This patch just adds a matching check to remote_open_1.

This patch, and another I'm about to send separately, fix chng-syms.exp for
gdbserver targets.

OK?

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

2004-02-28  Daniel Jacobowitz  <drow@mvista.com>

	* remote.c (remote_open_1): Reopen the exec file and reread symbols
	if necessary.

Index: gdb/remote.c
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/remote.c,v
retrieving revision 1.129
diff -u -p -r1.129 remote.c
--- gdb/remote.c	15 Feb 2004 15:22:06 -0000	1.129
+++ gdb/remote.c	27 Feb 2004 22:36:05 -0000
@@ -2146,6 +2146,9 @@ remote_open_1 (char *name, int from_tty,
   if (!async_p)
     wait_forever_enabled_p = 1;
 
+  reopen_exec_file ();
+  reread_symbols ();
+
   target_preopen (from_tty);
 
   unpush_target (target);


             reply	other threads:[~2004-02-28 17:39 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-28 17:39 Daniel Jacobowitz [this message]
2004-03-05  5:31 ` Andrew Cagney
2004-03-06 23:54   ` Daniel Jacobowitz
2004-03-17 15:16     ` Andrew Cagney
2004-03-19  0:09       ` Daniel Jacobowitz
2004-03-17 16:51         ` Daniel Jacobowitz
2004-03-22 22:28         ` Andrew Cagney
2004-03-23 15:50           ` Daniel Jacobowitz
2004-03-23 16:42             ` Andrew Cagney
2004-03-23 16:47               ` Daniel Jacobowitz
2004-03-19  0:09       ` Andrew Cagney
2004-03-19  0:09     ` Daniel Jacobowitz
2004-03-19  0:09   ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040228173955.GA15910@nevyn.them.org \
    --to=drow@false.org \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox