all packets: "$packet-data#checksum"
notification packets: "% data # checksum" ( Example : %Stop:…)
empty response is "$#00"
$ arm-none-eabi-gdb --nh --nx build/application.elf
(gdb) set debug remote 1
(gdb) target remote 192.168.42.1:54321
(gdb) i r
There are some GDB specific words used that only make sense in the GDB contet. These words are defined here.
Word |
Meaning |
stub |
the JTAG/SWD probe |
process |
processes can have one or more threads. Each proces has a seperate memory and can not access the memory of another process. |
thread |
A code execution path. Threads can access the memory of other threads in the same process. (Embeedde context: in bare metal we have one thread per CPU core. If the firmware uses an OS then we can be "aware" of the threads of the OS. |