summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-09 09:10:59 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-09 09:10:59 +0000
commit07ced0fd294e617ba39f4bfd0359699d99fa19d5 (patch)
treed5950bc3822df76a727a74beb1e30d6059080134 /gdb/symfile.h
parent97f6d96b0439794ecba310a256fb884f0d4a45bc (diff)
downloadgdb-07ced0fd294e617ba39f4bfd0359699d99fa19d5.tar.gz
gdb/
Fix displacement of separate debug info files. * objfiles.c (objfile_relocate): Rename to ... (objfile_relocate1): ... here and make it static. Extend the comment. (objfile_relocate): New function. * solib-spu.c (spu_relocate_main_executable): Explicitly check if SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now allocated using alloca. * symfile.c (copy_section_addr_info): Remove. (build_section_addr_info_from_objfile): Make it global. New variables addr_bit and mask, use them. * symfile.h (build_section_addr_info_from_objfile): New prototype. (copy_section_addr_info): Remove.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 57e6286aa83..7ae819c5e5b 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -174,6 +174,9 @@ struct sym_fns
};
+extern struct section_addr_info *
+ build_section_addr_info_from_objfile (const struct objfile *objfile);
+
extern void relative_addr_info_to_section_offsets
(struct section_offsets *section_offsets, int num_sections,
struct section_addr_info *addrs);
@@ -254,11 +257,6 @@ extern char *find_separate_debug_file_by_debuglink (struct objfile *);
extern struct section_addr_info *alloc_section_addr_info (size_t
num_sections);
-/* Return a freshly allocated copy of ADDRS. The section names, if
- any, are also freshly allocated copies of those in ADDRS. */
-extern struct section_addr_info *(copy_section_addr_info
- (struct section_addr_info *addrs));
-
/* Build (allocate and populate) a section_addr_info struct from an
existing section table. */