* Misc createdump fixes
* Fixed issue https://github.com/dotnet/runtime/issues/42589
* Code review feedback
void
CrashInfo::VisitModule(uint64_t baseAddress, std::string& moduleName)
{
- if (baseAddress == 0 || baseAddress == m_auxvValues[AT_SYSINFO_EHDR] || baseAddress == m_auxvValues[AT_BASE]) {
+ if (baseAddress == 0 || baseAddress == m_auxvValues[AT_SYSINFO_EHDR]) {
return;
}
if (m_coreclrPath.empty())
}
if (!dumpWriter.WriteDump())
{
+ fprintf(stderr, "Writing dump FAILED\n");
goto exit;
}
result = true;
// This can happen if the target process dies before createdump is finished
if (read == 0) {
- TRACE("ReadProcessMemory(%" PRIA PRIx64 ", %08x) return 0 bytes read\n", address, bytesToRead);
- break;
+ fprintf(stderr, "ReadProcessMemory(%" PRIA PRIx64 ", %08x) returned 0 bytes read\n", address, bytesToRead);
+ return false;
}
if (!WriteData(m_tempBuffer, read)) {