book icon indicating copy to clipboard operation
book copied to clipboard

Observation of book not the same as what is happening

Open flip111 opened this issue 6 years ago • 2 comments

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

flip111 avatar Feb 17 '19 02:02 flip111

Following writings in book are also different with observations while stepping through gdb

flip111 avatar Feb 17 '19 02:02 flip111

I can not move this issue forward on my own because i need more background knowledge what is important to tell about these debugging steps.

flip111 avatar Feb 18 '19 21:02 flip111