hi,
well we are probably both reading posts too fast and entering a misundertanding loop :)
I explain better:
I enabled as you sayd the codeblocks debugger log.
It shows:
DYLD_LIBRARY_PATH=.:/opt/local/lib:/usr/local/lib:
Command-line: /usr/bin/gdb -nx -fullname -quiet -args bin/debug/bsd
...
And in particular the line
"DYLD_LIBRARY_PATH=.:/opt/local/lib:/usr/local/lib:"
is causing the issue.
As you said, launching the debugger from the console, if i do the same thing that codeblocks do ("DYLD_LIBRARY_PATH=.:/opt/local/lib:/usr/local/lib:") this break gdb.
GDB is old, but stable, and works fine, except if you are forcing DYLD_LIBRARY_PATH with a wrong path.
regards
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:
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:
The issue is on the first line, the correct working variable must be :
DYLD_LIBRARY_PATH=/sw/lib:$DYLD_LIBRARY_PATH
regards
angelo