平台是 Mac OSX Mavericks,我从端口安装了 gdb 并对其进行了签名。对于简单的程序,它工作得很好,但是一旦我尝试使用 C 库的程序,它就无法加载符号。例如,如果我尝试 Go GLFW 绑定中的 FSAA 示例,我会得到以下输出:~/g/s/g/g/e/g/fsaa > ggdb mainGNU gdb (GDB) 7.6Copyright (C) 2013 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-darwin13.0.0".For bug reporting instructions, please see:<http://www.gnu.org/software/gdb/bugs/>...Reading symbols from /Users/nils/gocode/src/github.com/go-gl/examples/glfw/fsaa/main...warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/attriblocation.cgo2.o': can't open to read symbols: No such file or directory.warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/buffer.cgo2.o': can't open to read symbols: No such file or directory.warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/color.cgo2.o': can't open to read symbols: No such file or directory.warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/framebuffer.cgo2.o': can't open to read symbols: No such file or directory.warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/gl.cgo2.o': can't open to read symbols: No such file or directory.warning: `/var/folders/rp/jyw8rd7j4hn10vyk5yjyfvw80000gn/T/go-build184019101/github.com/go-gl/gl/_obj/matrix.cgo2.o': can't open to read symbols: No such file or directory.我从后备箱得到了我的 go 版本,go version说:go version devel +f9af8b83c78c Fri Oct 25 23:00:22 2013 +0300 darwin/amd64GDB 版本是 7.6。我不想涉足 C 库,我只想调试我的 Go 代码。有任何想法吗?
- 1 回答
- 0 关注
- 268 浏览
添加回答
举报
0/150
提交
取消