This is the mail archive of the gdb@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]

Re: recursion limit exceeded in Python API, but there's only one function in traceback


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

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