aboutsummaryrefslogtreecommitdiff
path: root/bfd/mach-o.h
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2012-01-04 08:44:04 +0000
committerTristan Gingold <gingold@adacore.com>2012-01-04 08:44:04 +0000
commit2ca7691a9b964e6f393fbcc37e83dd8f91e63ae2 (patch)
tree365a5a9f49ac2805d65c957c57df723e1ca19076 /bfd/mach-o.h
parentc5a570810022466eaa5e077cd1b8aa00d74706f1 (diff)
downloadgdb-2ca7691a9b964e6f393fbcc37e83dd8f91e63ae2.zip
gdb-2ca7691a9b964e6f393fbcc37e83dd8f91e63ae2.tar.gz
gdb-2ca7691a9b964e6f393fbcc37e83dd8f91e63ae2.tar.bz2
2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
* dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part which reads DWARF2 and stores in stash from find_line. (find_line) Call _bfd_dwarf2_slurp_debug_info. * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration. * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate. * mach-o.c (dsym_subdir): The name of subdir where debug information may be stored. (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose type is UUID. (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is corresponding to the executable. (bfd_mach_o_find_dsym): New. Find a debug information BFD in the specified binary file. (bfd_mach_o_follow_dsym): New. Find a debug information BFD for the original BFD. (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O executables, dylibs, and bundles. (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file. * mach-o.h (dsym_bfd): The BFD of the dSYM file.
Diffstat (limited to 'bfd/mach-o.h')
-rw-r--r--bfd/mach-o.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/bfd/mach-o.h b/bfd/mach-o.h
index 24a1645..da4363b 100644
--- a/bfd/mach-o.h
+++ b/bfd/mach-o.h
@@ -543,6 +543,9 @@ typedef struct mach_o_data_struct
/* A place to stash dwarf2 info for this bfd. */
void *dwarf2_find_line_info;
+ /* BFD of .dSYM file. */
+ bfd *dsym_bfd;
+
/* Cache of dynamic relocs. */
arelent *dyn_reloc_cache;
}