This pull request introduces changes to enhance the logging functionality in ImHex by displaying the stacktrace implementation used when showing a stack trace.
Stacktrace Implementation Logging: Modifies getStackTrace() in main/gui/source/stacktrace.cpp to return a StackTraceResult struct, which includes both the stack frames and the name of the stacktrace implementation used (Windows, execinfo, or backtrace depending on the compilation flags). This allows for the identification of the stacktrace implementation in the logs.
Crash Handler Update: Updates printStackTrace() in main/gui/source/crash_handlers.cpp to log the name of the stacktrace implementation used before printing the stack frames. This ensures that the implementation name is clearly logged whenever a stack trace is printed due to a crash.
Related to #1768
This pull request introduces changes to enhance the logging functionality in ImHex by displaying the stacktrace implementation used when showing a stack trace.
getStackTrace()
inmain/gui/source/stacktrace.cpp
to return aStackTraceResult
struct, which includes both the stack frames and the name of the stacktrace implementation used (Windows
,execinfo
, orbacktrace
depending on the compilation flags). This allows for the identification of the stacktrace implementation in the logs.printStackTrace()
inmain/gui/source/crash_handlers.cpp
to log the name of the stacktrace implementation used before printing the stack frames. This ensures that the implementation name is clearly logged whenever a stack trace is printed due to a crash.For more details, open the Copilot Workspace session.