From 4111f652f955028e8219fad2d60af1fd22aa29ee Mon Sep 17 00:00:00 2001 From: Pedro Alves Date: Tue, 19 May 2020 18:36:24 +0100 Subject: Eliminate target_fileio_open_warn_if_slow This basically makes target_fileio_open_1 extern, renamed to target_fileio_open, and eliminates the current target_fileio_open_warn_if_slow and target_fileio_open. A following parameter will want to change gdb_bfd_iovec_fileio_open, the only caller of target_fileio_open_warn_if_slow, to pass down "warn_if_slow" true/false from the caller, instead of hardcoding "warn_if_slow" true. gdb/ChangeLog: 2020-05-19 Pedro Alves * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. * target.c (target_fileio_open_1): Rename to target_fileio_open and make extern. Use bool. (target_fileio_open, target_fileio_open_warn_if_slow): Delete. (target_fileio_read_alloc_1): Adjust. * target.h (target_fileio_open): Add 'warn_if_slow' parameter. (target_fileio_open_warn_if_slow): Delete declaration. --- gdb/ChangeLog | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gdb/ChangeLog') diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a03be43..643b4eb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,15 @@ 2020-05-19 Pedro Alves + * gdb_bfd.c (gdb_bfd_iovec_fileio_open): Adjust. + * target.c (target_fileio_open_1): Rename to target_fileio_open + and make extern. Use bool. + (target_fileio_open, target_fileio_open_warn_if_slow): Delete. + (target_fileio_read_alloc_1): Adjust. + * target.h (target_fileio_open): Add 'warn_if_slow' parameter. + (target_fileio_open_warn_if_slow): Delete declaration. + +2020-05-19 Pedro Alves + * gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1. Adjust all callers. -- cgit v1.1