-
Notifications
You must be signed in to change notification settings - Fork 19k
cmd/cgo: gdb on darwin cannot find symbols for cgo compiled objects #6942
Copy link
Copy link
Open
Labels
OS-DarwinSuggestedIssues that may be good for new contributors looking for work to do.Issues that may be good for new contributors looking for work to do.
Milestone
Description
What steps will reproduce the problem? 1. Compile a program using Go 1.2 on Mac OS 10.9 that uses CGO. Set CC = a version of GCC from home brew - http://brew.sh 2. Launch the program with gdb for debugging What is the expected output? gdb loads the symbols from the file and is able to step through the file What do you see instead? Following output from GDB: GNU gdb (GDB) 7.6.2 Copyright (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.2". For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>;... Reading symbols from /Users/lukemauldin/dev/goexternal/src/tf/vncclient/vncclient... warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build264520081/tf/vncclient/vncrecord/_obj/_cgo_export.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build264520081/tf/vncclient/vncrecord/_obj/vnccallback_c.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build264520081/tf/vncclient/vncrecord/_obj/vncrecord.cgo2.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build825245175/runtime/cgo/_obj/gcc_amd64.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build825245175/runtime/cgo/_obj/gcc_darwin_amd64.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build825245175/runtime/cgo/_obj/gcc_setenv.o': can't open to read symbols: No such file or directory. warning: `/var/folders/d7/x2znfx9505gfcq8cr05c56nm0000gn/T/go-build825245175/runtime/cgo/_obj/gcc_util.o': can't open to read symbols: No such file or directory. (no debugging symbols found)...done. Which compiler are you using (5g, 6g, 8g, gccgo)? 6g Which operating system are you using? Mac OS X 10.9 Which version are you using? (run 'go version') go version go1.2 darwin/amd64 Please provide any additional information below. Debugging a program that does not directly use CGO works as expected. GDB is able to debug the same program on a Linux environment.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OS-DarwinSuggestedIssues that may be good for new contributors looking for work to do.Issues that may be good for new contributors looking for work to do.