PATCH: remove mach-o specific code in objdump.c
Tristan Gingold
gingold@adacore.com
Fri Nov 14 09:14:00 GMT 2008
On Nov 14, 2008, at 9:54 AM, Nick Clifton wrote:
> Hi Tristan,
>
>> * dwarf segment name is not anymore __DWARFA (and furthermore the
>> mach-o backend now uses standard
>> elf names to make gdb happy)
>> * there is no bias anymore.
>
> What about old mach-o files ? We need to be able to dump them
> properly as well.
I never met such old mach-o files. MacOS X Tiger and Leopard uses
this new convention and IIRC previous
versions didn't support dwarf (stabs was use by default in Tiger - the
switch to dwarf is very recent).
HJ, it seems that you added this code:
revision 1.113
date: 2005/09/30 14:57:52; author: hjl; state: Exp; lines: +47 -0
2005-09-30 H.J. Lu <hongjiu.lu@intel.com>
* dwarf.c (fetch_indirect_string): Adjust for section address.
(process_debug_info): Likewise.
(display_debug_loc): Likewise.
(display_debug_ranges): Likewise.
* objdump.c (mach_o_dwarf_sections): New.
(generic_dwarf_sections): Likewise.
(check_mach_o_dwarf): Likewise.
(dump_dwarf): Call check_mach_o_dwarf.
Do you remember of the context ?
Tristan.
More information about the Binutils
mailing list