Skip to content

Commit 8dd990d

Browse files
committed
Update signal.cpp
1 parent d00a9b8 commit 8dd990d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

signal.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ void Handler(int sig, siginfo_t *si, void *ptr)
218218
DEVVAR_LOG(g_bNoModsInLog); DEVVAR_LOG(g_bDumpAllThreads); DEVVAR_LOG(g_bEHUnwind); DEVVAR_LOG(g_bMoreRegsInfo); g_pLogFile << std::endl;
219219

220220
g_pLogFile << "Exception Signal " << sig << " - " << SignalEnum(sig) << " (" << CodeEnum(sig, si->si_code) << ")" << std::endl;
221-
g_pLogFile << "Fault address: 0x" << std::hex << std::uppercase << faultAddr << " / " << PC << std::nouppercase << std::endl;
221+
g_pLogFile << "Fault address: 0x" << std::hex << std::uppercase << faultAddr << " / 0x" << PC << " / 0x" << (uintptr_t)si->si_addr << std::nouppercase << std::endl;
222222
g_pLogFile << "A POSSIBLE (!) reason of the crash:\n- ";
223223
switch(sig)
224224
{
@@ -315,6 +315,7 @@ void Handler(int sig, siginfo_t *si, void *ptr)
315315
#define SHOWREG(__t, __v) g_pLogFile << #__t ":\t" << std::dec << __v << "\t0x" << std::hex << std::uppercase << __v; \
316316
if(dladdr((void*)(__v), &dlRegInfo) != 0 && dlRegInfo.dli_fname) { \
317317
g_pLogFile << " (" << GetFilenamePart(dlRegInfo.dli_fname) << " + 0x" << std::hex << std::uppercase << ((uintptr_t)(__v) - (uintptr_t)dlRegInfo.dli_fbase) << ")"; \
318+
if(dlRegInfo.dli_sname) g_pLogFile << std::nouppercase << " (" << dlInfo.dli_sname << ")"; \
318319
} g_pLogFile << std::endl
319320

320321
#ifdef AML32
@@ -483,7 +484,7 @@ void Handler(int sig, siginfo_t *si, void *ptr)
483484
}
484485
else if(!stack)
485486
{
486-
g_pLogFile << "\n----------------------------------------------------\nA program stack is unknown!\n";
487+
g_pLogFile << "\n----------------------------------------------------\nA program stack is missing..?!\n";
487488
g_pLogFile.flush();
488489
}
489490

0 commit comments

Comments
 (0)