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: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Doug Evans <dje at google dot com>, gdb-patches <gdb-patches at sourceware dot org>
- Date: Thu, 7 Mar 2013 13:04:07 +0100
- 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> <51386C1C.3060107@redhat.com>
On Thu, 07 Mar 2013 11:29:48 +0100, Pedro Alves wrote:
> On 03/06/2013 07:54 PM, Doug Evans wrote:
> > 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?
Besides /usr you need also /bin, /lib, /lib64, /libx32, /opt etc. etc.
I was thinking rather about the opposite way, consider non-system binaries
those that are under /usr/local, /root and /home .
But that is all non-trivial number of directories which will never catch all
the distros/setups out there.
Thanks,
Jan