summaryrefslogtreecommitdiff
path: root/InOsEmuPkg/Unix/GdbRun
diff options
context:
space:
mode:
Diffstat (limited to 'InOsEmuPkg/Unix/GdbRun')
-rw-r--r--InOsEmuPkg/Unix/GdbRun15
1 files changed, 10 insertions, 5 deletions
diff --git a/InOsEmuPkg/Unix/GdbRun b/InOsEmuPkg/Unix/GdbRun
index c374cb8ca5..428e655631 100644
--- a/InOsEmuPkg/Unix/GdbRun
+++ b/InOsEmuPkg/Unix/GdbRun
@@ -67,8 +67,13 @@ define RemoveFirmwareSymbolFile
end
end
-#
-# Start the program running
-#
-run
-
+if gInXcode == 1
+ # in Xcode the program is already runing. Issuing a run command
+ # will cause a fatal debugger error. The break point sciprt that
+ # is used to source this script sets gInCode to 1.
+else
+ #
+ # Start the program running
+ #
+ run
+end