File: filtersym

package info (click to toggle)
audacious 4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,748 kB
  • sloc: cpp: 30,605; sh: 4,082; ansic: 3,319; makefile: 543; lisp: 409; xml: 360; python: 76; awk: 10
file content (17 lines) | stat: -rwxr-xr-x 251 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/gawk -f

# demangle symbols file

/^lib/

/^ \(/

function demangle(sym) {
    split(sym, parts, /@/)
    "c++filt -n " parts[1] | getline demangled
    return demangled "@" parts[2]
}

/^ _Z/ {
    print " (c++)\"" demangle($1) "\" " $2
}