Re: [xml] gdb hint and debugXML.c patch
- From: Daniel Veillard <veillard redhat com>
- To: "Oleg A. Paraschenko" <olpa xmlhack ru>
- Cc: libxml mail list <xml gnome org>
- Subject: Re: [xml] gdb hint and debugXML.c patch
- Date: Tue, 6 Sep 2005 18:17:26 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]