Thank you very much for instructions. I could reproduce what you see. Unfortunately I do not have much to suggest.
dlv expects executable to be written in Go. dlv searches executable for particular symbols (among many other things). That is why you see "could not get Go symbols no runtime.pclntab symbol found" message. So that leaves you with gdb. If you add -g flag to your both gcc and g++ commands, that will include dwarf info. Then you can use gdb: c:\Users\Alex\dev\src\alain_mellan>gdb dload.exe GNU gdb (GDB) 7.7.50.20140303-cvs Copyright (C) 2014 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-w64-mingw32". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". This binary was built by Equation Solution <http://www.Equation.com>... Reading symbols from dload.exe...done. (gdb) b dload.cpp:22 Breakpoint 1 at 0x40159c: file dload.cpp, line 22. (gdb) r Starting program: c:\Users\Alex\dev\src\alain_mellan\dload.exe [New Thread 4020.0x868] Breakpoint 1, main () at dload.cpp:22 22 funci(); (gdb) br 'main.SayHello' Breakpoint 2 at 0x6249e050: file c:/Users/Alex/dev/src/alain_mellan/sayhello.go, line 8. (gdb) c Continuing. [New Thread 4020.0x7bc] [New Thread 4020.0xee8] [New Thread 4020.0x7dc] [New Thread 4020.0xd04] Breakpoint 2, main.SayHello () at c:/Users/Alex/dev/src/alain_mellan/sayhello.go:8 8 func SayHello() { (gdb) l 3 4 import "C" 5 import "fmt" 6 7 //export SayHello 8 func SayHello() { 9 fmt.Printf("Hello!\n") 10 fmt.Scanln() 11 fmt.Printf("Goodbye\n") 12 } (gdb) bt #0 main.SayHello () at c:/Users/Alex/dev/src/alain_mellan/sayhello.go:8 #1 0x000000006249e037 in main._cgoexpwrap_961c5413714f_SayHello () at command-line-arguments/_obj/_cgo_gotypes.go:45 #2 0x000000006244f6f2 in runtime.call32 () at c:/users/alex/dev/go/src/runtime/asm_amd64.s:509 #3 0x000000006240320a in runtime.cgocallbackg1 (ctxt=0) at c:/users/alex/dev/go/src/runtime/cgocall.go:305 #4 0x0000000062402fba in runtime.cgocallbackg (ctxt=0) at c:/users/alex/dev/go/src/runtime/cgocall.go:187 #5 0x0000000062450d4f in runtime.cgocallback_gofunc () at c:/users/alex/dev/go/src/runtime/asm_amd64.s:762 #6 0x0000000062451ab1 in runtime.goexit () at c:/users/alex/dev/go/src/runtime/asm_amd64.s:2337 #7 0x0000000000000000 in ?? () Backtrace stopped: previous frame inner to this frame (corrupt stack?) (gdb) I doubt whether gdb is very useful. Maybe create an issue at https://github.com/derekparker/delve/issues. Maybe Delve Team might have suggestions. Sorry it took me a while to get back to you. Alex -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.