Files
seer/tests/helloskip/MISkip.readme
T
2025-03-29 09:52:06 -05:00

30 lines
1.6 KiB
Plaintext

Run the "skip" command.
https://sourceware.org/gdb/current/onlinedocs/gdb.html/Skipping-Over-Functions-and-Files.html
^done,stack=[frame={level="0",addr="0x00000000004008e5",func="foo",file="helloskip.cpp",fullname="/nas/erniep/Development/seer/tests/helloskip/helloskip.cpp",line="8",arch="i386:x86-64"},
frame={level="1",addr="0x0000000000400994",func="main",file="helloskip.cpp",fullname="/nas/erniep/Development/seer/tests/helloskip/helloskip.cpp",line="17",arch="i386:x86-64"}]
// +--------1---------2---------3---------4-----------------------------------------------------------------
// 1--------0---------0---------0---------0-----------------------------------------------------------------
^done,list="Num Enb Glob File RE Function
1 y n <none> n std::vector<int, std::allocator<int> >::back()
2 y n <none> n std::unique_ptr<int, std::default_delete<int> >::operator*() const"
^(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(\S+)\s+(.*)$
def extract_second_column_to_end(text):
match = re.search(r"^[^\\s]+\\s+(.*)$", text)
if match:
return match.group(1)
return None
Here is the output!
^done,skips=[
{number="1",enable="n",glob="n",file="<none>",re="n",function="std::vector<int, std::allocator<int> >::back()"},
{number="2",enable="n",glob="n",file="<none>",re="n",function="std::unique_ptr<int, std::default_delete<int> >::operator*() const"}
]