cmd/viewcore: display the origin of core

This change adds the origin of the analyzed core in the welcome
message of interactive mode. The information is from NT_PRPSINFO
(currently assuming linux/amd64 only). This info allows users to
verify they are looking into the correct core file.
This is similar to what gdb does.

Change-Id: Ib626c9007a588e34cf633908dedde591e6f04e3c
Reviewed-on: https://go-review.googlesource.com/121015
Reviewed-by: Heschi Kreinick <heschi@google.com>
3 files changed
tree: c22e33de17be8f89d89edc898087857d56f5f2db
  1. arch/
  2. cmd/
  3. doc/
  4. dwarf/
  5. elf/
  6. gosym/
  7. internal/
  8. local/
  9. macho/
  10. remote/
  11. server/
  12. tests/
  13. AUTHORS
  14. codereview.cfg
  15. CONTRIBUTING.md
  16. CONTRIBUTORS
  17. LICENSE
  18. program.go
  19. README.md
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