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/gdb_bfd.h | |
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/gdb_bfd.h')
-rw-r--r-- | gdb/gdb_bfd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h index ce72f78..532520e 100644 --- a/gdb/gdb_bfd.h +++ b/gdb/gdb_bfd.h @@ -80,7 +80,8 @@ typedef gdb::ref_ptr<struct bfd, gdb_bfd_ref_policy> gdb_bfd_ref_ptr; bfd_get_filename will not be exactly NAME but rather NAME with TARGET_SYSROOT_PREFIX stripped. */ -gdb_bfd_ref_ptr gdb_bfd_open (const char *name, const char *target, int fd); +gdb_bfd_ref_ptr gdb_bfd_open (const char *name, const char *target, + int fd = -1); /* Mark the CHILD BFD as being a member of PARENT. Also, increment the reference count of CHILD. Calling this function ensures that |