[debugger] Add options to FindName().

FindName() has two variants, one that returns multiple things and one
that returns just the first (for convenience). The simpler one does not
allow setting the options because for historical usage this was not
necessary.

This patch adds options for the simpler variant of FindName(). Currently
only the default options are used and there should be no behavior
change. But this will allow future uses of the simpler API.

It also plumbs the options through the name lookup callback. As above,
there is no behavior change and the callers currently specify "all
types" (the previous default).

Hook up the "declaration" flag for types. Currently this isn't really
used but will be used in a followup to convert declarations to
definitions when printing.

Slightly improve the debug dumping of the symbol index to indicate the
types of entities referenced. This is never used in real code, only for
manual testing. A commented-out test was added to explicitly dump the
index for a hardcoded file name for certain debugging tasks.

Change-Id: I4d549fb1e5f00d82ae93a2c4ed07756397b54e20
14 files changed
tree: 8b34958296135cdbd112111d1ba174828369ca9c
  1. boards/
  2. build/
  3. buildtools/
  4. bundles/
  5. docs/
  6. examples/
  7. garnet/
  8. infra/
  9. peridot/
  10. products/
  11. scripts/
  12. sdk/
  13. src/
  14. third_party/
  15. tools/
  16. zircon/
  17. .clang-format
  18. .clang-tidy
  19. .dir-locals.el
  20. .gitattributes
  21. .gitignore
  22. .gn
  23. AUTHORS
  24. BUILD.gn
  25. CODE_OF_CONDUCT.md
  26. CONTRIBUTING.md
  27. LICENSE
  28. OWNERS
  29. PATENTS
  30. README.md
  31. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See the documentation.