From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Joel Brobecker <brobecker@adacore.com>
Cc: Paul Hilfinger <Hilfinger@adacore.com>, gdb-patches@sourceware.org
Subject: Re: [RFA] Have block_innermost_frame start from selected frame
Date: Wed, 28 Dec 2011 16:00:00 -0000 [thread overview]
Message-ID: <20111228155657.GA10556@host2.jankratochvil.net> (raw)
In-Reply-To: <20111228153008.GN23376@adacore.com>
On Wed, 28 Dec 2011 16:30:08 +0100, Joel Brobecker wrote:
> What do you mean by ambiguous? Is it the case described here, where
> we have multiple frames for the given FUNCTION?
Yes. Depending on which recursive function frame you select the returned
value is different.
> I don't think we should query().
In fact we should menu-select them but that is offtopic now.
> Users often respond negatively to query, particularly in a case like this
> where we can make the behavior unambiguous and easily describable.
I find that GDB should ask or at least warn more in general. Like that if you
debug -O2 code it should warn you on first `step' that it will not work much.
If you debug program/function without -g it should warn you (not just "no
debugging symbols found" lost in the screens of "Reading symbols from "
messages). It would prevent false accuses of GDB due to bugs elsewhere.
GIT gives nice messages suggesting what to do in any case of a problem.
> It's the only way to get the value of "var" in our testcase, and you cannot
> currently do it with the old behavior.
You can already do so many things with GDB, just people do not do even 5% of
them because it is all too magic to learn.
> I think simple is good enough, in this particular case.
I am not going to try to block it but it is still the current GDB style closed
to hackers.
Thanks,
Jan
next prev parent reply other threads:[~2011-12-28 15:57 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-27 19:59 Paul Hilfinger
2011-12-28 13:10 ` Jan Kratochvil
2011-12-28 15:41 ` Joel Brobecker
2011-12-28 16:00 ` Jan Kratochvil [this message]
2011-12-28 17:23 ` Joel Brobecker
2011-12-29 20:30 ` Paul Hilfinger
2011-12-29 23:13 ` Jan Kratochvil
2011-12-28 15:16 ` Jan Kratochvil
2011-12-30 21:54 Paul Hilfinger
2011-12-31 8:58 ` Eli Zaretskii
2011-12-31 21:40 ` Paul Hilfinger
2012-01-09 7:17 ` Paul Hilfinger
2012-01-09 17:14 ` Eli Zaretskii
2012-01-09 19:59 ` Paul Hilfinger
2012-01-10 5:21 ` Joel Brobecker
2012-01-10 10:28 ` Eli Zaretskii
2012-01-10 10:40 ` Joel Brobecker
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=20111228155657.GA10556@host2.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=Hilfinger@adacore.com \
--cc=brobecker@adacore.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