summaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-08 22:55:14 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-08 22:55:14 +0000
commitb12e8bc499256bd218cf5a234869f53cee8debd1 (patch)
treeb0280473a17d971cbd1c537d4cd5c0b204786b56 /gdb/symfile.h
parentafef974bb852648f90af92683141a21ee4a8d091 (diff)
downloadgdb-b12e8bc499256bd218cf5a234869f53cee8debd1.tar.gz
gdb/
Move some symfile code into subroutines. * symfile.h (relative_addr_info_to_section_offsets) (addr_info_make_relative): New prototypes. * symfile.c (default_symfile_offsets): Move a part to ... (relative_addr_info_to_section_offsets): ... this new function. (default_symfile_offsets): Call it. (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move this part to ... (addr_info_make_relative): ... this new function.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index f9c4daa7b9f..57e6286aa83 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -174,6 +174,13 @@ struct sym_fns
};
+extern void relative_addr_info_to_section_offsets
+ (struct section_offsets *section_offsets, int num_sections,
+ struct section_addr_info *addrs);
+
+extern void addr_info_make_relative (struct section_addr_info *addrs,
+ bfd *abfd);
+
/* The default version of sym_fns.sym_offsets for readers that don't
do anything special. */