debugging go with goclipse on a mac

127 views
Skip to first unread message

Edoardo

unread,
Mar 9, 2015, 5:48:28 AM3/9/15
to gocl...@googlegroups.com
Hello,

I managed to install goclipse, it works, code completion et all but I just realised that the debugger crashes constantly and doesn't catch breakpoints.
it shows:

SIGTRAP: trace trap

PC=0x2000


goroutine 1 [running]:

main.main()

/Users/eddy/workspace/ProviamoGO/src/prove/testing.go:5 fp=0x2081b7f98 sp=0x2081b7f90

runtime.main()

/usr/local/go/src/runtime/proc.go:63 +0xf3 fp=0x2081b7fe0 sp=0x2081b7f98

runtime.goexit()

/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1 fp=0x2081b7fe8 sp=0x2081b7fe0


goroutine 2 [runnable]:

runtime.forcegchelper()

/usr/local/go/src/runtime/proc.go:90

runtime.goexit()

/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1


goroutine 3 [runnable]:

runtime.bgsweep()

/usr/local/go/src/runtime/mgc0.go:82

runtime.goexit()

/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1


goroutine 4 [runnable]:

runtime.runfinq()

/usr/local/go/src/runtime/malloc.go:712

runtime.goexit()

/usr/local/go/src/runtime/asm_amd64.s:2232 +0x1


rax     0x208180240

rbx     0x2081c2090

rcx     0x208180240

rdx     0x0

rdi     0x0

rsi     0x20817f5de

rbp     0x20818a210

rsp     0x2081b7f90

r8      0x41

r9      0x10

r10     0x10

r11     0xbe260

r12     0x6ac6bb845



could it be that GDB is version 6.3? I am on a mac and upgrading looks trouble...

brunomedeiros

unread,
Mar 17, 2015, 11:57:01 AM3/17/15
to gocl...@googlegroups.com
Is that the GDB that is bundled with MacOS/XCode ? If so, I've heard bad things about it (it is buggy and/or very out of date). You should install a later one manually.

Edoardo Ceccarelli

unread,
Mar 18, 2015, 7:45:10 AM3/18/15
to gocl...@googlegroups.com
thanks,
yes, is the standard one.
It appears apple is switching to LLDB...


--
You received this message because you are subscribed to a topic in the Google Groups "goclipse" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/goclipse/2d8pf-WtA8Q/unsubscribe.
To unsubscribe from this group and all its topics, send an email to goclipse+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

brunomedeiros

unread,
Mar 24, 2015, 10:12:16 AM3/24/15
to gocl...@googlegroups.com
thanks,
To unsubscribe from this group and all its topics, send an email to goclipse+unsubscribe@googlegroups.com.

bhuwan...@jabong.com

unread,
Mar 26, 2015, 8:43:54 AM3/26/15
to gocl...@googlegroups.com
Hi,
I am also trying to debug a  simple "Hello World" application. I have installed GDB and set it up in eclipse preferences but in debug mode, it does not start, it shows always progress as 99% with message Configuring GDB Aborting configuring GDB at task progress bar. I am using osx 10.9.4. Any pointers.

Thanks
Bhuwan
Reply all
Reply to author
Forward
0 new messages