commit | 71b9772dcfb448c30924caf20ae3d661adb23834 | [log] [tgz] |
---|---|---|
author | Hana Kim <hyangah@gmail.com> | Wed Oct 17 00:32:11 2018 -0400 |
committer | Hyang-Ah Hana Kim <hyangah@gmail.com> | Tue Oct 30 21:26:47 2018 +0000 |
tree | 964142aaba71805f5486adccdcae7aae9e14bb3d | |
parent | 488a851a00806d45233e1ef6a0f8fcb891db6fe0 [diff] |
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 <hyangah@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Keith Randall <khr@golang.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.