|author||Hana Kim <firstname.lastname@example.org>||Wed Oct 17 00:32:11 2018 -0400|
|committer||Hyang-Ah Hana Kim <email@example.com>||Tue Oct 30 21:26:47 2018 +0000|
internal/core: read additional mapping info from the executable As discussed in https://github.com/derekparker/delve/issues/1121 cores dumped with some versions of GDB are missing LOAD entry mapped to executables. This change makes viewcore read the mapping info from the provided executable (with --exe) and stitch the mappings from both sources. This is how delve works around the issue. This change also changes how to locate main binary region. Previously viewcore assumed the first executable region to be the main executable mapped region. Instead, we use NT_AUXV/AT_ENTRY which exactly specifies the entry point of the program. This is how GDB and Delve find the entry point. Fixes golang/go#28091 Change-Id: I0ccf285592ab02c6cbb1a41b44d1cf7b74ed7d0e Reviewed-on: https://go-review.googlesource.com/c/142837 Run-TryBot: Hyang-Ah Hana Kim <firstname.lastname@example.org> TryBot-Result: Gobot Gobot <email@example.com> Reviewed-by: Keith Randall <firstname.lastname@example.org>
This repository holds utilities and libraries for debugging Go programs.
WARNING! Please expect breaking changes and unstable APIs. Most of them are currently are at an early, experimental stage.