User forums > Help

C::B on snow leopard, gdb issue

<< < (2/2)

spectrum:
i finally solved, there was a quite hidden option in "project settings->debugger" that block C::B from setting this variable.

Thanks for the hints.

Jenna:

--- Quote from: spectrum on August 04, 2011, 07:26:13 pm ---i finally solved, there was a quite hidden option in "project settings->debugger" that block C::B from setting this variable.

Thanks for the hints.

--- End quote ---
It would be nice, if you could post what you did exactly.
This might help others, who stumble over the same problem.

oBFusCATed:
He should have enabled the option "Do not adjust the LD_LIBRARY_PATH variable, before starting the debugger"

spectrum: Can you paste the full log, so I can inspect it a bit? This behaviour is pretty strange.

spectrum:
Hi,

well, i "disabled" the option "Do NOT adjust LD__LIBRARY__PATH before launching the debugger", in Project->Properties->debugger tab.

The entire long is quite long since there are many warnings (unrelated to the issue), anyway, here it is:


--- Code: ---DYLD_LIBRARY_PATH=.:/opt/local/lib:/usr/local/lib:
Command-line: /usr/bin/gdb -nx -fullname  -quiet -args bin/debug/bsd
Working dir : /Users/angelo/barix/tools/bsd/
> set prompt >>>>>>cb_gdb:
Reading symbols for shared libraries ...................... done
(gdb) >>>>>>cb_gdb:
> show version
GNU gdb 6.3.50-20050815 (Apple version gdb-1461.2) (Fri Mar  5 04:43:10 UTC 2010)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin".
>>>>>>cb_gdb:
> set confirm off
>>>>>>cb_gdb:
> set width 0
>>>>>>cb_gdb:
> set height 0
>>>>>>cb_gdb:
> set breakpoint pending on
>>>>>>cb_gdb:
> set print asm-demangle on
>>>>>>cb_gdb:
> set unwindonsignal on
>>>>>>cb_gdb:
> set disassembly-flavor intel
>>>>>>cb_gdb:
> catch throw
Catchpoint 1 (throw)
>>>>>>cb_gdb:
> source /Applications/CodeBlocks.app/Contents/Resources/share/codeblocks/scripts/stl-views-1.0.3.gdb
>>>>>>cb_gdb:
> DYLD_LIBRARY_PATH=.:/opt/local/lib:/usr/local/lib:sw/lib:
Undefined command: "DYLD".  Try "help".
>>>>>>cb_gdb:
> directory /Users/angelo/barix/tools/bsd/
>>>>>>cb_gdb:
> set args sudo
>>>>>>cb_gdb:
> run
Reading symbols for shared libraries
.+++++++++++++++++++++.
...
......
.
...
.......
.
..
..
......
.
..
.
..
.
..
...
....
..
..
...
.
.
..
..
.......
..
...
....
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/mesa/work/Mesa-7.11-rc3/src/glu/sgi/libutil/error.o" - no debug information available for "libutil/error.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_x11_mesa/mesa/work/Mesa-7.11-rc3/src/glu/sgi/libutil/glue.o" - no debug information available for "libutil/glue.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/info.o" - no debug information available for "info.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/floor1.o" - no debug information available for "floor1.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/floor0.o" - no debug information available for "floor0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/res0.o" - no debug information available for "res0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/mapping0.o" - no debug information available for "mapping0.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/registry.o" - no debug information available for "registry.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/codebook.o" - no debug information available for "codebook.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/sharedbook.o" - no debug information available for "sharedbook.c".
warning: Could not find object file "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_audio_libvorbis/work/libvorbis-1.3.2/lib/.libs/bitrate.o" - no debug information available for "bitrate.c".
...... done
dyld: Symbol not found: __cg_jpeg_resync_to_restart
  Referenced from: /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
  Expected in: /opt/local/lib/libJPEG.dylib
 in /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO
Program received signal SIGTRAP, Trace/breakpoint trap.
0x8fe01065 in __dyld_dyld_fatal_error ()
>>>>>>cb_gdb:


--- End code ---

The issue is on the first line, the correct working variable must be :
DYLD_LIBRARY_PATH=/sw/lib:$DYLD_LIBRARY_PATH

regards
angelo

Navigation

[0] Message Index

[*] Previous page

Go to full version