This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: recursion limit exceeded in Python API, but there's only one function in traceback
- From: <Paul_Koning at Dell dot com>
- To: <omeragacan at gmail dot com>
- Cc: <pmuldoon at redhat dot com>, <gdb at sourceware dot org>
- Date: Thu, 16 Oct 2014 15:03:24 +0000
- Subject: Re: recursion limit exceeded in Python API, but there's only one function in traceback
- Authentication-results: sourceware.org; auth=none
- References: <CAMQQO3knCrj=7dQNV1NEJofLhm7gZzvzG55K66uDOJt7qYrjGg at mail dot gmail dot com> <543FBDFF dot 3050709 at redhat dot com> <104DEFBD-D686-4290-8E3C-725A51C165E6 at dell dot com> <CAMQQO3=GxjGzF-9RXQsJ_9=Du3rS-UoYFA_0-friPp1nMa8yAA at mail dot gmail dot com>
Is that the handler for a breakpoint? Does the completion of the âsiâ command invoke the breakpoint handler? If yes, thatâs your answer.
paul
On Oct 16, 2014, at 10:55 AM, Ãmer Sinan AÄacan <omeragacan@gmail.com> wrote:
> Thanks for tips. I managed to blow the stack using a minimal script.
> Here's the code:
>
> import gdb
> import traceback
>
> def handler(ev):
> try:
> print "handling a stop"
> gdb.execute("si")
> gdb.execute("c")
> except:
> traceback.print_stack()
>
> gdb.events.stop.connect(handler)
>
> Output:
>
> [...snip...]