aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-09 09:11:00 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-09 09:11:00 +0000
commit567995e103055787c86c42096397015a55e02fd4 (patch)
treea0de58b90d278e233552c471b8111ccd2203a108 /gdb/symfile.h
parenta2beed37dbcc39524abf8a86b2133ea49f766205 (diff)
downloadgdb-567995e103055787c86c42096397015a55e02fd4.zip
gdb-567995e103055787c86c42096397015a55e02fd4.tar.gz
gdb-567995e103055787c86c42096397015a55e02fd4.tar.bz2
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 57e6286..7ae819c 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. */