Search
lxdream.org :: lxdream/src/gtkui/gtk_debug.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/gtkui/gtk_debug.c
changeset 1091:186558374345
prev1065:bc1cc0c54917
next1122:93d07b7d0ac6
author nkeynes
date Tue Dec 15 08:46:37 2009 +1000 (10 years ago)
permissions -rw-r--r--
last change Add side-by-side x86+sh4 disassembly output
Print SH4 state information and disassembly of the current block when
crashing.
Fix delay slot instruction in conditional branch not being marked as a
delay-slot instruction in the branch-not-taken path.
Rename REG_* defines in cpu.h to avoid conflict with translation defs
file annotate diff log raw
1.1 --- a/src/gtkui/gtk_debug.c Sun Jul 05 13:52:50 2009 +1000
1.2 +++ b/src/gtkui/gtk_debug.c Tue Dec 15 08:46:37 2009 +1000
1.3 @@ -202,10 +202,10 @@
1.4 arr[0] = data->cpu->regs_info[i].name;
1.5 void *value = data->cpu->get_register(i);
1.6 if( value != NULL ) {
1.7 - if( data->cpu->regs_info->type == REG_INT ) {
1.8 + if( data->cpu->regs_info->type == REG_TYPE_INT ) {
1.9 sprintf( buf, "%08X", *((uint32_t *)value) );
1.10 gtk_clist_append( data->regs_list, arr );
1.11 - } else if( data->cpu->regs_info->type == REG_FLOAT ) {
1.12 + } else if( data->cpu->regs_info->type == REG_TYPE_FLOAT ) {
1.13 sprintf( buf, "%f", *((float *)value) );
1.14 gtk_clist_append( data->regs_list, arr );
1.15 }
1.16 @@ -223,7 +223,7 @@
1.17 for( i=0; data->cpu->regs_info[i].name != NULL; i++ ) {
1.18 void *value = data->cpu->get_register(i);
1.19 if( value != NULL ) {
1.20 - if( data->cpu->regs_info[i].type == REG_INT ) {
1.21 + if( data->cpu->regs_info[i].type == REG_TYPE_INT ) {
1.22 /* Yes this _is_ probably fairly evil */
1.23 if( *((uint32_t *)value) !=
1.24 *((uint32_t *)((char *)data->saved_regs + ((char *)value - (char *)data->cpu->regs))) ) {
.