diff options
author | Tristan Gingold <gingold@adacore.com> | 2011-12-13 14:02:20 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2011-12-13 14:02:20 +0000 |
commit | d9071b0c4242fe1180340d52c6b6207e794675ae (patch) | |
tree | 5f70f9c27965c484b0b9edb7207b3b93415a1a3b /bfd/mach-o.h | |
parent | 8837a20f4fa7f0406f23d63411a949e422a74aa6 (diff) | |
download | gdb-d9071b0c4242fe1180340d52c6b6207e794675ae.zip gdb-d9071b0c4242fe1180340d52c6b6207e794675ae.tar.gz gdb-d9071b0c4242fe1180340d52c6b6207e794675ae.tar.bz2 |
2011-12-13 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
* dwarf2.c (bfd_dwarf2_cleanup_debug_info): Accept stash as an
argument like other functions to support formats other than ELF.
* elf-bfd.h (bfd_dwarf2_cleanup_debug_info): Move to bfd-in.h.
* elf.c (_bfd_elf_close_and_cleanup): Pass dwarf2_find_line_info
in tdata as a parameter.
* libbfd-in.h (bfd_dwarf2_cleanup_debug_info): Move from
elf-bfd.h.
* libbfd.h (bfd_dwarf2_cleanup_debug_info): Regenerate.
* mach-o-target.c (bfd_mach_o_close_and_cleanup): Remove the
fallback macro.
(bfd_mach_o_find_nearest_line): Likewise.
* mach-o.c (bfd_mach_o_find_nearest_line): Add the definition
which calls _bfd_dwarf2_find_nearest_line.
(bfd_mach_o_close_and_cleanup): Likewise.
* mach-o.h (mach_o_data_struct): Add dwarf2_find_line_info.
(bfd_mach_o_find_nearest_line): Add declaration.
(bfd_mach_o_close_and_cleanup): Add declaration.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r-- | bfd/mach-o.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h index d85224e..686bb90 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -516,6 +516,9 @@ typedef struct mach_o_data_struct is expected. */ bfd_mach_o_symtab_command *symtab; bfd_mach_o_dysymtab_command *dysymtab; + + /* A place to stash dwarf2 info for this bfd. */ + void *dwarf2_find_line_info; } bfd_mach_o_data_struct; @@ -590,6 +593,10 @@ unsigned int bfd_mach_o_get_section_type_from_name (const char *); unsigned int bfd_mach_o_get_section_attribute_from_name (const char *); void bfd_mach_o_normalize_section_name (const char *, const char *, const char **, flagword *); +bfd_boolean bfd_mach_o_find_nearest_line (bfd *, asection *, asymbol **, + bfd_vma, const char **, + const char **, unsigned int *); +bfd_boolean bfd_mach_o_close_and_cleanup (bfd *); unsigned int bfd_mach_o_section_get_nbr_indirect (bfd *, bfd_mach_o_section *); unsigned int bfd_mach_o_section_get_entry_size (bfd *, bfd_mach_o_section *); |