Observation of book not the same as what is happening

Open
#148 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
35/100
Issue type
Documentation
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Start with the debugging section at rust-embedded.github.io/book/start/qemu.html#debugging and compare its GDB transcript with the reported output from Rust 1.32, GDB 8.2, and cortex-m-rt 0.6.7. Determine whether the transcript should be updated or the version-specific difference explained; done means the documentation accurately accounts for the observed reset location.

Written by the indexing model from the issue text.

Description

https://rust-embedded.github.io/book/start/qemu.html#debugging

Then within the GDB shell we connect to QEMU, which is waiting for a connection on TCP port 3333.

(gdb) target remote :3333
Remote debugging using :3333
Reset () at $REGISTRY/cortex-m-rt-0.6.1/src/lib.rs:473
473     pub unsafe extern "C" fn Reset() -> ! {

instead:

» gdb-multiarch -q target/thumbv7m-none-eabi/debug/examples/hello
Reading symbols from target/thumbv7m-none-eabi/debug/examples/hello...done.
(gdb) target remote :3333
Remote debugging using :3333
Reset () at /home/flip111/.cargo/registry/src/github.com-1ecc6299db9ec823/cortex-m-rt-0.6.7/src/lib.rs:498
498	    __pre_init();

ubuntu 18.10
gdb 8.2
rust 1.32

Dominant language
No language data
Stars
1.3k
Forks
223
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

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.

More from rust-embedded/book

All issues in rust-embedded/book

Similar issues

More Documentation issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.