* bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
authorPedro Alves <palves@redhat.com>
Fri, 22 May 2009 03:01:45 +0000 (03:01 +0000)
committerPedro Alves <palves@redhat.com>
Fri, 22 May 2009 03:01:45 +0000 (03:01 +0000)
commit348f8c02f44abcb5f5b0ab1a0c597001ee35da79
tree451226879b03bbb2e0c0e52e95af07c1d13832ec
parent415756309f1044b3c3345e7cbf6c680a263ff44a
* bfd-target.c: Don't include gdb_assert.h or gdb_string.h.
Include exec.h.
(struct section_closure): Delete.
(add_to_section_table): Delete.
(build_target_sections_from_bfd): Delete.
(target_bfd_xfer_partial): Use section_table_xfer_memory_partial.
(target_bfd_reopen): Use build_section_table.
* exec.c (xfer_memory): Move most code except for overlay
debugging support from here...
(section_table_xfer_memory): ... to this new function.
(section_table_xfer_memory_partial): New.
* exec.h (section_table_xfer_memory_partial): Declare.
* bfd-target.h (build_target_sections_from_bfd): Delete
declaration.
gdb/ChangeLog
gdb/bfd-target.c
gdb/bfd-target.h
gdb/exec.c
gdb/exec.h