This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]