Attached is support for GDB in SMP mode. The processors appear as threads 1-N in GDB. I've been using this with an Eclipse integration for a while now and it's very clean. Bonus feature: some support for memory watchpoints in GDB, although I haven't given this a thorough checkout as yet.
Could you maybe split it up in two patches (SMP support, memory watchpoint support)?
Can do. I might even add a comment or two :-)
File Added: mp_gdbstub_nowatchpoints.diff
I've attached two patches. mp_gdbstub_nowatchpoints.diff contains the base MP gdbstub. mp_gdbstub_addwatchpoints.diff can be applied on top of mp_gdbstub_nowatchpoints.diff to enable the watchpoint support. These two versions both compile for me.
File Added: mp_gdbstub_addwatchpoints.diff