mirror of
https://github.com/epasveer/seer.git
synced 2026-08-30 09:00:42 +08:00
30 lines
1.6 KiB
Plaintext
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"}
|
|
]
|
|
|