相关疑难解决方法(0)

在OS X上使用MacPorts GCC调试问题

对于使用GCC 4.7 MacPorts构建编译的程序,我似乎无法获得可读的调试输出.

我尝试过使用GDB 6.3和GDB 7.3,每个都有自己的问题.

试试GDB 7.3(MacPorts)

使用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)

c++ macos gcc gdb

7
推荐指数
1
解决办法
2298
查看次数

标签 统计

c++ ×1

gcc ×1

gdb ×1

macos ×1