Yes, the code for handling and formatting panic is big.
StackTrace is an array with addresses, you can handle them as return addresses.
getSelfDebugInfo and getSymbolAtAddress do the magic to find the symbol, file and line number from the debugging info of the ELF file.
1 Like