Re: Golang debugging issues

Jan Kratochvil <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <[email protected]>
Hello Derek,

> My name is Derek and Ive been working on Delve. I got a link to
> https://sourceware.org/gdb/wiki/GoDebugging

I am maintaining that page.


> Delve is pre 1.0 and under heavy, active development, with some
> pretty big improvements making their way into master soon. Id
> really like to hear your thoughts regarding shortcomings of current
> debuggers with regard to Go.

The problem with debugging Go is its incorrect+incomplete DWARF.  That needs
to be fixed in golang, I do not see anything missing in GDB if golang has been
producing debug info correctly.

gccgo produces more correct DWARF - or at least the missing parts would be
easier to fix than the incorrect+missing parts from golang - but for some
reason developers in Go language insist on using golang.  I heard golang
produces more effective real world binaries (despite synthetic benchmarks
I have seen performed better in gccgo) because of better variable escape
optimizations - common with all the variable bindings in Go functions.

The language of the debugger is unrelated to the language it is debugging.
We can discuss whether GDB is the right debugger in general but then there is
also LLDB to consider.

So I am curious what features should Delve provide which GDB does not.
And if there are any why it isn't easier to script them in Python for GDB
instead of writing a new debugger from scratch.


Regards,
Jan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.