public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Prevent more recursion into python based unwinders
@ 2016-09-28  8:49 Kevin Buettner
  2016-09-28  8:53 ` [PATCH 1/4] Distinguish sentinel frame from null frame Kevin Buettner
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Kevin Buettner @ 2016-09-28  8:49 UTC (permalink / raw)
  To: gdb-patches

Pedro pushed a patch earlier this month which avoids recursion into a
python based unwinder in some cases.  The exact case that his patch
fixed was when the unwinder attempted to call
gdb.PendingFrame.read_register with either an actual or pseudo
register.

For reference, Pedro's patch is here:

https://sourceware.org/ml/gdb-patches/2016-08/msg00239.html

I recently posted a test case which exhibits problems with recursion
in two other cases: 1) when gdb.parse_and_eval is called, and 2)
when gdb.PendingFrame.read_register is called with a "user" register
like "pc" on x86_64.

My test case (extension) can be found here:

https://sourceware.org/ml/gdb-patches/2016-09/msg00368.html

This patch set fixes those two cases of recursion and adjusts one
test, py-unwind-maint.exp, which was showing failures / regressions
after my changes.

I wish to thank Pedro for his collaboration on these patches.  He
suggested several of the key ideas that went into them.  (That said,
he hasn't seen them yet, so if I botched things, the fault is mine.)

Kevin

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-10-28  5:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-28  8:49 [PATCH 0/4] Prevent more recursion into python based unwinders Kevin Buettner
2016-09-28  8:53 ` [PATCH 1/4] Distinguish sentinel frame from null frame Kevin Buettner
2016-10-12 13:07   ` Pedro Alves
2016-10-26  7:22     ` Kevin Buettner
2016-10-28  5:26       ` Kevin Buettner
2016-09-28  8:56 ` [PATCH 2/4] Tweak meaning of VALUE_FRAME_ID Kevin Buettner
2016-10-12 13:08   ` Pedro Alves
2016-09-28  8:59 ` [PATCH 3/4] Make gdb.PendingFrame.read_register handle "user" registers Kevin Buettner
2016-10-12 13:08   ` Pedro Alves
2016-09-28 12:41 ` [PATCH 4/4] py-unwind-maint.exp: Allow unwinders to be called during python import Kevin Buettner
2016-10-12 13:10   ` Pedro Alves

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).