internal/gocore: ignore non-ClassExprLoc locations when reading locations

viewcore only knows how to handle ExprLoc-encoded location information.
As of Go 1.11, we now encode locals with ClassLocListPtr.

This CL just skips location list info. That's fine for globals (they
are still ExprLoc-encoded), but for locals we'll need a CL to make
gocore understand location lists. This CL just gets us to a point
where viewcore doesn't crash.

Change-Id: Ibde9ebcb130bc7e9141e7b6162e1500ff8b852e8
Reviewed-on: https://go-review.googlesource.com/127118
Reviewed-by: Heschi Kreinick <heschi@google.com>
1 file changed
tree: 2065ae13eee505ba9ca3bff421bf17a235ef45ac
  1. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. cmd/
  7. codereview.cfg
  8. internal/
README.md

Go Debug

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.

Report Issues & Send Changes