This is the mail archive of the
mailing list for the GDB project.
Re: Gsoc Wrap-up Report
I've sent the work done during the summer for a RFC to the archer
mailing list. (as the work is based on an archer branch)
If you want to give an eye please see:
2009/8/21 Oguz Kayral <email@example.com>:
> Hi everyone,
> GSoC is almost over. Here's a wrap-up report for what we have done this summer.
> In the beginning we had this use case:
> If program segfaults then gdb will do âbtâ without waiting for the
> command and if program terminates normally then it will also just
> The code in gsoc-kayral-python branch can now accomplish this with a
> very simple Python script:
> import gdb
> def sigsegv_handler (event) :
> Â Âif (event.stop_signal == "SIGSEGV") :
> Â Â Â Âgdb.execute ("backtrace")
> class Segfault (gdb.Command) :
> Â Âdef __init__ (self, "segfault", gdb.COMMAND_STACK)
> Â Âdef invoke (self, arg, from_tty) :
> Â Â Â Âgdb.selected_thread ().signal_stop_eventregistry.connect
> Â Â Â Âprint "sigsegv handler registered"
> Segfault ()
> Apart from this python is aware of other stop events (breakpoints and
> signals in particular), continue events, thread exit events.
> There are still things to work on (i.e. thread creation events) but
> even in this situation, a lot of scripts are waiting to be written.