Changed SDL debugger a little

git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@165 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
mudlord 2007-12-06 02:48:03 +00:00
parent 0f1d4db7cd
commit f628d9051f
1 changed files with 21 additions and 11 deletions

View File

@ -435,12 +435,17 @@ static void debuggerPrintMember(Function *f,
int off = m->bitOffset;
int size = m->byteSize;
u32 v = 0;
if(size == 1)
switch(size){
case 1:
v = debuggerReadByte(location);
else if(size == 2)
break;
case 2:
v = debuggerReadHalfWord(location);
else if(size == 4)
break;
default:
v = debuggerReadMemory(location);
break;
}
while(bitSize) {
int top = size*8 - off;
@ -454,12 +459,17 @@ static void debuggerPrintMember(Function *f,
bitSize -= (top+1);
location -= size;
off = 0;
if(size == 1)
switch(size){
case 1:
v = debuggerReadByte(location);
else if(size == 2)
break;
case 2:
v = debuggerReadHalfWord(location);
else
break;
default:
v = debuggerReadMemory(location);
break;
}
}
}
debuggerPrintBaseType(m->type, value, location, LOCATION_memory,