diff options
author | Pedro Alves <palves@redhat.com> | 2020-05-19 18:36:24 +0100 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2020-05-19 18:36:24 +0100 |
commit | ad80db5b9f7c95105c78d3ab439678184d1b7177 (patch) | |
tree | 8cd4ce853e52de8f158a615ec3439b7d3a693029 /gdb/machoread.c | |
parent | 1d6ce4d31257e1ea49b3a1b257055bf8f7ff16af (diff) | |
download | gdb-ad80db5b9f7c95105c78d3ab439678184d1b7177.zip gdb-ad80db5b9f7c95105c78d3ab439678184d1b7177.tar.gz gdb-ad80db5b9f7c95105c78d3ab439678184d1b7177.tar.bz2 |
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.
Diffstat (limited to 'gdb/machoread.c')
-rw-r--r-- | gdb/machoread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/machoread.c b/gdb/machoread.c index 4655b67..fb4e205 100644 --- a/gdb/machoread.c +++ b/gdb/machoread.c @@ -639,7 +639,7 @@ macho_symfile_read_all_oso (std::vector<oso_el> *oso_vector_ptr, /* Open the archive and check the format. */ gdb_bfd_ref_ptr archive_bfd (gdb_bfd_open (archive_name.c_str (), - gnutarget, -1)); + gnutarget)); if (archive_bfd == NULL) { warning (_("Could not open OSO archive file \"%s\""), @@ -705,7 +705,7 @@ macho_symfile_read_all_oso (std::vector<oso_el> *oso_vector_ptr, } else { - gdb_bfd_ref_ptr abfd (gdb_bfd_open (oso->name, gnutarget, -1)); + gdb_bfd_ref_ptr abfd (gdb_bfd_open (oso->name, gnutarget)); if (abfd == NULL) warning (_("`%s': can't open to read symbols: %s."), oso->name, bfd_errmsg (bfd_get_error ())); |