From: Doug Evans <xdje42@gmail.com>
To: Andy Wingo <wingo@igalia.com>
Cc: gdb-patches <gdb-patches@sourceware.org>,
Alexander Smundak <asmundak@google.com>,
Pedro Alves <palves@redhat.com>
Subject: Re: Frame sniffers in Python/Guile/*
Date: Sun, 08 Mar 2015 20:04:00 -0000 [thread overview]
Message-ID: <m3ioebz27y.fsf@sspiff.org> (raw)
In-Reply-To: <87d24r4jgx.fsf@igalia.com> (Andy Wingo's message of "Mon, 02 Mar 2015 14:28:14 +0100")
Andy Wingo <wingo@igalia.com> writes:
> [...]
>
> And so on. From what I can tell, all of this is because there is no
> selected frame. I recognize that this situation reflects reality in
> some way -- we're still building the selected frame -- but is there any
> way that we could have GDB be in a more "normal" state while the unwind
> callback is running?
I think one gets into trouble if one tries to
apply the word "normal" to gdb. :-)
Things like selected_frame and get_current_arch
are annoying, global state generally is.
Anything you can do untangle the need for global
state will be welcome.
But as you've observed, this is a bit of a special case.
Sometimes the architecture depends on the frame.
And until we know the architecture we don't know
what the registers are. And so on.
I don't have any simple suggestions. Maybe others will.
A lot of times improving/fixing gdb requires first
improving/fixing several other parts first.
Welcome to gdb. :-)
next prev parent reply other threads:[~2015-03-08 20:04 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-02 13:28 Andy Wingo
2015-03-08 20:04 ` Doug Evans [this message]
2015-03-09 8:27 ` Andy Wingo
2015-03-09 15:39 ` Pedro Alves
2015-03-09 19:19 ` Andy Wingo
2015-03-10 16:36 ` Pedro Alves
2015-03-10 17:36 ` Andy Wingo
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=m3ioebz27y.fsf@sspiff.org \
--to=xdje42@gmail.com \
--cc=asmundak@google.com \
--cc=gdb-patches@sourceware.org \
--cc=palves@redhat.com \
--cc=wingo@igalia.com \
/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