SVN_SILENT: remove useless debug output, unused include statements.
[kdelibs.git] / kjs / kjs-devel-gdb
blob41725379fc399c8a4ad1a77c5abf1b3e40e8cd0f
1 # This file defines handy gdb macros
2 # To use it, add this line to your ~/.gdbinit :
3 # source /path/to/kde/sources/kdelibs/kjs/kjs-devel-gdb
5 define printucharstar
6        set $i=0
7        while ($i<($arg1))
8          p (char)(($arg0)[$i++])
9        end
10 end
11 document printucharstar
12   Prints the contents of an UChar [] - for KJS.
13   Usage: 'printucharstar <UChar* dat> <int len>'
14 end
16 define printustring
17         printucharstar ($arg0).rep->dat ($arg0).rep->len
18 end
19 document printustring
20   Prints the contents of an UString - for KJS
21   Usage: 'printustring <UString str>'
22 end