aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2010-01-08 22:55:15 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2010-01-08 22:55:15 +0000
commit75242ef48d5510349fe853a148a130f6d225f6c9 (patch)
tree264a42aa4c1c99565f2d0653834fb8ecd73d0042 /gdb/symfile.h
parent268a4a75bdc5271819e657da07b868c8bddc500f (diff)
downloadgdb-75242ef48d5510349fe853a148a130f6d225f6c9.zip
gdb-75242ef48d5510349fe853a148a130f6d225f6c9.tar.gz
gdb-75242ef48d5510349fe853a148a130f6d225f6c9.tar.bz2
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 f9c4daa..57e6286 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. */