annotate lib/swig/swigwin-2.0.11/Tools/swig.gdb @ 2556:91c75d202d30

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