delve/pkg
Alessandro Arzilli 39274f6028
proc: make moduleDataToImage more robust (#2613)
Conversion form a moduledata object into an image object was
implemented by looking for a function covering the start address of the
text section of the moduledata object, and then converting that into
its corresponding image.

Unfortunately this seems to not always work. In particular it does not
work on linux/386 with go1.17 (but it might also fail on other
combinations): the start address of the text section is, for whatever
reason, not part of any function.

As a fallback simply scan all images we know of and return the closest
one that has start address less than or equal to the start address of
the text section we are looking for.

Fixes TestPluginVariables on go1.17/linux/386.

Fixes #2611

Co-authored-by: a <a@kra>
2021-07-23 09:21:24 -07:00
..
astutil proc: simplify next/step/stepout condition code 2020-04-04 11:00:54 -07:00
config terminal: Go syntax highlighting for listings (#2294) 2021-01-28 07:08:14 -08:00
dwarf proc,dwarf: Improve DWARF v5 support (#2544) 2021-06-22 13:37:46 +02:00
elfwriter terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
gobuild service/dap: move build error to output event (#2482) 2021-05-17 09:13:25 -07:00
goversion *: Release 1.7.0 (#2591) 2021-07-16 15:31:52 +02:00
locspec locspec,proc: improve documentation (#2338) 2021-02-10 09:31:37 -08:00
logflags service/rpccommon: log error for conns rejected by --only-same-user (#2211) 2020-10-22 08:23:55 -07:00
proc proc: make moduleDataToImage more robust (#2613) 2021-07-23 09:21:24 -07:00
terminal terminal: improve 'on' command (#2556) 2021-07-22 10:16:42 -07:00
version *: Release 1.7.0 (#2591) 2021-07-16 15:31:52 +02:00