Introduce target_filesystem_is_local
authorGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:28 +0000 (13:38 +0100)
committerGary Benson <gbenson@redhat.com>
Thu, 2 Apr 2015 12:38:28 +0000 (13:38 +0100)
commit4bd7dc42558fcf53bb0c783f852f03dcac38866f
treeb88717681fa2110b29de6ae589a3a489a4f96e07
parent9b15c1f0419ae693fdcf6cca399e9a916e14c48e
Introduce target_filesystem_is_local

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.

gdb/ChangeLog:

* target.h (struct target_ops) <to_filesystem_is_local>:
New field.
(target_filesystem_is_local): New macro.
* target-delegates.c: Regenerate.
* remote.c (remote_filesystem_is_local): New function.
(init_remote_ops): Initialize to_filesystem_is_local.
gdb/ChangeLog
gdb/remote.c
gdb/target-delegates.c
gdb/target.h