rust-lang / rust-lang/rust

no LLDB pretty printer for BTreeMap

Open
#123,452 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-bug T-compiler WG-debugging
Dominant language
Rust
Stars
119k
Forks
16.1k
PR merge metrics
PR metrics pending

Description

Meta

rustc --version --verbose:

rustc 1.77.1 (7cf61ebde 2024-03-27)
binary: rustc
commit-hash: 7cf61ebde7b22796c69757901dd346d0fe70bd97
commit-date: 2024-03-27
host: x86_64-unknown-linux-gnu
release: 1.77.1
LLVM version: 17.0.6

https://github.com/rust-lang/rust/blob/master/src/etc/lldb_providers.py and https://github.com/rust-lang/rust/blob/master/src/etc/lldb_lookup.py only have pretty printers for HashMap, not BTreeMap.

image

The screenshot is from Rustrover.
(Unrelated, but the Rc as part of the value type parameter is missing it's type parameters)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Read src/etc/lldb_providers.py and src/etc/lldb_lookup.py, starting with the existing HashMap pretty-printer implementation and registration. Add and verify equivalent BTreeMap support in LLDB so its contents are displayed; the unrelated Rc type-parameter issue is out of scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.