From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH] [gdb/python] Make gdb.UnwindInfo.add_saved_register more robust
Date: Thu, 9 May 2024 12:03:10 +0200 [thread overview]
Message-ID: <ed0f9da8-6294-4c46-b774-beab794dcf16@suse.de> (raw)
In-Reply-To: <87y18k47yr.fsf@tromey.com>
On 5/8/24 17:52, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
>
> Tom> @@ -362,6 +362,18 @@ unwind_infopy_add_saved_register (PyObject *self, PyObject *args, PyObject *kw)
> Tom> return nullptr;
> Tom> }
>
> Tom> + if (value->optimized_out () || !value->entirely_available ())
> Tom> + {
>
> Both of these seem to have cases where they can throw an exception.
> In the Python layer, gdb code that can throw normally has to be wrapped
> in a try/catch, as throwing across the Python boundary will cause crashes.
>
> I don't know whether exceptions can actually be provoked here or not.
Hi Tom,
thanks for the review.
Submitted fix here (
https://sourceware.org/pipermail/gdb-patches/2024-May/209032.html ).
Thanks,
- Tom
prev parent reply other threads:[~2024-05-09 10:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-02 12:36 Tom de Vries
2024-03-19 9:34 ` [PING][PATCH] " Tom de Vries
2024-05-08 8:54 ` [PING^2][PATCH] " Tom de Vries
2024-05-08 12:02 ` [PATCH] " Andrew Burgess
2024-05-08 15:52 ` Tom Tromey
2024-05-09 10:03 ` Tom de Vries [this message]
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=ed0f9da8-6294-4c46-b774-beab794dcf16@suse.de \
--to=tdevries@suse.de \
--cc=gdb-patches@sourceware.org \
--cc=tom@tromey.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).