forked from ghdl/ghdl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gdbinit
95 lines (72 loc) · 1.49 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# 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 vlg_ptf
call verilog.disp_tree.disp_tree ($arg0, 0, 0)
end
define vlg_pt1
call verilog.disp_tree.disp_tree ($arg0, 0, 2)
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 elab.debugger.disp_iir_location ($arg0)
end
document ploc
Print the location for iir $.
end
define ppsltf
call psl.dump_tree.disp_tree($arg0, 0, 2)
end
document ppsltf
Print the PSL node that is $arg0
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
break __gnat_debug_raise_exception