discovery icon indicating copy to clipboard operation
discovery copied to clipboard

[Chapter 5.3] Continue hangs, stuck at "0x00000000 in __vector_table ()"

Open garrelj1 opened this issue 1 year ago • 4 comments

Running on Kali Linux

I'm able to build and flash the code. Once I try to debug, I get the following:

(gdb) target remote :1337
Remote debugging using :1337
warning: while parsing target description (at line 4): Target description specified unknown architecture "armv7"
warning: Could not load XML target description; ignoring
0x00000000 in __vector_table ()

Notice 0x00000000 in __vector_table ()

After adding a break point, and continuing, it just hangs:

(gdb) b main
Breakpoint 1 at 0x15c: file src/05-led-roulette/src/main.rs, line 9.
Note: automatically using hardware breakpoints for read-only addresses.

(gdb) continue
Continuing.

I've also tried step, which gives

(gdb) step
Single stepping until exit from function __vector_table,
which has no line number information.

Program received signal SIGINT, Interrupt.
0x00000000 in __vector_table ()

And I've tried stepi, which gives

(gdb) stepi

Program received signal SIGINT, Interrupt.
0x00000000 in __vector_table ()

Any ideas of how else to debug or get further?

garrelj1 avatar Apr 15 '24 17:04 garrelj1

Could you please take a look at https://docs.rust-embedded.org/discovery-mb2 and https://github.com/rust-embedded/discovery-mb2 and see if you can reproduce this issue there? If so, please file an issue there and we'll try to get it figured out and fixed.

BartMassey avatar Sep 27 '24 16:09 BartMassey

Have you tried running gdb-multiarch instead of gdb? I had the same issue and it helped me.

Michal2404 avatar Sep 27 '24 19:09 Michal2404

@Michal2404 What did you do exactly to fix this? Did you use gbd-multiarch as the command to run instead of gdb?

zanebliss avatar Oct 10 '24 12:10 zanebliss

Exactly. It depends on which version of gdb you have installed (chapter 3 of the book).

Michal2404 avatar Oct 10 '24 15:10 Michal2404

Using gdb-multiarch command worked with GNU gdb (Ubuntu 15.0.50.20240403-0ubuntu1) .

PatrickKudo avatar Aug 30 '25 14:08 PatrickKudo

I haven't tried myself (been working other stuff), but others seem to have gotten this working using gdb-multiarch. I'll close the issue

garrelj1 avatar Sep 26 '25 14:09 garrelj1