Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Mike Roman <mikeroman694@yahoo.com>
Cc: gdb@sources.redhat.com
Subject: Re: gdbserver and the gdb "load" command for remote target
Date: Tue, 08 Oct 2002 11:15:00 -0000	[thread overview]
Message-ID: <20021008181623.GB29501@nevyn.them.org> (raw)
In-Reply-To: <20021008175759.92112.qmail@web13113.mail.yahoo.com>

On Tue, Oct 08, 2002 at 10:57:59AM -0700, Mike Roman wrote:
> I have one problem. I want to be able to dynamically
> be able to load new test program to the target using
> gdb. Assuming I don't have the executable for the test
> program already stored in the target (for example, I
> want to test a new testprogram#2), can I use gdb to
> transfer it to the target and debug it? And after
> loading it, what is the command to use to instruct the
> gdbserver to run this program?

No, you can't.  gdbserver does not support this.  It's not practical
to, in the presence of things like dynamic linking.

> When invoking the server program, it requires the name
> of the program to debug, and it seems that you can not
> at later time try to load (or change to) a different
> program than the originally given to gdbserver? If
> this is true, then the gdb "load" command is not very
> useful.

Right.  Using load is not useful for server targets.

Wolfgang posted patches to support a daemon mode for gdbserver that
would allow things like this, but he never pursued copyright assignment
for them.  So they went nowhere.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


      reply	other threads:[~2002-10-08 18:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-10-08 10:58 Mike Roman
2002-10-08 11:15 ` Daniel Jacobowitz [this message]

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=20021008181623.GB29501@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=gdb@sources.redhat.com \
    --cc=mikeroman694@yahoo.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