From: "Decker, Paul" <Paul.Decker@analog.com>
To: "Daniel Jacobowitz" <drow@false.org>,
"Decker, Paul" <Paul.Decker@analog.com>
Cc: <gdb@sources.redhat.com>
Subject: RE: protocol question
Date: Tue, 22 Mar 2005 15:45:00 -0000 [thread overview]
Message-ID: <E21A9A52FF03B249B20F0DC563DEBB3117094F8F@nwd2exm3.ad.analog.com> (raw)
Outstanding, my message showed up as soon as I changed the state to
running!
Now, this means I have to change plans a little. Is there a way to send
unsolicited messages to the gdb console (to be displayed) regardless of
the actually execution state?
Thanks,
Paul.
-----Original Message-----
From: gdb-owner@sources.redhat.com [mailto:gdb-owner@sources.redhat.com]
On Behalf Of Daniel Jacobowitz
Sent: Tuesday, March 22, 2005 10:33 AM
To: Decker, Paul
Cc: gdb@sources.redhat.com
Subject: Re: protocol question
On Tue, Mar 22, 2005 at 10:24:45AM -0500, Decker, Paul wrote:
>
> Hello everyone!
>
>
> I apologize if this is the wrong news group for this question, if so;
> just point me to the correct one.
>
> I'm developing a target stub for a custom processor which will then be
> able to connect with GDB. From what I understand, the stub can send
> unsolicited messages to GDB, for example, if the stub encounters an
> error of some sort, or wants to send other information to be displayed
> in the GDB console. It seems this is done with the 'O' command being
> sent by the stub, without the stub checking for an ack.
As you may have noticed, the 'O' packet is considerably different than
the rest of the protocol. It doesn't fit in well with the normal
command/response model.
> Is there anything in GDB that needs to be 'turned on' to enable this
> functionality, or do I have a conceptual problem and this is not how
it
> is designed to work? I've tried to send a test command of:
O is actually a 'wait response'. It's supposed to be output from the
inferior, not the stub, so GDB only expects it when the target is
running. Try that instead.
--
Daniel Jacobowitz
CodeSourcery, LLC
next reply other threads:[~2005-03-22 15:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-22 15:45 Decker, Paul [this message]
2005-03-22 15:46 ` Daniel Jacobowitz
-- strict thread matches above, loose matches on Subject: below --
2005-03-22 15:25 Decker, Paul
2005-03-22 15:32 ` Daniel Jacobowitz
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=E21A9A52FF03B249B20F0DC563DEBB3117094F8F@nwd2exm3.ad.analog.com \
--to=paul.decker@analog.com \
--cc=drow@false.org \
--cc=gdb@sources.redhat.com \
/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