aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2020-05-19 18:36:24 +0100
committerPedro Alves <palves@redhat.com>2020-05-19 18:36:24 +0100
commitad80db5b9f7c95105c78d3ab439678184d1b7177 (patch)
tree8cd4ce853e52de8f158a615ec3439b7d3a693029 /gdb/dwarf2
parent1d6ce4d31257e1ea49b3a1b257055bf8f7ff16af (diff)
downloadgdb-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/dwarf2')
-rw-r--r--gdb/dwarf2/read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2/read.c b/gdb/dwarf2/read.c
index 719051b..0c6182b 100644
--- a/gdb/dwarf2/read.c
+++ b/gdb/dwarf2/read.c
@@ -2115,7 +2115,7 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile)
/* First try the file name given in the section. If that doesn't
work, try to use the build-id instead. */
- gdb_bfd_ref_ptr dwz_bfd (gdb_bfd_open (filename, gnutarget, -1));
+ gdb_bfd_ref_ptr dwz_bfd (gdb_bfd_open (filename, gnutarget));
if (dwz_bfd != NULL)
{
if (!build_id_verify (dwz_bfd.get (), buildid_len, buildid))
@@ -2138,7 +2138,7 @@ dwarf2_get_dwz_file (struct dwarf2_per_objfile *dwarf2_per_objfile)
if (fd.get () >= 0)
{
/* File successfully retrieved from server. */
- dwz_bfd = gdb_bfd_open (alt_filename.get (), gnutarget, -1);
+ dwz_bfd = gdb_bfd_open (alt_filename.get (), gnutarget);
if (dwz_bfd == nullptr)
warning (_("File \"%s\" from debuginfod cannot be opened as bfd"),