This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Question :GDB remote protocol for smp target control through JTAG
- From: Jaouen Michel <michel dot jaouen at yahoo dot fr>
- To: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Wed, 11 May 2011 15:49:34 +0100 (BST)
- Subject: Question :GDB remote protocol for smp target control through JTAG
Hello,
I am currently using a gdb client connected to a a remote server (openocd) for debugging 2 cortex_a9 (0 and 1) running linux in smp.
In the gdb client, the kernel symbol is loaded.
At each breakpoint set from gdb client, a hardware breakpoint is set on Both A9.
When Breakpoint is reached, the A9 reaching this breakpoint is displayed to the gdb client and the other A9 is also stopped.
For knowing which A9 is beeing displayed to gdb client and being able to display the other A9 context on gdb client, I uses some GDB protocol messages unused (based on character j and J), and I implemented a patch in file remote.c that creates a new variable $_core.
print $_core => display the core number played in gdb client.
set $_core=($==1?0:1) => fix the display of the other core beeing at next continue (a fake continue is perfomed)
set $_core=-1?? => fix that next continue is real continue.
What are the comments on this additional feature for remote debugging.
Best regards
?
-