You can customize how addr2line presents information using these combinations:
LLVM Style
To match the output of llvm-symbolizer, use the --llvm flag. This is useful for scripts expecting that specific format.
addr2line -e my_exe 0x401234 --llvm
Pretty Printing
For more readable output where each location is on its own line, use -p or --pretty-print. This is often used in conjunction with -f (functions) and -i (inlines) to see call stacks clearly.
addr2line -e my_exe 0x401234 -p -f -i
Including Addresses
By default, the address is not printed. To include it, use -a or --addresses.
addr2line -e my_exe 0x401234 -a
addr2line -e my_exe 0x401234 -p -f -i