1
0
Fork 0

DBG: resolved issue #463 (bugs in the database reset most software breakpoints on restart).

This commit is contained in:
mrexodia 2015-12-19 04:17:53 +01:00
parent 8e7690d00a
commit a004fdd19d
2 changed files with 2 additions and 2 deletions

View File

@ -357,7 +357,7 @@ void BpCacheLoad(JSON Root)
memset(&breakpoint, 0, sizeof(BREAKPOINT));
if(breakpoint.type == BPNORMAL)
breakpoint.oldbytes = (short)json_hex_value(json_object_get(value, "oldbytes"));
breakpoint.oldbytes = (unsigned short)(json_hex_value(json_object_get(value, "oldbytes")) & 0xFFFF);
breakpoint.type = (BP_TYPE)json_integer_value(json_object_get(value, "type"));
breakpoint.addr = (duint)json_hex_value(json_object_get(value, "address"));
breakpoint.enabled = json_boolean_value(json_object_get(value, "enabled"));

View File

@ -22,7 +22,7 @@ struct BREAKPOINT
bool enabled;
bool singleshoot;
bool active;
short oldbytes;
unsigned short oldbytes;
BP_TYPE type;
DWORD titantype;
char name[MAX_BREAKPOINT_SIZE];