GDB: fix "step" followed by "continue" issue

Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
Marcin Rajwa 2019-02-12 20:04:26 +01:00 committed by Janusz Jankowski
parent 1cbc83650d
commit 02ef4d5392
2 changed files with 6 additions and 2 deletions

View File

@ -154,6 +154,10 @@ DebugExceptionEntry:
wsr a2, PS
rsync
/* reset icountlevel - essential when coming back from single step */
movi a2, 0x00
wsr a2, ICOUNTLEVEL
movi a4, gdb_handle_exception
callx4 a4

View File

@ -279,7 +279,7 @@ while (1) {
mem_to_hex(sregs + addr, remcom_out_buffer, 4);
} else if (addr >= 0x300 && addr < 0x400) {
strcpy((char *)remcom_out_buffer,
"out of scope");
"deadbabe");
} else { /* unexpected register number */
strcpy((char *)remcom_out_buffer, "E00");
}
@ -469,7 +469,7 @@ static void read_sr(int sr)
: "=r"(val)
: "r"(sr)
: "a3", "memory");
sregs[sr] = val;
//sregs[sr] = val;
#endif
}