#StackBounty: #crash-reports #google-breakpad Get faulting module name and exception address

Bounty: 50

For Windows, Win32 API EXCEPTION_POINTERS is passed into Google-Breakpad‘s MinidumpCallback, so one can easily get this information. For example:

 SIZE_T nSize = VirtualQuery (exinfo->ExceptionRecord->ExceptionAddress, &mbi, sizeof(mbi));
 if (nSize)
      auto crashAddress = (DWORD_PTR)exinfo->ExceptionRecord->ExceptionAddress - (DWORD_PTR)mbi.AllocationBase;
      WCHAR szModule[MAX_PATH] = L"";
      GetModuleFileName((HMODULE)mbi.AllocationBase, szModule, _countof(szModule));

Is it possible to do this for macOS and Linux?

Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.