[patch+doc 1/2] filename-display: 1->4 options {inferior,libs}{,-sepdebug}
Pedro Alves
palves@redhat.com
Thu Mar 7 10:30:00 GMT 2013
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
More information about the Gdb-patches
mailing list