From: Yao Qi <qiyaoltc@gmail.com>
To: "Ding\, Fei" <fei.ding@intel.com>
Cc: "gdb\@sourceware.org" <gdb@sourceware.org>
Subject: Re: Communicate gdb with other process
Date: Fri, 24 Jul 2015 08:37:00 -0000 [thread overview]
Message-ID: <86oaj2gde5.fsf@gmail.com> (raw)
In-Reply-To: <C90E02675453724EAC7735995F7077976E5234@shsmsx102.ccr.corp.intel.com> (Fei Ding's message of "Fri, 24 Jul 2015 06:13:28 +0000")
"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 (齐尧)
prev parent reply other threads:[~2015-07-24 8:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-24 6:14 Ding, Fei
2015-07-24 8:37 ` Yao Qi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86oaj2gde5.fsf@gmail.com \
--to=qiyaoltc@gmail.com \
--cc=fei.ding@intel.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox