平臺是 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 關注
- 322 瀏覽
添加回答
舉報
0/150
提交
取消