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 (齐尧)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.