[Zope-dev] Re: hooking up gdb is the problem, not scripting it (Re: hooking up gdb)

Dieter Maurer dieter@handshake.de
Thu, 6 Dec 2001 19:45:36 +0100


Leonardo Rochael Almeida writes:
 > The tricky part is convincing gdb to hook up to python when the sig 11
 > hits. Isn't there a trap instruction somewhere where I could tell python
 > to run an external script when hit by a sig11?
That's what I meant....

>From "gdb" online help:
 > (gdb) help stop
 > There is no `stop' command, but you can set a hook on `stop'.
 > This allows you to set a list of commands to be run each time execution
 > of the program stops.


Dieter