GDB Python API: stop/continue after breakpoint

Kevin Pouget kevin.pouget@gmail.com
Mon Mar 21 15:11:00 GMT 2011


> (gdb) py b.silent = True

very nice! I was just reading an old post
http://sourceware.org/ml/gdb/2007-04/msg00127.html about a plugin vs
scripting interface, Python finally get the point, it's now easier to
write a Python script which handles breakpoints than a GDB patch!

> There might be a case for setting the breakpoint to 'silent' in the
> breakpoint constructor:
>
> python b = gdb.Breakpoint("hello.c:5", internal=True, silent=True)
>
> or just making internal breakpoints silent by default.
>
> I'll implement either.  What do you think?

from my perspective, _internal breakpoints_ should be silent by
default, because they're 'internal', as their name says.

Option 1) is quite similar `b.silent`, so it's up to you


Cordially,

Kevin



More information about the Gdb mailing list