Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rust-lldb gives 'no locations (pending)' when trying to set a breakpoint on macOS Sierra #40665

Closed
fusionbeam opened this issue Mar 20, 2017 · 5 comments
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@fusionbeam
Copy link

fusionbeam commented Mar 20, 2017

lldb-360.1.70
rustc 1.17.0-nightly (0aeb9c1 2017-03-15)


bash-3.2$ rust-lldb ./target/debug/bptree --debug
(lldb) command source -s 0 '/tmp/rust-lldb-commands.DxGpv8'
Executing commands in '/tmp/rust-lldb-commands.DxGpv8'.
(lldb) command script import "/Users/ra/.rustup/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/etc/lldb_rust_formatters.py"
(lldb) type summary add --no-value --python-function lldb_rust_formatters.print_val -x ".*" --category Rust
(lldb) type category enable Rust
(lldb) target create "./target/debug/bptree"
Current executable set to './target/debug/bptree' (x86_64).
(lldb) breakpoint set -f src/main.rs -l 7

followed this guide: http://asquera.de/blog/2017-03-03/setting-up-a-rust-devenv/

--- is this a known issue? any pointers on a workaround?
thanks,
rares

@steveklabnik steveklabnik added A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Mar 20, 2017
@Mark-Simulacrum
Copy link
Member

I cannot reproduce with the versions given below, and I think I recall lldb 360 being buggy in general, so I'm going to close this.

$ rust-lldb -v
lldb-370.0.42
  Swift-3.1
$ rustc -vV
rustc 1.19.0-nightly (cfb5debbc 2017-06-12)
binary: rustc
commit-hash: cfb5debbcb610eae16e8c5602416930f20fefa39
commit-date: 2017-06-12
host: x86_64-apple-darwin
release: 1.19.0-nightly
LLVM version: 4.0

@pzuraq
Copy link

pzuraq commented Jul 30, 2017

I'm getting the same issue with the following versions of rust/rust-lldb:

$ rust-lldb -v
lldb-370.0.42
  Swift-3.1
$ rustc -vV
rustc 1.19.0 (0ade33941 2017-07-17)
binary: rustc
commit-hash: 0ade339411587887bf01bcfa2e9ae4414c8900d4
commit-date: 2017-07-17
host: x86_64-apple-darwin
release: 1.19.0
LLVM version: 4.0

I've also tried using nightly and have the same problem.

@Mark-Simulacrum Mark-Simulacrum added the C-bug Category: This is a bug. label Aug 3, 2017
@pzuraq
Copy link

pzuraq commented Aug 6, 2017

Digging into this a bit more, it looks like it may be related to this issue: rust-lang/cargo#4056

When I run the debugger on the output file in ./target/debug/deps everything seems to work as expected

@jonas-schievink
Copy link
Contributor

rust-lang/cargo#4056 has since been closed. Is this still an issue?

@davidtwco
Copy link
Member

davidtwco commented Jul 17, 2023

I've tried to reproduce this locally and I'm not able to. If someone can provide a reproducible example, the versions of everything involved, and the commands you've used then we can re-open this.

Tested using these versions:

$ rust-lldb -v
lldb-1500.0.17.10
Apple Swift version 5.9 (swiftlang-5.9.0.120.7 clang-1500.0.34.3)
$ rustc -vV
rustc 1.72.0-nightly (5ea666864 2023-06-27)
binary: rustc
commit-hash: 5ea66686467d3ec5f8c81570e7f0f16ad8dd8cc3
commit-date: 2023-06-27
host: aarch64-apple-darwin
release: 1.72.0-nightly
LLVM version: 16.0.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-debuginfo Area: Debugging information in compiled programs (DWARF, PDB, etc.) C-bug Category: This is a bug. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

6 participants