Skip to content
Snippets Groups Projects
Commit 3fa43aba authored by Jason Wessel's avatar Jason Wessel
Browse files

debug_core,kdb: fix crash when arch does not have single step


When an arch such as mips and microblaze does not implement either HW
or software single stepping the debug core should re-enter kdb.  The
kdb code will properly ignore the single step operation.  Attempting
to single step the kernel without software or hardware support causes
unpredictable kernel crashes.

Signed-off-by: default avatarJason Wessel <jason.wessel@windriver.com>
parent df493935
No related branches found
No related tags found
No related merge requests found
......@@ -605,6 +605,8 @@ cpu_master_loop:
if (dbg_kdb_mode) {
kgdb_connected = 1;
error = kdb_stub(ks);
if (error == -1)
continue;
kgdb_connected = 0;
} else {
error = gdb_serial_stub(ks);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment