rust-lang / rust-lang/rust

rust-gdb set breakpoints in all the functions in a file

Open
#124,009 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

C-discussion WG-debugging
Dominant language
Rust
Stars
119k
Forks
16.2k
PR merge metrics
PR metrics pending

Description

In gdb we can do

rb hello.cc:.

which will set a breakpoint for every function in hello.cc

but in rust-gdb rb hello.rs:. doesn't do anything.

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

Start by reproducing rb hello.rs:. in rust-gdb and compare it with the working rb hello.cc:. command in gdb. Trace how rust-gdb handles breakpoint specifications and verify that the Rust form sets a breakpoint for every function in the file.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.