对于使用GCC 4.7 MacPorts构建编译的程序,我似乎无法获得可读的调试输出.
我尝试过使用GDB 6.3和GDB 7.3,每个都有自己的问题.
使用GDB 7.3,我在启动时获得以下输出:
$ ggdb ./test
GNU gdb (GDB) 7.3
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-apple-darwin11.4.0".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
BFD: unable to read …Run Code Online (Sandbox Code Playgroud)