From: Doug Evans <dje@google.com>
To: gdb-patches <gdb-patches@sourceware.org>
Subject: Re: [RFA take 4] Allow setting breakpoints on inline functions (PR 10738)
Date: Fri, 17 Feb 2012 22:42:00 -0000 [thread overview]
Message-ID: <CADPb22TsPXPdOGk4CmFL+hnniSZguFeactSdoD6NaeDLCT12GQ@mail.gmail.com> (raw)
In-Reply-To: <20120216103751.GA3378@redhat.com>
On Thu, Feb 16, 2012 at 2:37 AM, Gary Benson <gbenson@redhat.com> wrote:
>> > > The user's build procedure may involve building the index in a
>> > > way that is not easily updated in a timely manner. Thus all the
>> > > speed improvements are (at least temporarily, but for a long
>> > > enough time to be troublesome) wiped out simply by using a
>> > > *newer* version of gdb. And that makes me uncomfortable.
>> >
>> > How would it be if there the default behaviour was be to reject
>> > old indexes (as the patch does now) but with the addition of a
>> > flag ("maint set allow-old-gdb-indexes" perhaps?) that would allow
>> > users in this particular situation to get around it? That way,
>> > our response to complaints can be "rebuild the index *or* use this
>> > flag (which by the way will lose you such and such a
>> > functionality)" Inconsistent behaviour doesn't seem so bad if the
>> > user asked for it.
>>
>> IWBN if one could do "gdb my-binary-with-older-index" (as opposed
>> to, e.g., "gdb ; maint set ... ; file my-binary-with-older-index",
>> or the equivalent with -x/-ex foo, and setting the flag in
>> ./.gdbinit won't work). That pretty much means passing gdb an
>> option ("gdb --use-old-index my-binary" or some such). At Google
>> we've added --disable-gdb-index as an escape hatch against broken
>> indices. I'm happy to replace it with something that will do the
>> same thing.
>>
>> As for what the default behaviour should be, I don't have a strong
>> enough opinion to want to defend it. I can easily enough change it
>> here if desired. [Not something unfamiliar to Redhat. :-)]
>
> Ok, so my plan is to implement an --allow-incomplete-gdb-index option
> that will turn on support for version 4 and 5 indexes.
[recognizing one tries not to bikeshed except when one thinks it's
important enough ...]
--allow-deprecated-gdb-index ?
> I am unsure
> as to whether to add printed warnings, but I'm leaning towards not
> having warnings in either configuration. With the default setting
> GDB will work correctly, but may possibly be slow which would be the
> (admittedly not very direct) trigger for the user to investigate.
> With the option supplied I assume the user knows what they're doing,
> so they don't need pestering!
"works for me"
> I like the *idea* of warning users
> that their .gdb-index sections are being skipped, but I think of the
> case where somebody uses a new GDB on an older version of Fedora (say)
> being flooded with warning messages about every single shared library
> their program is linked to.
One can solve that by printing the warning at most once and providing
a way to see the entire list. But I don't have a strong enough
opinion to push for implementing it.
next prev parent reply other threads:[~2012-02-17 22:04 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-13 18:47 Gary Benson
2012-02-14 1:39 ` Doug Evans
2012-02-14 9:02 ` Gary Benson
2012-02-15 8:05 ` Doug Evans
2012-02-15 12:17 ` Gary Benson
2012-02-15 20:14 ` Doug Evans
2012-02-16 10:41 ` Gary Benson
2012-02-17 22:42 ` Doug Evans [this message]
2012-02-21 16:32 ` Gary Benson
2012-02-14 9:34 ` Mark Wielaard
2012-02-14 9:38 ` Jan Kratochvil
2012-02-14 9:48 ` Mark Wielaard
2012-02-14 10:51 ` Gary Benson
2012-02-14 18:04 ` Eli Zaretskii
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=CADPb22TsPXPdOGk4CmFL+hnniSZguFeactSdoD6NaeDLCT12GQ@mail.gmail.com \
--to=dje@google.com \
--cc=gdb-patches@sourceware.org \
/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