gdb: remove filename arg from gdb_bfd_open_from_target_memory
authorAndrew Burgess <aburgess@redhat.com>
Wed, 5 Oct 2022 14:25:59 +0000 (15:25 +0100)
committerAndrew Burgess <aburgess@redhat.com>
Mon, 10 Oct 2022 12:05:27 +0000 (13:05 +0100)
commit322dd71cbffdd681f3c94ad28b625f71ea9369f8
tree9313b773f63a347592438ff454be73f605ce1e9d
parente4014689b9a1b9aa0dde8f8a358401774566fe8b
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.
gdb/gdb_bfd.c
gdb/gdb_bfd.h