Re: Communicate gdb with other process
Yao Qi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <[email protected]> |
"Ding, Fei" <[email protected]> writes: > I'd like to make Gdbserver communicate with other process, such as: > > Gdb<===>Gdbserver<===>MyProgram > > Gdbserver and MyProgram will run on the same device. > > Any suggestion for implementation? GDBserver can communicate with agent from other process by socket. You can see gdb/common/agent.c. The protocol is documented https://sourceware.org/gdb/current/onlinedocs/gdb/In_002dProcess-Agent-Protocol.html -- Yao (齐尧)