This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: overloading 'print' command.
> 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.