Changed SDL debugger a little
This commit is contained in:
parent
97c0cc45ec
commit
75a3acacc6
|
@ -435,12 +435,17 @@ static void debuggerPrintMember(Function *f,
|
||||||
int off = m->bitOffset;
|
int off = m->bitOffset;
|
||||||
int size = m->byteSize;
|
int size = m->byteSize;
|
||||||
u32 v = 0;
|
u32 v = 0;
|
||||||
if(size == 1)
|
switch(size){
|
||||||
|
case 1:
|
||||||
v = debuggerReadByte(location);
|
v = debuggerReadByte(location);
|
||||||
else if(size == 2)
|
break;
|
||||||
v = debuggerReadHalfWord(location);
|
case 2:
|
||||||
else if(size == 4)
|
v = debuggerReadHalfWord(location);
|
||||||
v = debuggerReadMemory(location);
|
break;
|
||||||
|
default:
|
||||||
|
v = debuggerReadMemory(location);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
while(bitSize) {
|
while(bitSize) {
|
||||||
int top = size*8 - off;
|
int top = size*8 - off;
|
||||||
|
@ -454,12 +459,17 @@ static void debuggerPrintMember(Function *f,
|
||||||
bitSize -= (top+1);
|
bitSize -= (top+1);
|
||||||
location -= size;
|
location -= size;
|
||||||
off = 0;
|
off = 0;
|
||||||
if(size == 1)
|
switch(size){
|
||||||
v = debuggerReadByte(location);
|
case 1:
|
||||||
else if(size == 2)
|
v = debuggerReadByte(location);
|
||||||
v = debuggerReadHalfWord(location);
|
break;
|
||||||
else
|
case 2:
|
||||||
v = debuggerReadMemory(location);
|
v = debuggerReadHalfWord(location);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
v = debuggerReadMemory(location);
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
debuggerPrintBaseType(m->type, value, location, LOCATION_memory,
|
debuggerPrintBaseType(m->type, value, location, LOCATION_memory,
|
||||||
|
|
Loading…
Reference in New Issue