Patch: fallback stack trace information (mainly for Darwin)
Original Reporter info from Mantis: mftq75
-
Reporter name: C Western
Original Reporter info from Mantis: mftq75
- Reporter name: C Western
Description:
The attached patch is based on that from my submitted 38483. (The patch I suggested there has been applied to trunk, with the exception of this part; I am adding it here so the information is not lost.) It provides a fall back method information for a stack trace in case where the standard debug information is not present. It is most useful under Mac OSX, as the debug information is typically kept in separate files, and if (say) the executable is copied to a different machine, trace back information is only numeric unless special care is taken. With this patch, routine name and an address offset is given. It should also work under Linux in general but:
- It is less useful, as the standard debug information is normally in the executable file itself for linux.
- For reasons I don't understand I can't build the rtl if this patch is applied, though the patched file will compile outside the RTL.
I would suggest applying with {$IFDEF DARWIN} as a minimum (for which the rtl does build as normal).
Mantis conversion info:
- Mantis ID: 38739
- Version: 3.3.1