Default gdb_bfd_open's fd parameter to -1

A following patch will add one more defaulted parameter.

gdb/ChangeLog:
2020-05-19  Pedro Alves  <palves@redhat.com>

	* gdb_bfd.h: (gdb_bfd_open): Default to 'fd' parameter to -1.
	Adjust all callers.
This commit is contained in:
Pedro Alves 2020-05-19 18:36:24 +01:00
parent 1d6ce4d312
commit ad80db5b9f
10 changed files with 19 additions and 13 deletions

View file

@ -604,7 +604,7 @@ compile_object_load (const compile_file_names &file_names,
gdb::unique_xmalloc_ptr<char> filename
(tilde_expand (file_names.object_file ()));
gdb_bfd_ref_ptr abfd (gdb_bfd_open (filename.get (), gnutarget, -1));
gdb_bfd_ref_ptr abfd (gdb_bfd_open (filename.get (), gnutarget));
if (abfd == NULL)
error (_("\"%s\": could not open as compiled module: %s"),
filename.get (), bfd_errmsg (bfd_get_error ()));