aboutsummaryrefslogtreecommitdiff
path: root/externals/gridflow/bin/demangle
blob: 923bca2520f1c460fc51f802cb96e7da8648d373 (plain)
1
2
3
4
#!/usr/bin/env ruby
f = File.popen "gdb", "r+"
f.puts "maintenance demangle #{ARGV[0]}", "quit"
puts f.read.split("\n")[-2].sub(/^\(gdb\) /,"")