forked from ghdl/ghdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
78 lines (59 loc) · 1.19 KB
/
.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Gdb commands useful to debug ghdl
define pt
call vhdl.disp_tree.disp_iir ($arg0, 1, 10)
end
document pt
Print the structure of the iirs that is $arg0.
end
define ptf
call vhdl.disp_tree.disp_iir ($arg0, 1, 0)
end
document ptf
Print the iirs that is $arg0.
end
define pt1
call vhdl.disp_tree.disp_iir ($arg0, 1, 1)
end
define prt
set lang c
print (iirs__iir *) $
set lang ada
end
define pl
call disp_iir_list ($arg0, 0, 0)
end
define psrc
call debug_source_loc (vhdl.nodes.get_location ($arg0))
end
document pl
Print the list of iirs that is $arg0.
end
define plf
call disp_iir_list ($arg0, 0, 1)
end
document plf
Print flatly the list of iirs that is $arg0.
end
define ptc
call vhdl.disp_tree.disp_chain ($arg0, 0, 0)
end
document ptc
Print the chain of iirs that is $arg0
end
define pv
call disp_value ($arg0)
end
document pv
Print the value that is $.
end
define ploc
call disp_iir_location ($arg0)
end
document ploc
Print the location for iir $.
end
set lang ada
# Must be the last command: some distributions use a shared libgnat by default,
# and don't have the minimal required set of debug info to support this command.
# As a result, this command fails and stop this script.
catch exception