I run into trouble using GDB 7 (7.3) on MacOS Lion.
What I did was:
$ sudo port install gdb
After that GDB was installed to: /opt/local/bin/ggdb
But when I try to execute GDB I always receive the following at start:
BFD: unable to read unknown load command 0x24
BFD: unable to read unknown load command 0x26
BFD: unable to read unknown load command 0x24
BFD: unable to read unknown load command 0x26
Further it tells me:
Reading symbols from ... done.
but when I try to get for example a backtrace via 'bt' I only see unresolved function adresses. I tried to set the LIBRARY_PATH inside my application folder.
$ export DYLD_LIBRARY_PATH=`pwd`
but without success. The problems remain.
Using the default GDB 6.3 which is provided with Lion/Xcode works fine.
Thanks in advance for any advice.