mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 01:50:48 +00:00
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:
@@ -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 ()));
|
||||
|
||||
Reference in New Issue
Block a user