This is the mail archive of the
mailing list for the GDB project.
[PATCH 0/4] Prevent more recursion into python based unwinders
- From: Kevin Buettner <kevin at buettner dot to>
- To: gdb-patches at sourceware dot org
- Date: Wed, 28 Sep 2016 01:44:55 -0700
- Subject: [PATCH 0/4] Prevent more recursion into python based unwinders
- Authentication-results: sourceware.org; auth=none
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
For reference, Pedro's patch is here:
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:
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.)