This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/9] Introduce target_filesystem_is_local
- From: Pedro Alves <palves at redhat dot com>
- To: Gary Benson <gbenson at redhat dot com>, gdb-patches at sourceware dot org
- Date: Wed, 01 Apr 2015 13:11:34 +0100
- Subject: Re: [PATCH 2/9] Introduce target_filesystem_is_local
- Authentication-results: sourceware.org; auth=none
- References: <1426870087-32654-1-git-send-email-gbenson at redhat dot com> <1426870087-32654-3-git-send-email-gbenson at redhat dot com>
On 03/20/2015 04:48 PM, Gary Benson wrote:
> This commit introduces a new target method target_filesystem_is_local
> which can be used to determine whether or not the filesystem accessed
> by the target_fileio_* methods is the local filesystem.
>
Not sure about the default to true, but we can always flip that
around easily.
> +/* Nonzero if the filesystem accessed by the target_fileio_*
> + methods is the local filesystem, zero otherwise. */
> +#define target_filesystem_is_local \
> + current_target.to_filesystem_is_local (¤t_target)
> +
Please make this a function-like macro:
#define target_filesystem_is_local()
OK with that change.
Thanks,
Pedro Alves