[Skiboot] [PATCH] skiboot.tcl: Add option to wait for GDB server connection

Alistair Popple alistair at popple.id.au
Thu May 16 15:44:33 AEST 2019


Add an environment variable which makes Mambo wait for a connection
from gdb prior to starting simulation.

Signed-off-by: Alistair Popple <alistair at popple.id.au>
---
 external/mambo/skiboot.tcl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 545a7cca..530a70c9 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -555,6 +555,10 @@ epapr::of2dtb mysim $mconf(epapr_dt_addr)
 # Set run speed
 mysim mode fastest
 
+if { [info exists env(GDB_SERVER)] } {
+    mysim debugger wait $env(GDB_SERVER)
+}
+
 if { [info exists env(SKIBOOT_AUTORUN)] } {
     if [catch { mysim go }] {
 	readline
-- 
2.11.0



More information about the Skiboot mailing list