fix logic
[personal-kdelibs.git] / khtml / khtml-devel-gdb
blobbb8319b222bf00290ea324c403e79f8605a225e5
1 # This file defines handy gdb macros for KHTML
2 # To use it, add this line to your ~/.gdbinit :
3 # source /path/to/kde/sources/kdelibs/khtml/khtml-devel-gdb
5 define printdomstring
6     printdomstringimpl $arg0.impl
7 end
8 document printdomstring
9   Prints the contents of a KHTML DOMString.
10 end
11 define printdomstringimpl
12     set $i=0
13     set $d = $arg0
14     while $i < $d->l
15         printf "%c", (char)($d->s[$i++].ucs & 0xff)
16     end
17     printf "\n"
18 end
19 document printdomstringimpl
20   Prints the contents of a KHTML DOMStringImpl.
21 end