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

Observation of book not the same as what is happening #148

Open
flip111 opened this issue Feb 17, 2019 · 2 comments
Open

Observation of book not the same as what is happening #148

flip111 opened this issue Feb 17, 2019 · 2 comments

Comments

@flip111
Copy link
Contributor

flip111 commented Feb 17, 2019

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
Copy link
Contributor Author

flip111 commented Feb 17, 2019

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

@flip111
Copy link
Contributor Author

flip111 commented Feb 18, 2019

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 flip111 mentioned this issue Feb 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant