From f70c2a12344fca6c73821cb3a7feacf0b92009f9 Mon Sep 17 00:00:00 2001 From: andrewfish Date: Mon, 27 Jun 2011 19:56:15 +0000 Subject: InOsEmuPkg: Fix Xcode symbol loading with new scheme. Fix bug in dlcose. Move some of the gdb infrastrucuture to the start of main(). signed-off-by: andrewfish git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@11895 6f19259b-4bc3-4df7-8a09-765794883524 --- InOsEmuPkg/Unix/GdbRun | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'InOsEmuPkg/Unix/GdbRun') 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 -- cgit v1.2.3