This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Move vgdb special case into remote_filesystem_is_local
- From: sergiodj+buildbot at redhat dot com
- To: gdb-testers at sourceware dot org
- Date: Fri, 05 Jun 2015 11:33:08 -0400
- Subject: [binutils-gdb] Move vgdb special case into remote_filesystem_is_local
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT e3dd7556ad89bf00c2a92f76079ae1c53dc130a8 ***
Author: Gary Benson <gbenson@redhat.com>
Branch: master
Commit: e3dd7556ad89bf00c2a92f76079ae1c53dc130a8
Move vgdb special case into remote_filesystem_is_local
Valgrind GDB (vgdb) presents itself as a remote target but works on
the local filesystem. gdb_bfd_open contained a special case to make
vgdb work with "target:" sysroots, but the implementation meant that
GDB would fall back to the local filesystem if *any* to_fileio_open
method failed with ENOSYS for *any* reason. This commit moves the
vgdb special case to remote_filesystem_is_local to allow the fallback
to be restricted only to the specific case that remote file transfer
is unsupported. This commit also adds a warning which is displayed
the first time the fallback is used.
gdb/ChangeLog:
* gdb_bfd.c (gdb_bfd_open): Move vgdb special case to...
* remote.c (remote_filesystem_is_local): ...here.