Re: Xcode Debugger Showing Wrong File
Re: Xcode Debugger Showing Wrong File
- Subject: Re: Xcode Debugger Showing Wrong File
- From: Jim Ingham <email@hidden>
- Date: Thu, 6 Dec 2007 15:48:38 -0800
You're using gcc-3.3 for the ppc side of this target. If you have to
use gcc-3.3 for some reason, then you have to use stabs, the DWARF
support only started with the 4.0 compiler on Mac OS X.
You should have gotten a valid dSYM for the x86 side of the binary,
but the PPC side of the dSYM is going to be empty, and you'll have to
use the stabs in the ppc side of the binary. Or, if you don't
actually need to use 3.3 on PPC, you can switch to 4.0 and you'll get
DWARF for both architectures.
Jim
On Dec 6, 2007, at 3:31 PM, Steve Sisak wrote:
At 11:31 AM -0800 12/6/07, Jim Ingham wrote:
Either you are using stabs, in which case you will be much happier
if you switch to using DWARF, or if you are using DWARF, there is
probably something wrong with the line table. If I understand your
note aright, you saw the problem on Intel but not on PPC. That is
consistent with it being a line table problem, since the line
tables for different architectures are going to be totally different.
Hi Jim,
That was my guess as well.
As it turns out, I was using stabs, the historical reason being that
in the past I haven't been able to get DWARF to work and gave up --
I just tried again and have it working for some projects and failing
for others (there are around 25 projects in my build, all buit with
the same .xcconfig files).
The error is:
ERROR: No debug map or DWARF data was found to link.
Below is the contents of my Debug.xcconfig -- he only change I made
to was to add the line:
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
Following is the transcript of a failed build where I touched a
single source file with an otherwise up-to-date build.
I've already checked to be sure this isn't overridden at the project
or target levels.
I'll be perfectly happy to use DWARF if I can get my projects to
build with it. :-)
Any pointers appreciated.
Thanks,
-Steve
---------- Debug.xcconfig --------------
COPY_PHASE_STRIP = NO
GCC_ENABLE_FIX_AND_CONTINUE = NO
GCC_GENERATE_DEBUGGING_SYMBOLS = YES
GCC_OPTIMIZATION_LEVEL = 0
GCC_PRECOMPILE_PREFIX_HEADER = YES
GCC_SHORT_ENUMS = YES
GCC_THREADSAFE_STATICS = YES
GCC_ENABLE_PASCAL_STRINGS = YES
GCC_DYNAMIC_NO_PIC = YES
DEBUG_INFORMATION_FORMAT = dwarf-with-dsym
GCC_WARN_ABOUT_DEPRECATED_FUNCTIONS = NO
GCC_WARN_ABOUT_INVALID_OFFSETOF_MACRO = NO
GCC_WARN_ABOUT_POINTER_SIGNEDNESS = YES
GCC_WARN_ABOUT_MISSING_PROTOTYPES = YES
GCC_WARN_NON_VIRTUAL_DESTRUCTOR = YES
GCC_WARN_HIDDEN_VIRTUAL_FUNCTIONS = YES
GCC_WARN_TYPECHECK_CALLS_TO_PRINTF = YES
GCC_WARN_INITIALIZER_NOT_FULLY_BRACKETED = YES
GCC_WARN_MISSING_PARENTHESES = YES
GCC_WARN_CHECK_SWITCH_STATEMENTS = YES
GCC_WARN_UNUSED_FUNCTION = YES
GCC_WARN_UNUSED_LABEL = YES
GCC_WARN_UNUSED_VARIABLE = YES
GCC_WARN_UNUSED_VALUE = YES
GCC_WARN_UNKNOWN_PRAGMAS = YES
GCC_WARN_SHADOW = YES
GCC_WARN_ALLOW_INCOMPLETE_PROTOCOL = YES
DEAD_CODE_STRIPPING = YES
PRESERVE_DEAD_CODE_INITS_AND_TERMS = YES
ARCHS = $(IOX_ARCH_I386) $(IOX_ARCH_PPC)
IOX_ARCH_PPC=ppc
IOX_ARCH_I386=i386
GCC_VERSION_ppc = 3.3
GCC_VERSION_i386 = 4.0
MACOSX_DEPLOYMENT_TARGET_ppc = 10.2
MACOSX_DEPLOYMENT_TARGET_i386 = 10.4
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk
STYLE_DASH_EXP = -$(CONFIGURATION)
STYLE_EXP = $(CONFIGURATION)
STYLE_VERS_STR = ($(CONFIGURATION))
STYLE_NAME = $(CONFIGURATION)
STYLE_PREFIX_NAME = $(CONFIGURATION)
ZERO_LINK = NO
IOX_SANDBOX_ROOT = $(IOX_SRC_ROOT)/..
IOX_OBJ_BASE = $(SRCROOT)/$(IOX_SANDBOX_ROOT)/_Scratch_
IOX_SYM_BASE = $(SRCROOT)/$(IOX_SANDBOX_ROOT)/_Build_
OBJROOT = $(IOX_OBJ_BASE)
SYMROOT = $(IOX_SYM_BASE)
CURRENT_YEAR = 2005
IOX_VERSION_STR = 1.0d1
---------- build log --------------
Building target "Device Monitor" of project "Camera Monitor.xc2"
with configuration "Debug"
Checking Dependencies
CompileC "../../_Scratch_/Camera Monitor.xc2.build/Debug/Device
Monitor.build/Objects-normal/i386/CameraMonitor.o" "/Volumes/MacPro/
Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera Monitor/
CameraMonitor.cpp" normal i386 c++ com.apple.compilers.gcc.4_0
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
/usr/bin/gcc-4.0 -x c++ -arch i386 -pipe -Wno-trigraphs -fpascal-
strings -fshort-enums -fasm-blocks -O0 -Wnon-virtual-dtor -
Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch
-Wunused-function -Wunused-label -Wunused-variable -Wunused-value -
Wunknown-pragmas -Wshadow -DqUseCoreServicesOnly=1 -fmessage-
length=0 -fvisibility=hidden -fvisibility-inlines-hidden -Wno-
deprecated-declarations -Wno-invalid-offsetof -mmacosx-version-
min=10.4 -gdwarf-2 -I/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/
CVS\ Root/Camera\ Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/
Debug/Device\ Monitor.build/ioxdeviced.hmap -Wmost -Wno-four-char-
constants -Wno-unknown-pragmas -mdynamic-no-pic -F/Volumes/MacPro/
Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\ Monitor/../../
_Build_/Debug -I/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\
Root/Camera\ Monitor/../../_Build_/Debug/include -I/Volumes/MacPro/
Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\ Monitor/../../
_Scratch_/Camera\ Monitor.xc2.build/Debug/Device\ Monitor.build/
DerivedSources -isysroot /Developer/SDKs/MacOSX10.4u.sdk -include /
Library/Caches/com.apple.Xcode.3001/SharedPrecompiledHeaders/
DebugPrefix-acnvgbbfifhdtpcxeufomkxzsabp/DebugPrefix.h -
DqUseCppExceptionHandling=1 -DVALIDATE_SN_TYPE=kValidateAnyDevice -
DqUseSecurityFramework=1 -c /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk
\ (CVS)/CVS\ Root/Camera\ Monitor/CameraMonitor.cpp -o /Volumes/
MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\
Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/Device\
Monitor.build/Objects-normal/i386/CameraMonitor.o
CompileC "../../_Scratch_/Camera Monitor.xc2.build/Debug/Device
Monitor.build/Objects-normal/ppc/CameraMonitor.o" "/Volumes/MacPro/
Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera Monitor/
CameraMonitor.cpp" normal ppc c++ com.apple.compilers.gcc.3_3
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs -fpascal-
strings -fshort-enums -fasm-blocks -g -O0 -Wnon-virtual-dtor -
Woverloaded-virtual -Wformat -Wmissing-braces -Wparentheses -Wswitch
-Wunused-function -Wunused-label -Wunused-variable -Wunused-value -
Wunknown-pragmas -Wshadow -DqUseCoreServicesOnly=1 -fmessage-
length=0 -mtune=G4 -Wno-deprecated-declarations -Wno-invalid-
offsetof -Wp,-header-mapfile,/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk
\ (CVS)/CVS\ Root/Camera\ Monitor/../../_Scratch_/Camera\
Monitor.xc2.build/Debug/Device\ Monitor.build/ioxdeviced.hmap -Wmost
-Wno-four-char-constants -Wno-unknown-pragmas -mdynamic-no-pic -F/
Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\
Monitor/../../_Build_/Debug -I/Volumes/MacPro/Users/sgs/Tip\ of\
Trunk\ (CVS)/CVS\ Root/Camera\ Monitor/../../_Build_/Debug/include -
I/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\
Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/Device\
Monitor.build/DerivedSources -DMAC_OS_X_VERSION_MIN_REQUIRED=1020 -
fconstant-cfstrings -D__CONSTANT_CFSTRINGS__ -isystem /Developer/
SDKs/MacOSX10.4u.sdk/usr/include/gcc/darwin/3.3 -I/Developer/SDKs/
MacOSX10.4u.sdk/usr/include/gcc/darwin/3.3/c++ -I/Developer/SDKs/
MacOSX10.4u.sdk/usr/include/gcc/darwin/3.3/c++/ppc-darwin -isystem /
Developer/SDKs/MacOSX10.4u.sdk/usr/include -include /Library/Caches/
com.apple.Xcode.3001/SharedPrecompiledHeaders/DebugPrefix-
fhkaxpfsmppyurenpfynwumgjdag/DebugPrefix.h -
DqUseCppExceptionHandling=1 -DVALIDATE_SN_TYPE=kValidateAnyDevice -
DqUseSecurityFramework=1 -c /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk
\ (CVS)/CVS\ Root/Camera\ Monitor/CameraMonitor.cpp -o /Volumes/
MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\
Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/Device\
Monitor.build/Objects-normal/ppc/CameraMonitor.o
Ld "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor/../../_Scratch_/Camera Monitor.xc2.build/Debug/Device
Monitor.build/Objects-normal/i386/ioxdeviced" normal i386
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
/usr/bin/g++-4.0 -o /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\
(CVS)/CVS\ Root/Camera\ Monitor/../../_Scratch_/Camera\
Monitor.xc2.build/Debug/Device\ Monitor.build/Objects-normal/i386/
ioxdeviced -L/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\
Root/Camera\ Monitor/../../_Build_/Debug -F/Volumes/MacPro/Users/sgs/
Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\ Monitor/../../_Build_/Debug -
filelist /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/
Camera\ Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/
Device\ Monitor.build/Objects-normal/i386/ioxdeviced.LinkFileList -
framework IOKit -framework CoreServices -framework CoreFoundation -
framework Security -arch i386 -prebind -Wl,-Y,1455 -mmacosx-version-
min=10.4 -Wl,-dead_strip -no_dead_strip_inits_and_terms -isysroot /
Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/ld: warning -prebind ignored because
MACOSX_DEPLOYMENT_TARGET environment variable greater or equal to 10.4
Ld "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor/../../_Scratch_/Camera Monitor.xc2.build/Debug/Device
Monitor.build/Objects-normal/ppc/ioxdeviced" normal ppc
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
setenv MACOSX_DEPLOYMENT_TARGET 10.2
setenv NEXT_ROOT /Developer/SDKs/MacOSX10.4u.sdk
/usr/bin/g++-3.3 -o /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\
(CVS)/CVS\ Root/Camera\ Monitor/../../_Scratch_/Camera\
Monitor.xc2.build/Debug/Device\ Monitor.build/Objects-normal/ppc/
ioxdeviced -L/Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\
Root/Camera\ Monitor/../../_Build_/Debug -L/Developer/SDKs/
MacOSX10.4u.sdk/usr/lib/gcc/darwin/3.3 -F/Volumes/MacPro/Users/sgs/
Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\ Monitor/../../_Build_/Debug -
filelist /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/
Camera\ Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/
Device\ Monitor.build/Objects-normal/ppc/ioxdeviced.LinkFileList -
framework IOKit -framework CoreServices -framework CoreFoundation -
framework Security -arch ppc -prebind -Wl,-Y,1455 -mmacosx-version-
min=10.2 -Wl,-dead_strip -no_dead_strip_inits_and_terms -Wl,-
syslibroot,/Developer/SDKs/MacOSX10.4u.sdk
CreateUniversalBinary "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/
CVS Root/Camera Monitor/../../_Build_/Debug/ioxdeviced.app/Contents/
MacOS/ioxdeviced" normal "i386 ppc"
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
/usr/bin/lipo -create /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\
(CVS)/CVS\ Root/Camera\ Monitor/../../_Scratch_/Camera\
Monitor.xc2.build/Debug/Device\ Monitor.build/Objects-normal/i386/
ioxdeviced /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/
Camera\ Monitor/../../_Scratch_/Camera\ Monitor.xc2.build/Debug/
Device\ Monitor.build/Objects-normal/ppc/ioxdeviced -output /Volumes/
MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/CVS\ Root/Camera\
Monitor/../../_Build_/Debug/ioxdeviced.app/Contents/MacOS/ioxdeviced
GenerateDSYMFile
cd "/Volumes/MacPro/Users/sgs/Tip of Trunk (CVS)/CVS Root/Camera
Monitor"
/usr/bin/dsymutil -o /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\
(CVS)/CVS\ Root/Camera\ Monitor/../../_Build_/Debug/
ioxdeviced.app.dSYM /Volumes/MacPro/Users/sgs/Tip\ of\ Trunk\ (CVS)/
CVS\ Root/Camera\ Monitor/../../_Build_/Debug/ioxdeviced.app/
Contents/MacOS/ioxdeviced
ERROR: No debug map or DWARF data was found to link.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden