I have currently setup a .gdbinit and an openocd script to debug my embedded targets, but I have a few troubles making it work :
- gdb is not able to see any symbols (even if
debug=trueis set in Cargo.toml) except static ones
- breakpoints tend to behave strangely : I set up a breakpoint in a specific line, and gdb stops way after telling me that the breakpoint was at line 264 when I used the command
- debugging peripherals and hal is very tedious because you don’t have a global peripheral view with all the registers
Is there a good working setup somewhere ?
Ho do you guys work ?