Re: v2 of GDB hooks for debugging GCC

2013-08-27 Thread Tom Tromey
> "David" == David Malcolm writes: David> Is there a precanned event provided by gdb that I can connect to for David> when the underlying code has changed and my caches need to be David> invalidated? Maybe not :( You could use the "exited" event as a decent approximation. Also, and I think

Re: v2 of GDB hooks for debugging GCC

2013-08-26 Thread David Malcolm
On Wed, 2013-08-21 at 15:01 -0600, Tom Tromey wrote: > > "David" == David Malcolm writes: [...] > David> How would one go about toggling the enabledness of a prettyprinter? Is > David> this something that can only be done from python? > > You can use "enable pretty-printer" and "disable pre

Re: v2 of GDB hooks for debugging GCC

2013-08-21 Thread Tom Tromey
> "David" == David Malcolm writes: Tom> Naughty. David> We chatted about this at Cauldron; I haven't yet had a chance to David> implement the magic bullet approach we discussed there. In the David> meantime, is there a API I can call to determine how safe this kludge David> is? Not right n

v2 of GDB hooks for debugging GCC

2013-08-21 Thread David Malcolm
On Mon, 2013-08-05 at 08:26 -0600, Tom Tromey wrote: > > "David" == David Malcolm writes: > > David> GDB 7.0 onwards supports hooks written in Python to improve the > David> quality-of-life within the debugger. The best known are the > David> pretty-printing hooks [1], which we already use w