From 4313b8c0ed5877feb5034bfff4056e1ccfe221f1 Mon Sep 17 00:00:00 2001 From: Gary Benson Date: Fri, 21 Aug 2015 17:09:20 +0100 Subject: Warn when accessing binaries from remote targets GDB provides no indicator of progress during file operations, and can appear to have locked up during slow remote transfers. This commit updates GDB to print a warning each time a file is accessed over RSP. An additional message detailing how to avoid remote transfers is printed for the first transfer only. gdb/ChangeLog: * target.h (struct target_ops) : New argument warn_if_slow. Update comment. All implementations updated. (target_fileio_open_warn_if_slow): New declaration. * target.c (target_fileio_open): Renamed as... (target_fileio_open_1): ...this. New argument warn_if_slow. Pass warn_if_slow to implementation. Update debug printing. (target_fileio_open): New function. (target_fileio_open_warn_if_slow): Likewise. * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Use new function target_fileio_open_warn_if_slow. gdb/testsuite/ChangeLog: * gdb.trace/pending.exp: Cope with remote transfer warnings. --- gdb/testsuite/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gdb/testsuite/ChangeLog') diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 3ab4d74..515a669 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2015-08-21 Gary Benson + + * gdb.trace/pending.exp: Cope with remote transfer warnings. + 2015-08-20 Pedro Alves * gdb.server/solib-list.exp: No longer expect an interior stop in -- cgit v1.1