Open
Description
I've loaded a (test) binary into rust-lldb
via:
$ rust-lldb target/debug/deps/<mylib>-<hash>
then I stepped through a few lines of code and tried to list the local variables in the current stack frame:
(lldb) fr v
and encountered this error:
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
Traceback (most recent call last):
File "/nix/store/r7hh9v94avlha6yrgv5a1dfwgfvkcyhl-rustc-1.70.0/lib/rustlib/etc/lldb_providers.py", line 516, in get_child_at_index
idx = self.valid_indices[index]
IndexError: list index out of range
it did display all of the local variables though.
I expect the debugger to show all of the local variables without encountering an error.
Meta
rustc --version --verbose
:
rustc 1.70.0 (90c541806 2023-05-31) (built from a source tarball)
binary: rustc
commit-hash: 90c541806f23a127002de5b4038be731ba1458ca
commit-date: 2023-05-31
host: aarch64-apple-darwin
release: 1.70.0
LLVM version: 16.0.1