public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Communicate gdb with other process
@ 2015-07-24  6:14 Ding, Fei
  2015-07-24  8:37 ` Yao Qi
  0 siblings, 1 reply; 2+ messages in thread
From: Ding, Fei @ 2015-07-24  6:14 UTC (permalink / raw)
  To: gdb

Hi, there:

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?

Thanks && BRs
Fei

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Communicate gdb with other process
  2015-07-24  6:14 Communicate gdb with other process Ding, Fei
@ 2015-07-24  8:37 ` Yao Qi
  0 siblings, 0 replies; 2+ messages in thread
From: Yao Qi @ 2015-07-24  8:37 UTC (permalink / raw)
  To: Ding, Fei; +Cc: gdb

"Ding, Fei" <fei.ding@intel.com> 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 (齐尧)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-24  8:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-24  6:14 Communicate gdb with other process Ding, Fei
2015-07-24  8:37 ` Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).