This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]