-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gdbinit
40 lines (32 loc) · 859 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
# we can't set breakpoints for .so's we haven't loaded yet without this
set breakpoint pending on
# can often get away with typing: pv or pvis, etc.
define pvisit
p visitor->Id().Key()._M_dataplus._M_p
end
# print C++ standard strings
define pcppstr
p *(char**)($arg0)._M_dataplus._M_p
end
#
# Breakpoints ----------
#
# 1
break main
# 2
# watch the loop through event record visitors!
# top of the loop. `p visitor->Id().Key()` (pvis above)
# check the processor and see if you want to step in
break EventGenerator.cxx:107 if ffwd==false
commands 2
pvisit
end
# 3 actual call to ProcessEventRecord(event_rec)
break EventGenerator.cxx:118 if ffwd==false
# 4 top of the event loop
break gEvGen.cxx:303
commands 4
printf "The event number is %d\n", ievent
end
# 5 select an interaction
break PhysInteractionSelector.cxx:186