Debugging classes with DOM::Node
Andras Mantia
amantia at kde.org
Mon Nov 10 15:41:38 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
In Quanta we have a class with DOM::Node members defined like:
class Node {
...
DOM::Node _rootNode;
DOM::Node _leafNode;
}
If I have a pointer to an object of type Node and I try to display it's
content inside gdb, it takes many pages and a lot of time (never had the
patience to see how long does it take), as it prints recursively the content
of those members:
(gdb) print *node
$3 = {next = 0x0, prev = 0x0, parent = 0x8a04070, child = 0x0,
_rootNode = {next = 0x82803e0, prev = 0x0,
parent = 0x82803e0, child = 0x0,
_rootNode = {next = 0x0, prev = 0x8ca2c70, parent =
0x8ca8c00, child = 0x10100,
_rootNode = {next = 0x8282ff8,
....
Can something be done to avoid the recursively listing? Does this indicate an
error in our code?
Andras
- --
Quanta Plus developer - http://quanta.sourceforge.net
K Desktop Environment - http://www.kde.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2-rc1-SuSE (GNU/Linux)
iD8DBQE/r7GyTQdfac6L/08RAjfhAJ9o3tDIu69EmtlFBDCo+1GntwmFNwCgw0O7
NaT7mpk+UxfdnOhnwdJwB64=
=SVF8
-----END PGP SIGNATURE-----
More information about the kde-core-devel
mailing list