Crash log: Move GDB/LLDB logging to its own section

This commit is contained in:
Jonathan G Rennison
2023-06-12 18:38:27 +01:00
parent dd57fc6ecf
commit da07c8ce51
4 changed files with 34 additions and 6 deletions

View File

@@ -367,15 +367,19 @@ class CrashLogUnix : public CrashLog {
}
#endif
/**
* Log GDB information if available
*/
char *LogDebugExtra(char *buffer, const char *last) const override
{
return this->LogGdbInfo(buffer, last);
}
/**
* Show registers if possible
*
* Also log GDB information if available
*/
char *LogRegisters(char *buffer, const char *last) const override
{
buffer = LogGdbInfo(buffer, last);
#ifdef WITH_UCONTEXT
ucontext_t *ucontext = static_cast<ucontext_t *>(context);
#if defined(__x86_64__)