gdb: move bfd_open_from_target_memory to gdb_bfd
authorMihails Strasuns <mihails.strasuns@intel.com>
Mon, 7 Dec 2020 19:54:03 +0000 (20:54 +0100)
committerMihails Strasuns <mihails.strasuns@intel.com>
Thu, 10 Dec 2020 10:18:00 +0000 (11:18 +0100)
commit15cc148fb817bc1eb91aa16e5d94e39ebafc11ee
treeccae04d13503626501e682f6f5cafc53d8b3b934
parentc2137f55ad04e451d834048d4bfec1de2daea20e
gdb: move bfd_open_from_target_memory to gdb_bfd

This function allows to create a BFD handle using an accessible memory
range in a target memory.  It is currently contained in a JIT module but
this functionality may be of wider usefullness - for example, reading
ELF binaries contained within a core dump.

gdb/ChangeLog:
2020-12-07  Mihails Strasuns  <mihails.strasuns@intel.com>

* jit.c (mem_bfd*, bfd_open_from_target_memory): Removed.
* gdb_bfd.h (gdb_bfd_open_from_target_memory): New function.
* gdb_bfd.c (mem_bfd*, gdb_bfd_open_from_target_memory): New functions.
gdb/ChangeLog
gdb/gdb_bfd.c
gdb/gdb_bfd.h
gdb/jit.c
This page took 0.030051 seconds and 4 git commands to generate.