Add QTL classes to qt3.kdbgtt.
commit4402b8873b67e932a6881c02055313da2935eb2e
authorJohannes Sixt <j6t@kdbg.org>
Sat, 22 Nov 2008 21:43:20 +0000 (22 22:43 +0100)
committerJohannes Sixt <j6t@kdbg.org>
Mon, 8 Dec 2008 21:27:17 +0000 (8 22:27 +0100)
tree4e0d324937e4efee656cfc65217132a0d3989c43
parent908e07522006b3b5d7be2fd14d05602da4513908
Add QTL classes to qt3.kdbgtt.

This makes debugging those classes more convenient.

The node count of QValueList deserves some explanation: The node count
appears in a private class derived from QShared, and it could actually
be accessed like this:

  Expr1=(%s).sh->nodes

However, since the class is private, it is not always laid down in the
debugging information, and gdb doesn't know about it. Therefore, we
look up the member by treating the data pointed to by %s.sh as an array
of int. A complication arises because there is a node pointer between
.count and .nodes, and we must be prepared that an int is not the same
size as a pointer. Therefore, sizeof(char*)/sizeof(int) computes how many
ints there are in a pointer.
kdbg/testprogs/Makefile.am
kdbg/testprogs/qt.cpp [new file with mode: 0644]
kdbg/typetables/qt3.kdbgtt