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

@@ -834,7 +834,7 @@ windows_make_so (const char *name, LPVOID load_addr)
{
asection *text = NULL;
gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->so_name, "pei-i386", -1));
gdb_bfd_ref_ptr abfd (gdb_bfd_open (so->so_name, "pei-i386"));
if (abfd == NULL)
return so;