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. AUTHORS
  2. CONTRIBUTING.md
  3. CONTRIBUTORS
  4. LICENSE
  5. README.md
  6. arch/
  7. cmd/
  8. codereview.cfg
  9. doc/
  10. dwarf/
  11. elf/
  12. gosym/
  13. internal/
  14. local/
  15. macho/
  16. program.go
  17. remote/
  18. server/
  19. tests/
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