diff options
author | Tristan Gingold <tristan.gingold@adacore.com> | 2014-03-25 15:51:54 +0100 |
---|---|---|
committer | Tristan Gingold <tristan.gingold@adacore.com> | 2014-03-27 10:23:22 +0100 |
commit | 3cc27770cfa2080f70d44659de9d62adc80489fc (patch) | |
tree | bc8a143d3941d458aa0224b3293675bf6217af88 /bfd/mach-o.h | |
parent | b5bee914261ea82683b7da4245790465b9373131 (diff) | |
download | gdb-3cc27770cfa2080f70d44659de9d62adc80489fc.zip gdb-3cc27770cfa2080f70d44659de9d62adc80489fc.tar.gz gdb-3cc27770cfa2080f70d44659de9d62adc80489fc.tar.bz2 |
Mach-O: add objdump -P function_starts to display function starts.
bfd/
* mach-o.h (bfd_mach_o_get_base_address): New prototype.
* mach-o.c (bfd_mach_o_write_symtab)
(bfd_mach_o_write_contents)
(bfd_mach_o_set_section_flags_from_bfd)
(bfd_mach_o_build_seg_command): Fix indentation.
(bfd_mach_o_get_base_address): New function.
binutils/
* od-macho.c (OPT_FUNCTION_STARTS): New macro.
(options): Add entry for function_starts.
(mach_o_help): Ditto.
(disp_segment_prot): New function.
(dump_section_map): Call disp_segment_prot.
(dump_function_starts): New function.
(dump_obj_compact_unwind): Fix ouput indentation.
(dump_exe_compact_unwind): Fix ouput indentation.
(mach_o_dump): Handle function_starts.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r-- | bfd/mach-o.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h index 6f695c5..4418b92 100644 --- a/bfd/mach-o.h +++ b/bfd/mach-o.h @@ -656,6 +656,8 @@ unsigned int bfd_mach_o_section_get_entry_size (bfd *, bfd_mach_o_section *); bfd_boolean bfd_mach_o_read_symtab_symbols (bfd *); bfd_boolean bfd_mach_o_read_symtab_strtab (bfd *abfd); +bfd_vma bfd_mach_o_get_base_address (bfd *); + /* A placeholder in case we need to suppress emitting the dysymtab for some reason (e.g. compatibility with older system versions). */ #define bfd_mach_o_should_emit_dysymtab(x) TRUE |