MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / getModuleName

Method getModuleName

source/kernel/kprocess.cpp:653–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

651}
652
653BString KProcess::getModuleName(U32 eip) {
654 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mappedFilesMutex);
655 for (auto& n : this->mappedFiles) {
656 std::shared_ptr<MappedFile> mappedFile = n.value;
657 if (eip >= mappedFile->address && eip < mappedFile->address + mappedFile->len) {
658 return mappedFile->file->openFile->node->path;
659 }
660 }
661 return B("Unknown");
662}
663
664U32 KProcess::getModuleEip(U32 eip) {
665 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(mappedFilesMutex);

Callers 5

printStackMethod · 0.95
logBlockFunction · 0.80
preFpuLogFunction · 0.80
walkStackMethod · 0.80
logPageFaultMethod · 0.80

Calls 1

BFunction · 0.85

Tested by

no test coverage detected