Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: Kevin Buettner <kevinb@redhat.com>
Cc: Andrew Cagney <ac131313@ges.redhat.com>,
	jorma.laaksonen@hut.fi, gdb-gnats@sources.redhat.com,
	gdb@sources.redhat.com
Subject: Re: gdb/633: fully qualified pathnames in solib_map_sections() and remote debugging
Date: Mon, 12 Aug 2002 09:29:00 -0000	[thread overview]
Message-ID: <20020812163012.GA1469@nevyn.them.org> (raw)
In-Reply-To: <1020812162023.ZM32132@localhost.localdomain>

On Mon, Aug 12, 2002 at 09:20:24AM -0700, Kevin Buettner wrote:
> On Aug 12, 11:55am, Daniel Jacobowitz wrote:
> 
> > > > There are two approaches:  have solib_open() test for a local/remote 
> > > > target; or, add methods to the target vector that allow solib_open() to 
> > > > be written independant of the target.
> > > 
> > > At the moment, I like the first approach better because it's simpler.
> > > I'd prefer that we wait on the more complicated approach until a need
> > > is demonstrated for the additional complexity.
> > 
> > I agree.  But as I said above, I don't want to make this decision based
> > on local/remote.  An i386-pc-linux-gnu debugger using gdbserver will
> > default to looking in the system libraries right now; that's correct, I
> > think.
> 
> I'm wondering how frequently this particular scenario occurs.  If it
> occurs relatively infrequently, I think it'd be better to force the
> user to set solib-absolute-prefix and/or solib-search-path.  It certainly
> seems safer than incorrectly using the host's environment variables.
> 
> Usually, when I do the above, I'm running the debug agent in a chroot
> environment which has different libraries.  For a quick and dirty test
> of the debug agent though, I'll frequently just run it on the host in
> which case using the host's libraries is correct.

Same; I do almost all of my testing using gdbserver on the host. 
Because it has a different threads package than core GDB, I also
periodically recommend that others try this.  Having to set it myself
would be a real pain.

> As noted earlier in this thread (and by yourself on at least one
> occassion), one of the things which we sorely need is a mechanism to
> check to see if gdb has loaded the correct shared object.

Absolutely.  I'm thinking about this one...

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer


  reply	other threads:[~2002-08-12 16:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020806100634.11483.qmail@sources.redhat.com>
2002-08-06  6:20 ` Daniel Jacobowitz
2002-08-09 16:12   ` Kevin Buettner
2002-08-11 20:25     ` Daniel Jacobowitz
2002-08-12  4:18       ` Jorma Laaksonen
2002-08-12  7:28       ` Andrew Cagney
2002-08-12  7:37         ` Daniel Jacobowitz
2002-08-12  8:07           ` Andrew Cagney
2002-08-12  8:48             ` Kevin Buettner
2002-08-12  8:55               ` Daniel Jacobowitz
2002-08-12  9:20                 ` Kevin Buettner
2002-08-12  9:29                   ` Daniel Jacobowitz [this message]
2002-08-12  9:20               ` Andrew Cagney
2002-08-12  9:31                 ` Daniel Jacobowitz
2002-08-12  9:40                 ` Kevin Buettner
2002-08-12  9:53                   ` GDB functionalities for debugging Elf core dump Lucy Zhang

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=20020812163012.GA1469@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=ac131313@ges.redhat.com \
    --cc=gdb-gnats@sources.redhat.com \
    --cc=gdb@sources.redhat.com \
    --cc=jorma.laaksonen@hut.fi \
    --cc=kevinb@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