Debugger: Correct crash with no alloc tag.

This commit is contained in:
Unknown W. Brackets 2021-02-07 19:10:08 -08:00
parent 8d58bbb634
commit cc1b4e695d
2 changed files with 2 additions and 2 deletions

View file

@ -489,7 +489,7 @@ BlockAllocator::Block::Block(u32 _start, u32 _size, bool _taken, Block *_prev, B
}
void BlockAllocator::Block::SetAllocated(const char *_tag, bool suballoc) {
NotifyMemInfo(suballoc ? MemBlockFlags::SUB_ALLOC : MemBlockFlags::ALLOC, start, size, _tag);
NotifyMemInfo(suballoc ? MemBlockFlags::SUB_ALLOC : MemBlockFlags::ALLOC, start, size, _tag ? _tag : "");
if (_tag)
truncate_cpy(tag, _tag);
else

View file

@ -330,7 +330,7 @@ void DumpExecute::SyncStall() {
bool DumpExecute::SubmitCmds(const void *p, u32 sz) {
if (execListBuf == 0) {
u32 allocSize = LIST_BUF_SIZE;
execListBuf = userMemory.Alloc(allocSize, "List buf");
execListBuf = userMemory.Alloc(allocSize, true, "List buf");
if (execListBuf == -1) {
execListBuf = 0;
}