Debugging classes with DOM::Node
David Faure
dfaure at klaralvdalens-datakonsult.se
Mon Nov 10 21:41:43 GMT 2003
On Monday 10 November 2003 21:28, Andras Mantia wrote:
> Zack Rusin wrote:
>
> > On Monday 10 November 2003 14:26, Andras Mantia wrote:
> >> > There might be an option for gdb to disable this behaviour.
> >>
> >> I've tried to find something, but without success until now.
> >
> > I'm not sure if KDevelop allows you to use custom print functions but
> > I'd just create a printnode func and add it to my .gdbinit, something
> > simple like:
> > define printnode
> > p $arg0-parent
> > p $arg0->next
> > p $arg0->prev
> > p $arg0->child
> > end
> > the idea is to explicitely tell gdb what to print.
>
>
> But during print $arg0->next it will do the same endless printing as "next" is
> of the same type...
Then just print their addresses, like
p &($arg0->next)
p &($arg0->prev)
if gdb accepts to eat that.
--
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Qt/KDE/KOffice developer
Klarälvdalens Datakonsult AB, Platform-independent software solutions
More information about the kfm-devel
mailing list