Files
seer/notes/README.catchpoints
T

70 lines
2.7 KiB
Plaintext
Raw Normal View History

2021-12-31 13:00:02 -06:00
# Setting a catchpoint.
2021-12-31 13:00:54 -06:00
-catch-throw [ -t ] [ -r regexp]
2021-12-31 13:00:02 -06:00
-catch-rethrow [ -t ] [ -r regexp]
2021-12-31 13:00:54 -06:00
-catch-catch [ -t ] [ -r regexp]
2021-12-31 13:00:02 -06:00
# When a catchpoint is reached.
2021-12-31 13:00:54 -06:00
*stopped,
bkptno="2",
reason="breakpoint-hit",
disp="keep",
frame={addr="0x00007fffed933b72",
func="__cxa_throw",
args=[],
from="/usr/lib64/libstdc++.so.6",
arch="i386:x86-64"
},
thread-id="1",
stopped-threads="all",
core="5"
2022-01-13 11:03:24 -06:00
*stopped,
bkptno="4",
disp="keep",
reason="solib-event",
added=[library="/peak/rel/modules/SampVar/libSampVar.so"],
frame={addr="0x00007ffff7deb290",
func="dl_open_worker",args=[],
from="/lib64/ld-linux-x86-64.so.2",
arch="i386:x86-64"},
thread-id="1",
stopped-threads="all",
core="1"
2021-12-31 13:00:54 -06:00
# Return status from '-catch-xxxx' command.
^done,bkpt={number="2",type="catchpoint",disp="keep",enabled="y",what="exception catch",catch-type="catch",thread-groups=["i1"],times="0"}
^done,bkpt={number="3",type="catchpoint",disp="keep",enabled="y",what="exception throw",catch-type="throw",thread-groups=["i1"],times="0"}
^done,bkpt={number="4",type="catchpoint",disp="keep",enabled="y",what="exception rethrow",catch-type="rethrow",thread-groups=["i1"],times="0"}
^done,bkpt={number="2",type="catchpoint",disp="del",enabled="y",what="exception catch",catch-type="catch",thread-groups=["i1"],regexp="Exception*",times="0"}
2021-12-31 13:00:02 -06:00
# List catchpoints using the same method as listing breakpoints and watchpoints, except a different 'type'.
-break-list
2021-12-31 13:00:54 -06:00
^done,
BreakpointTable={
nr_rows="3",
nr_cols="6",
hdr=[
{width="7",alignment="-1",col_name="number",colhdr="Num"},
{width="14",alignment="-1",col_name="type",colhdr="Type"},
{width="4",alignment="-1",col_name="disp",colhdr="Disp"},
{width="3",alignment="-1",col_name="enabled",colhdr="Enb"},
{width="18",alignment="-1",col_name="addr",colhdr="Address"},
{width="40",alignment="2",col_name="what",colhdr="What"}
],
body=[
bkpt={
number="2",type="catchpoint",disp="keep",enabled="y",what="exception catch",catch-type="catch",thread-groups=["i1"],times="0"
},
bkpt={
number="3",type="catchpoint",disp="keep",enabled="y",what="exception throw",catch-type="throw",thread-groups=["i1"],times="0"
},
bkpt={
number="4",type="catchpoint",disp="keep",enabled="y",what="exception rethrow",catch-type="rethrow",thread-groups=["i1"],times="0"
}
]
}