overloading 'print' command.

Joel Brobecker brobecker@adacore.com
Fri May 15 15:53:00 GMT 2009


> > 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.

I think that the hooks mechanism is quickly going to be overtaken
by python support, so I personally wouldn't spend any more time
on improving the hooks - especially when the feature is already
available in today's FSF sources.

-- 
Joel



More information about the Gdb mailing list