| 1 |
build and install gcc to $prefix, then to see the raw backtrace info run: |
| 2 |
LD_LIBRARY_PATH=$prefix/lib64 CXX=$prefix/bin/g++ make run |
| 3 |
|
| 4 |
for a filtered view using addr2line, see ./prettytrace.sh: |
| 5 |
LD_LIBRARY_PATH=$prefix/lib64 CXX=$prefix/bin/g++ make run |& ./prettytrace.sh |
| 6 |
|
| 7 |
prettytrace.sh relies on addr2line and c++filt to lookup and demangle names, |
| 8 |
and misc coreutils |
| 9 |
|
| 10 |
example_out.txt has an example of the raw output while example_pretty.txt |
| 11 |
shows the corresponding prettified output |
| 12 |
|