On Wed, Sep 07, 2005 at 01:44:02AM +0400, Oleg A. Paraschenko wrote:
> Hello,
>
> probably it's well known, but I'd like to share useful gdb
> settings. From my ~/.gdbinit:
>
> <code>
> define xp
> call xmlDebugDumpNode(stdout, $arg0, 0)
> end
> document xp
> Executes xmlDebugDumpNode(stdout, arg, 0).
> Use also:
> xmlDebugDumpOneNode
> xmlDebugDumpNodeList
> xmlDebugDumpDocument
> end
> </code>
>
> Now, debugging in gdb, it's possible to dump a variable as
> an XML node:
interesting :-)
[...]
> diff -r1.110 debugXML.c
> 1068c1068
> < if ((node->children != NULL) && (node->type != XML_ENTITY_REF_NODE)) {
> ---
> > if ((node->type != XML_NAMESPACE_DECL) && (node->children != NULL) &&
> > (node->type != XML_ENTITY_REF_NODE)) {
makes sense, applied and commited to CVS,
thanks !
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml