aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/debug/gdbstub.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/debug/gdbstub.c')
-rw-r--r--kernel/debug/gdbstub.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/debug/gdbstub.c b/kernel/debug/gdbstub.c
index 38573f35a5ad..19d9a578c753 100644
--- a/kernel/debug/gdbstub.c
+++ b/kernel/debug/gdbstub.c
@@ -783,7 +783,10 @@ static void gdb_cmd_query(struct kgdb_state *ks)
783 len = len / 2; 783 len = len / 2;
784 remcom_out_buffer[len++] = 0; 784 remcom_out_buffer[len++] = 0;
785 785
786 kdb_common_init_state(ks);
786 kdb_parse(remcom_out_buffer); 787 kdb_parse(remcom_out_buffer);
788 kdb_common_deinit_state();
789
787 strcpy(remcom_out_buffer, "OK"); 790 strcpy(remcom_out_buffer, "OK");
788 } 791 }
789 break; 792 break;