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/compile | |
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/compile')
-rw-r--r-- | gdb/compile/compile-object-load.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/compile/compile-object-load.c b/gdb/compile/compile-object-load.c index 55a46a3..76a9418 100644 --- a/gdb/compile/compile-object-load.c +++ b/gdb/compile/compile-object-load.c @@ -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 ())); |