Skip to content

Commit

Permalink
Debugger: Correct crash with no alloc tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
unknownbrackets committed Feb 15, 2021
1 parent 8d58bbb commit cc1b4e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Core/Util/BlockAllocator.cpp
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion GPU/Debugger/Playback.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit cc1b4e6

Please sign in to comment.