mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Debugger: Correct crash with no alloc tag.
This commit is contained in:
parent
8d58bbb634
commit
cc1b4e695d
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
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)
|
if (_tag)
|
||||||
truncate_cpy(tag, _tag);
|
truncate_cpy(tag, _tag);
|
||||||
else
|
else
|
||||||
|
|
|
@ -330,7 +330,7 @@ void DumpExecute::SyncStall() {
|
||||||
bool DumpExecute::SubmitCmds(const void *p, u32 sz) {
|
bool DumpExecute::SubmitCmds(const void *p, u32 sz) {
|
||||||
if (execListBuf == 0) {
|
if (execListBuf == 0) {
|
||||||
u32 allocSize = LIST_BUF_SIZE;
|
u32 allocSize = LIST_BUF_SIZE;
|
||||||
execListBuf = userMemory.Alloc(allocSize, "List buf");
|
execListBuf = userMemory.Alloc(allocSize, true, "List buf");
|
||||||
if (execListBuf == -1) {
|
if (execListBuf == -1) {
|
||||||
execListBuf = 0;
|
execListBuf = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue