From 24fc352517c13d8278a0e7800c7cc913ed02c013 Mon Sep 17 00:00:00 2001 From: Sean Cross Date: Mon, 11 Mar 2024 14:01:37 +0800 Subject: [PATCH] emulation: expose gdb serial to port 3456 Signed-off-by: Sean Cross --- emulation/betrusted.resc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/emulation/betrusted.resc b/emulation/betrusted.resc index 4d8d7afcf..6259d38f5 100644 --- a/emulation/betrusted.resc +++ b/emulation/betrusted.resc @@ -107,6 +107,12 @@ macro reset emulation CreateServerSocketTerminal 8888 "kernel" False connector Connect sysbus.uart kernel +# Connect the `app_uart` port -- which is the port on which +# the Xous gdbserver runs -- to TCP port 3456, to allow for +# application-aware debugging +emulation CreateServerSocketTerminal 3456 "gdb" False +connector Connect sysbus.app_uart gdb + runMacro $reset mach clear