Introduce type-safe variant of gdb_bfd_openr_iovec
authorTom Tromey <tromey@adacore.com>
Thu, 24 Aug 2023 14:47:54 +0000 (08:47 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 28 Sep 2023 16:46:38 +0000 (10:46 -0600)
commitbb75a8698c262383fc7720edfa0685a14eea1400
tree0fe925b12aa1893392de1c7148c7fe5686e9e8c3
parentc7bdb38bafacde3d4bf4fa21951c577380259750
Introduce type-safe variant of gdb_bfd_openr_iovec

This patch adds a new, type-safe variant of gdb_bfd_openr_iovec.  In
this approach, the underlying user data is simply an object, the
callbacks are methods, and the "open" function is a function view.
Nothing uses this new code yet.

Reviewed-By: Lancelot Six <lancelot.six@amd.com>
gdb/gdb_bfd.c
gdb/gdb_bfd.h