-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gdbinit
49 lines (43 loc) · 789 Bytes
/
.gdbinit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#b behc_node if 20 < node_pool_c
#if 0
#b bspc.c:129
#commands
#pvec4 poly->p
#printf "\n"
#pvec4 p
#printf "\n"
#end
#end
#
#b split_polys if p[0] == 1 && p[3] == 0.5
define pverts_next
if $arg0 != $arg1
pvert $arg0
printf "\n"
pverts_next $arg0->next $arg1
end
end
define pverts
if $arg0
pvert $arg0
printf "\n"
pverts_next $arg0->next $arg0
end
end
define pvert
printf "{.pos = "
pvec3 $arg0->pos
printf ", .next = %p}", $arg0->next
end
define pvec4
printf "{% 8.4f\t% 8.4f\t% 8.4f\t% 8.4f}", *($arg0+0), *($arg0+1), *($arg0+2), *($arg0+3)
end
define pvec3
printf "{% 8.4f\t% 8.4f\t% 8.4f}", *($arg0+0), *($arg0+1), *($arg0+2)
end
define ppolys
if $arg0
printf "%p: {.used = %d, .next = %p}\n", $arg0, $arg0->used, $arg0->next
ppoly $arg0->next
end
end