overloading 'print' command.

Eli Zaretskii eliz@gnu.org
Fri May 15 14:42:00 GMT 2009


> Date: Fri, 15 May 2009 07:07:16 -0700
> From: Paul Pluzhnikov <ppluzhnikov@google.com>
> Cc: pluto@agmk.net, gdb@sourceware.org
> 
> I don't see how hook-print can help OP to do something special for
> std::string. The manual says hook-print doesn't get any arguments, so
> it can't even tell what is being printed. What am I missing?

Looks like I was missing something: the fact that hooks don't have
access to the arguments of the hooked command.  Sounds like a bad
limitation to me.



More information about the Gdb mailing list