mirror of
https://github.com/SourMesen/Mesen2.git
synced 2025-04-02 10:21:44 -04:00
18 lines
310 B
Awk
Executable file
18 lines
310 B
Awk
Executable file
#!/usr/bin/gawk -f
|
|
|
|
BEGIN {
|
|
cmd = "llvm-symbolizer --output-style GNU -Ce bin/linux-x64/Release/MesenCore.so" addr
|
|
}
|
|
|
|
$4 ~ /MesenCore\.so/ {
|
|
match($4, /0x[0-9A-Fa-f]+/)
|
|
ofs = substr($4, RSTART, RLENGTH)
|
|
print ofs |& cmd
|
|
cmd |& getline func_name
|
|
cmd |& getline src
|
|
|
|
$2 = func_name
|
|
$3 = src
|
|
}
|
|
|
|
{ print }
|