aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdb_bfd.h
diff options
context:
space:
mode:
authorAndrew Burgess <aburgess@redhat.com>2022-10-05 15:25:59 +0100
committerAndrew Burgess <aburgess@redhat.com>2022-10-10 13:05:27 +0100
commit322dd71cbffdd681f3c94ad28b625f71ea9369f8 (patch)
tree9313b773f63a347592438ff454be73f605ce1e9d /gdb/gdb_bfd.h
parente4014689b9a1b9aa0dde8f8a358401774566fe8b (diff)
downloadgdb-322dd71cbffdd681f3c94ad28b625f71ea9369f8.zip
gdb-322dd71cbffdd681f3c94ad28b625f71ea9369f8.tar.gz
gdb-322dd71cbffdd681f3c94ad28b625f71ea9369f8.tar.bz2
gdb: remove filename arg from gdb_bfd_open_from_target_memory
The filename argument to gdb_bfd_open_from_target_memory was never used; this argument had a default value of nullptr, and the only call to this function, in jit.c, relied on the default value. In the next commit I'm going to make some changes to the gdb_bfd_open_from_target_memory function, and, though I could take account of a filename parameter, it seems pointless to maintain an unused argument. This commit removes the filename argument. There should be no user visible changes after this commit.
Diffstat (limited to 'gdb/gdb_bfd.h')
-rw-r--r--gdb/gdb_bfd.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/gdb_bfd.h b/gdb/gdb_bfd.h
index 86f7be8..6ea16dd 100644
--- a/gdb/gdb_bfd.h
+++ b/gdb/gdb_bfd.h
@@ -201,11 +201,12 @@ int gdb_bfd_requires_relocations (bfd *abfd);
bool gdb_bfd_get_full_section_contents (bfd *abfd, asection *section,
gdb::byte_vector *contents);
-/* Create and initialize a BFD handle from a target in-memory range. */
+/* Create and initialize a BFD handle from a target in-memory range. The
+ BFD starts at ADDR and is SIZE bytes long. TARGET is the BFD target
+ name as used in bfd_find_target. */
gdb_bfd_ref_ptr gdb_bfd_open_from_target_memory (CORE_ADDR addr, ULONGEST size,
- const char *target,
- const char *filename = nullptr);
+ const char *target);
/* Range adapter for a BFD's sections.