This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/4] Prevent more recursion into python based unwinders


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]