mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-27 16:23:35 +01:00
Debugger: Make memory tags longer.
Need more space for better information.
This commit is contained in:
1 parent
4285485157
commit
c88757b3e7
1 file changed
+8
-4
@@ -46,7 +46,7 @@ private:
|
||||
uint64_t ticks = 0;
|
||||
uint32_t pc = 0;
|
||||
bool allocated = false;
|
||||
char tag[32]{};
|
||||
char tag[128]{};
|
||||
Slab *prev = nullptr;
|
||||
Slab *next = nullptr;
|
||||
|
||||
@@ -77,7 +77,7 @@ struct PendingNotifyMem {
|
||||
uint32_t size;
|
||||
uint64_t ticks;
|
||||
uint32_t pc;
|
||||
char tag[32];
|
||||
char tag[128];
|
||||
};
|
||||
|
||||
static constexpr size_t MAX_PENDING_NOTIFIES = 512;
|
||||
@@ -199,7 +199,7 @@ void MemSlabMap::DoState(PointerWrap &p) {
|
||||
}
|
||||
|
||||
void MemSlabMap::Slab::DoState(PointerWrap &p) {
|
||||
auto s = p.Section("MemSlabMapSlab", 1, 2);
|
||||
auto s = p.Section("MemSlabMapSlab", 1, 3);
|
||||
if (!s)
|
||||
return;
|
||||
|
||||
@@ -208,8 +208,12 @@ void MemSlabMap::Slab::DoState(PointerWrap &p) {
|
||||
Do(p, ticks);
|
||||
Do(p, pc);
|
||||
Do(p, allocated);
|
||||
if (s >= 2) {
|
||||
if (s >= 3) {
|
||||
Do(p, tag);
|
||||
} else if (s >= 2) {
|
||||
char shortTag[32];
|
||||
Do(p, shortTag);
|
||||
memcpy(tag, shortTag, sizeof(shortTag));
|
||||
} else {
|
||||
std::string stringTag;
|
||||
Do(p, stringTag);
|
||||
|
||||
Reference in new issue
Block a user