This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch+doc 1/2] filename-display: 1->4 options {inferior,libs}{,-sepdebug}
- From: Pedro Alves <palves at redhat dot com>
- To: Doug Evans <dje at google dot com>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 07 Mar 2013 10:29:48 +0000
- Subject: Re: [patch+doc 1/2] filename-display: 1->4 options {inferior,libs}{,-sepdebug}
- References: <20130215202536.GA20435@host2.jankratochvil.net> <20130227185345.GA21375@host2.jankratochvil.net> <CADPb22Sv72+ojtbc1M31umP4_UP1wnq5Cew4Fdvo5LEYu=r=0w@mail.gmail.com> <20130227195251.GA29891@host2.jankratochvil.net> <yjt2zjygnw2f.fsf@ruffy2.mtv.corp.google.com>
On 03/06/2013 07:54 PM, Doug Evans wrote:
> Jan Kratochvil writes:
> > On Wed, 27 Feb 2013 20:40:08 +0100, Doug Evans wrote:
> > > 1) How common/useful would it be to distinguish shared libs of an app
> > > I've just built and installed in some private dir (or maybe
> > > /usr/local) from system shared libs?
> > > IOW treating, e.g., files in $HOME/lib/mumble different from /usr/lib/mumble.
> > > I'm not sure it's a useful distinction, just wondering.
> >
> > I was more considering shared libraries in $HOME/src/elfutils which are part
> > of the project one is currently debugging. Absolute pathnames are excessive
> > there, one knows the (elfutils) source tree (s)he is debugging.
> >
> > /usr/local/lib/mumble.so I cannot reliably distinguish from $HOME/lib/mumble
> > so /usr/local/lib/mumble.so will not be handled too well by default.
>
> We have various parameters that together specify where to find separate debug info.
> Is it possible to piggyback on that?
> E.g., Something minimal for now like specifying which ones are
> displayed as relative with the default being none?
I've not really been following the discussion closely, but
I was also wondering the same. The ultimate goal seems to be to
detect system vs non-system binaries ("system" is the word used
in the new proposed knobs even). Isn't the definitive answer
making GDB consider files under "/usr/"
system binaries (the --prefix by default, but could be somewhere
else, thus should be tunable), and everything else, non-system?
> [And thus by default everything with separate debug info will
> be displayed using absolute file names.]
> Or something like that.
--
Pedro Alves