This is the mail archive of the gdb-patches@sourceware.org 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: [PATCH v4 3/3] Extend "set cwd" to work on gdbserver


On 09/29/2017 07:48 PM, Sergio Durigan Junior wrote:

>>> +command, then an empty packet will be sent to the remote server, which
>>
>> Not an empty packet, and empty directory.  Really-empty packets are 
>> special in the remote protocol.
>>
>>> +will have no effect.  
>>
>> WDYM will have no effect, when just above you've explained that empty
>> means reset ?  I think you should just remove this paragraph starting
>> with "This packet is always transmitted".  That's implementation
>> detail.  GDB could for example not resend the packet if the value
>> didn't change between runs, no?
> 
> What I tried to say is that if the user doesn't make use of the "set
> cwd" command in a GDB session, the packet will be transmitted anyway.  I
> think I should have been clearer here.
> 
> I will remove the paragraph as requested.

This part of the manual is a specification of the remote protocol
packets, not of how GDB implements them currently; it shouldn't
really talk about current GDB implementation details unless
it makes a real difference, because those details should be free
to change within the bounds of the specification.

Thanks,
Pedro Alves


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