Skip to content

Commit 340f1d0

Browse files
nklaymankv2019i
authored andcommitted
debug: enter Zephyr GDB stub on ipc_glb_gdb_debug command
Need to decide if old XTOS GDB stub should be removed and add support for IPC4. Signed-off-by: Noah Klayman <noah.klayman@intel.com>
1 parent 38064ce commit 340f1d0

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/ipc/ipc3/handler.c

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -969,10 +969,14 @@ static int ipc_glb_trace_message(uint32_t header)
969969

970970
static int ipc_glb_gdb_debug(uint32_t header)
971971
{
972-
/* no furher information needs to be extracted form header */
972+
/* no further information needs to be extracted from header */
973973
(void) header;
974974

975-
#if CONFIG_GDB_DEBUG
975+
#if CONFIG_GDBSTUB
976+
gdb_init();
977+
return 0;
978+
// TODO: remove old GDB stub?
979+
#elif CONFIG_GDB_DEBUG
976980
gdb_init_debug_exception();
977981
gdb_init();
978982
/* TODO: this asm should be in arch/include/debug/debug.h

0 commit comments

Comments
 (0)