Re: Debugging problem with XCode 2.3
Re: Debugging problem with XCode 2.3
- Subject: Re: Debugging problem with XCode 2.3
- From: amir <email@hidden>
- Date: Sun, 18 Jun 2006 08:53:10 +0300
ok,
I have also set the following env:
DYLD_PRINT_LIBRARIES 1
DYLD_PRINT_STATISTICS 1
DYLD_PRINT_INITIALIZERS 1
DYLD_PREBIND_DEBUG 1
DYLD_PRINT_BINDINGS 1
(just in case)
and here are the last lines:
dyld: bind:
PluginTester:__ZN11WCEventData12SetSystemMsgERK14WCEventMessage
$lazy_ptr =
PluginTester:__ZN11WCEventData12SetSystemMsgERK14WCEventMessage,
*0x002e0ff0 = 0x0023b5ec
dyld: bind: PluginTester:_GetKeys$lazy_ptr = HIToolbox:_GetKeys,
*0x002e0fd8 = 0x932ffda0
dyld: bind: PluginTester:_SelectWindow$lazy_ptr =
HIToolbox:_SelectWindow, *0x002e0e98 = 0x93261018
dyld: bind: PluginTester:_GetWindowBounds$lazy_ptr =
HIToolbox:_GetWindowBounds, *0x002e0fa8 = 0x9322d2d4
dyld: bind: PluginTester:_aglChoosePixelFormat$lazy_ptr =
AGL:_aglChoosePixelFormat, *0x002e07bc = 0x979168d8
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Resources/
GLEngine.bundle/GLEngine
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/
Libraries/libGLImage.dylib
dyld: loaded: /System/Library/Frameworks/OpenGL.framework/Versions/A/
Libraries/libGLProgrammability.dylib
dyld: image not prebound, so could not use prebinding in /System/
Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
dyld: bind: GLEngine:0x05f4fe50 =
CoreFoundation:___CFConstantStringClassReference, *0x05f4fe50 =
0xa07c1674
dyld: bind: GLEngine:_mach_task_self_$non_lazy_ptr =
libSystem.B.dylib:_mach_task_self_, *0x05f4e034 = 0xa0001fe4
dyld: bind: GLEngine:_kCFAllocatorDefault$non_lazy_ptr =
CoreFoundation:_kCFAllocatorDefault, *0x05f4e430 = 0x90894074
dyld: bind: GLEngine:__cpu_capabilities$non_lazy_ptr =
libSystem.B.dylib:__cpu_capabilities, *0x05f4fe0c = 0xa0001fbc
Hope that help,
This issue really makes debugging our product extremely hard, Is
there a work around?
thanks, amir.
On Jun 15, 2006, at 11:41 PM, Jim Ingham wrote:
Grrr... We got the error before we printed the name of the library.
Can you try again, but this time edit the Executables tab in Xcode,
and add the environment variable:
DYLD_PRINT_LIBRARIES
set to 1 to the environment for you executable and run again. That
will get dyld to print the library names (which is what we respond
to by "reading symbols" from the libraries).
Thanks,
Jim
On Jun 15, 2006, at 10:57 AM, amir wrote:
I have filled a Bug ID# 4587990.
here are the last lines in the log file:
# didFinish Sequence: <PBXGDB_UpdateDataValueSequence: 0x6365240>
t=27.645943 Tepoch=1150393565.571739
<- (gdb)
# Enqueue seq in State Changing Q:
<PBXGDB_ContinueControlSequence: 0x616cee0> t=28.372635
Tepoch=1150393566.298430
# Executing Sequence: <PBXGDB_ContinueControlSequence: 0x616cee0>
t=28.372807 Tepoch=1150393566.298602
-> 107-exec-continue
# PBXGDB_MIContinueExecutableCommand t=28.376813
Tepoch=1150393566.302609
<- 107^running
# processing result t=28.381845 Tepoch=1150393566.307641
# didFinish Sequence: <PBXGDB_ContinueControlSequence: 0x616cee0>
t=28.384413 Tepoch=1150393566.310209
<- (gdb)
<- ~"Reading symbols from /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLImage.dylib..."
<- ~"done.\n"
<- ~"Reading symbols from /System/Library/Frameworks/
OpenGL.framework/Versions/A/Libraries/libGLProgrammability.dylib..."
<- ~"done.\n"
<- ~"Reading symbols from /System/Library/Frameworks/
OpenGL.framework/Versions/A/Resources/GLEngine.bundle/GLEngine..."
<- ~"done.\n"
<- BFD: BFD 2.16.91 20050815 internal error, aborting at /
SourceCache/gdb/gdb-477/src/bfd/cache.c line 517 in
bfd_cache_lookup_worker
<-
<- BFD: Please report this bug.
thanks,
amir.
On Jun 15, 2006, at 6:25 PM, Jim Ingham wrote:
I have one other report of this, but I don't have enough
information in that case yet to know what is happening. The
error is because gdb goes to open one of the dylibs in your app,
and is getting an error opening it. The error message doesn't
tell more than that.
If you make a file in your home directory called .gdbinit, and
put in it:
set verbose 1
Then rerun the Xcode Debugging session, gdb will print the names
of the files it is examining in the console window. That should
help figure out what file is causing the problem, at least. It
would also help to get the Xcode-gdb log, which you do by:
1) Quit Xcode.
2) In Terminal, say:
$ defaults write com.apple.Xcode PBXGDBDebuggerLogToFile YES
$ defaults write com.apple.Xcode PBXGDBDebuggerLogFileName /tmp/
IncludeInBug.log
3) Restart Xcode, and do whatever you need to to make it fail.
4) Attach /tmp/IncludeInBug.log to the Radar.
If you have the time to gather this information, could you file a
bug with bugreporter.apple.com? It's much easier to track bugs
than mailing list traffic.
Thanks,
Jim
On Jun 15, 2006, at 4:35 AM, amir wrote:
Hi,
I can not debug a plugin with XCode 2.3 , I run an application
which load a plugin(dll bundle) and the debbuger console shows
the following error:
"
BFD: BFD 2.16.91 20050815 internal error, aborting at /
SourceCache/gdb/gdb-477/src/bfd/cache.c line 517 in
bfd_cache_lookup_worker
BFD: Please report this bug.
"
Is there a workaround?
thanks,
amir.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40apple.com
This email sent to email@hidden
_______________________________________________
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