Remote Serial Protocol -- reply to '?' when target running

Michael Eager eager@eagerm.com
Tue Aug 9 19:33:00 GMT 2016


On 08/09/2016 12:27 PM, taylor, david wrote:
>
>> From: Michael Eager [mailto:eager@eagerm.com]
>> Sent: Tuesday, August 09, 2016 3:08 PM
>> To: taylor, david; gdb@sourceware.org
>> Subject: Re: Remote Serial Protocol -- reply to '?' when target running
>>
>> On 08/09/2016 11:40 AM, taylor, david wrote:
>>>> From: gdb-owner@sourceware.org [mailto:gdb-owner@sourceware.org]
>> On
>>>> Behalf Of Michael Eager
>
>> The JTAG pod I'm using does not respond with "QNonStop+" in response
>> to "qSupported".  Perhaps it should.
>
> Our stub sets it and I also do 'set non-stop on' in my .gdbinit file.  The entry in
> my .gdbinit might predate the stub returning it, I don't recall.
>
>> The JTAG pod does respond to '?' with OK.  After a few other exchanges,
>> gdb goes into a wait, waiting to receive something from the target.
>>
>> What do you do?  Send a stop reply packet when the target stops?
>
> Our target typically has 80-110 threads when I connect.
> We support asynchronous notifications as well.
>
> When GDB connects to the target, a thread is created to service GDB.
> If multiple GDB's connect, multiple threads get created -- each dedicated
> to a specific GDB.
>
> There's also a networking thread and a bunch of other threads.
>
> Our target never stops.  Individual threads?  Yes.  The target as a whole?  No.

Thanks.


-- 
Michael Eager	 eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306  650-325-8077



More information about the Gdb mailing list