| |||
| Home > Configuring debug hardware for GDB > Multiprocessor debugging with GDB and debug hardware | |||
Debug hardware is capable of simultaneously and synchronously debugging multiple targets. However, GDB does not support multiprocessor debugging directly.
Although multiprocessor debugging is possible using GDB, it is recommended that you debug multiple processors using higher level tools.
When you make connections to multiple target processors, the connections on ports 5000, 5001,... are allocated by debug hardware, that is, redirected virtual DCC is allocated a port for each device in a similar way to GDB halt-mode debugging. The port range starts from port 5000, so virtual Ethernet or raw redirected DCC for the first device appears on port 5000, the second device on port 5001, and this continues in the same way.
Be aware of the following if you are debugging multiple targets with GDB:
Multiprocessor debugging with GDB requires that you open multiple command windows (such as Xterms). You must have one GDB session for each target processor to which you want to connect.
If you have multiple targets on the debug hardware scan chain, then:
the target processors are numbered consecutively, starting at one
the available bandwidth over DCC is shared between all target processors
communications to all target processors are through a single JTAG chain.