mirror of https://github.com/thesofproject/sof.git
GDB: fix "step" followed by "continue" issue
Signed-off-by: Marcin Rajwa <marcin.rajwa@linux.intel.com>
This commit is contained in:
parent
1cbc83650d
commit
02ef4d5392
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue