aboutsummaryrefslogtreecommitdiff
path: root/external/mambo
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2019-05-16 15:44:33 +1000
committerStewart Smith <stewart@linux.ibm.com>2019-05-20 14:20:29 +1000
commit3b36d5be5ea08c945de4075314be98e1a6a3d3dd (patch)
tree31eb28c149b13ec3e82184d0c11bb33f2cc13b14 /external/mambo
parent68284c21173978e384f605954423a088b61c7540 (diff)
downloadskiboot-3b36d5be5ea08c945de4075314be98e1a6a3d3dd.zip
skiboot-3b36d5be5ea08c945de4075314be98e1a6a3d3dd.tar.gz
skiboot-3b36d5be5ea08c945de4075314be98e1a6a3d3dd.tar.bz2
skiboot.tcl: Add option to wait for GDB server connection
Add an environment variable which makes Mambo wait for a connection from gdb prior to starting simulation. Signed-off-by: Alistair Popple <alistair@popple.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'external/mambo')
-rw-r--r--external/mambo/skiboot.tcl4
1 files changed, 4 insertions, 0 deletions
diff --git a/external/mambo/skiboot.tcl b/external/mambo/skiboot.tcl
index 5155c68..9f424dd 100644
--- a/external/mambo/skiboot.tcl
+++ b/external/mambo/skiboot.tcl
@@ -594,6 +594,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