summaryrefslogtreecommitdiff
path: root/gdb/build-id.c
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/build-id.c
parent1d6ce4d31257e1ea49b3a1b257055bf8f7ff16af (diff)
downloadbinutils-gdb-ad80db5b9f7c95105c78d3ab439678184d1b7177.tar.gz
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/build-id.c')
-rw-r--r--gdb/build-id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/build-id.c b/gdb/build-id.c
index 6e1f8b0f0cc..2f1afbd8e18 100644
--- a/gdb/build-id.c
+++ b/gdb/build-id.c
@@ -94,7 +94,7 @@ build_id_to_debug_bfd_1 (const std::string &link, size_t build_id_len,
}
/* We expect to be silent on the non-existing files. */
- gdb_bfd_ref_ptr debug_bfd = gdb_bfd_open (filename.get (), gnutarget, -1);
+ gdb_bfd_ref_ptr debug_bfd = gdb_bfd_open (filename.get (), gnutarget);
if (debug_bfd == NULL)
{