Debugger: Keep char *s for memchecks.

This commit is contained in:
Unknown W. Brackets committed 2021-02-20 16:16:43 -08:00
1 parent 07de2e5401
commit ee71ef961f
3 files changed
+11 -11

No files matched your search

+3 -3
View File
@@ -75,7 +75,7 @@ struct PendingNotifyMem {
std::string tag;
};
static constexpr size_t MAX_PENDING_NOTIFIES = 4096;
static constexpr size_t MAX_PENDING_NOTIFIES = 512;
static MemSlabMap allocMap;
static MemSlabMap suballocMap;
static MemSlabMap writeMap;
@@ -377,9 +377,9 @@ void NotifyMemInfoPC(MemBlockFlags flags, uint32_t start, uint32_t size, uint32_
}
if (flags & MemBlockFlags::WRITE) {
CBreakPoints::ExecMemCheck(start, true, size, pc, tag);
CBreakPoints::ExecMemCheck(start, true, size, pc, tag.c_str());
} else if (flags & MemBlockFlags::READ) {
CBreakPoints::ExecMemCheck(start, false, size, pc, tag);
CBreakPoints::ExecMemCheck(start, false, size, pc, tag.c_str());
}
}