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 2/9] Introduce target_filesystem_is_local


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 (&current_target)
> +

Please make this a function-like macro:

#define target_filesystem_is_local()

OK with that change.

Thanks,
Pedro Alves


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