This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 6/7] Implement multiple-filesystem support for remote targets
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 17 Apr 2015 17:07:32 +0100
- Subject: Re: [PATCH 6/7] Implement multiple-filesystem support for remote targets
- Authentication-results: sourceware.org; auth=none
- References: <1429186791-6867-1-git-send-email-gbenson at redhat dot com> <1429186791-6867-7-git-send-email-gbenson at redhat dot com> <5531217B dot 5090004 at redhat dot com> <20150417155958 dot GA14618 at blade dot nx>
On 04/17/2015 04:59 PM, Gary Benson wrote:
> Pedro Alves wrote:
>> On 04/16/2015 01:19 PM, Gary Benson wrote:
>>> --- a/gdb/remote.c
>>> +++ b/gdb/remote.c
>>> @@ -367,6 +367,12 @@ struct remote_state
>>>
>>> /* The branch trace configuration. */
>>> struct btrace_config btrace_config;
>>> +
>>> + /* The argument to the last "vFile:setfs:" packet we sent, used
>>> + to avoid sending repeated unnecessary "vFile:setfs:" packets.
>>> + Initialized to -1 to indicate that no "vFile:setfs:" packet
>>> + has yet been sent. */
>>> + int fs_pid;
>>> };
>>>
>>
>>> +/* Process ID of inferior whose filesystem remote_hostio functions
>>> + that take FILENAME arguments will use. Zero means to use the
>>> + remote stub's filesystem. */
>>> +
>>> +static int remote_fs_pid = 0;
>>
>> What's the rationale for not putting this one in "struct
>> remote_state" ?
>
> I don't have one :) Would you prefer it there?
It's not really about personal preference: if on a
multi-remote-connections world the flag would be remote connection
specific, it should be in remote_state. It seemed that way
to me, but if it isn't, then it should be left a global.
Thanks,
Pedro Alves