comparison lib/swig/swigwin-2.0.11/Tools/swig.gdb @ 1899:b3009adc0e2f

Adding swig, gitignore, hgignore
author Nomad
date Mon, 21 Oct 2013 10:42:27 +0200
parents
children
comparison
equal deleted inserted replaced
1867:eb580660bbbb 1899:b3009adc0e2f
1 # User-defined commands for easier debugging of SWIG in gdb
2 #
3 # This file can be "included" into your main .gdbinit file using:
4 # source swig.gdb
5 # or otherwise paste the contents into .gdbinit
6 #
7 # Note all user defined commands can be seen using:
8 # (gdb) show user
9 # The documentation for each command can be easily viewed, for example:
10 # (gdb) help swigprint
11
12 define swigprint
13 if ($argc == 2)
14 set $expand_count = $arg1
15 else
16 set $expand_count = -1
17 end
18 Printf "%s\n", Swig_to_string($arg0, $expand_count)
19 end
20 document swigprint
21 Displays any SWIG DOH object
22 Usage: swigprint swigobject [hashexpandcount]
23 swigobject - The object to display.
24 hashexpandcount - Number of nested Hash types to expand (default is 1). See Swig_set_max_hash_expand() to change default.
25 end
26
27
28 define locswigprint
29 if ($argc == 2)
30 set $expand_count = $arg1
31 else
32 set $expand_count = -1
33 end
34 Printf "%s\n", Swig_to_string_with_location($arg0, $expand_count)
35 end
36 document locswigprint
37 Displays any SWIG DOH object prefixed with file and line location
38 Usage: locswigprint swigobject [hashexpandcount]
39 swigobject - The object to display.
40 hashexpandcount - Number of nested Hash types to expand (default is 1). See Swig_set_max_hash_expand() to change default.
41 end