aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-09-24 21:48:29 +0000
committerJim Blandy <jimb@codesourcery.com>2007-09-24 21:48:29 +0000
commit28c32713ac37a0123d8397527e5fe9cc2d108f1a (patch)
tree770106fda5f1fb4c9ae15786fc82610724c8479f /gdb/symfile.h
parent322766326763e8d4765940a4c332a9f012f1e5a2 (diff)
downloadgdb-28c32713ac37a0123d8397527e5fe9cc2d108f1a.zip
gdb-28c32713ac37a0123d8397527e5fe9cc2d108f1a.tar.gz
gdb-28c32713ac37a0123d8397527e5fe9cc2d108f1a.tar.bz2
* symfile.h (struct symfile_segment_data): Doc fixes.
* symfile.c (symfile_map_offsets_to_segments): Doc fixes. Assert that we were passed some loaded segment addresses, and that sections' segment numbers are valid. Simplify offset calculation. * remote.c (get_offsets): Clarify selection of relocate-by-segment strategy, and set num_segments correctly. Delete redundant assignments to do_sections.
Diffstat (limited to 'gdb/symfile.h')
-rw-r--r--gdb/symfile.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gdb/symfile.h b/gdb/symfile.h
index 15f60cc..fd14215 100644
--- a/gdb/symfile.h
+++ b/gdb/symfile.h
@@ -83,6 +83,9 @@ struct section_addr_info
} other[1];
};
+
+/* A table listing the load segments in a symfile, and which segment
+ each BFD section belongs to. */
struct symfile_segment_data
{
/* How many segments are present in this file. If there are
@@ -99,9 +102,9 @@ struct symfile_segment_data
CORE_ADDR *segment_sizes;
/* If NUM_SEGMENTS is greater than zero, this is an array of entries
- recording which segment contains each BFD section. It is
- ordered by section index. A zero means that the section is not
- in any segment. */
+ recording which segment contains each BFD section.
+ SEGMENT_INFO[I] is S+1 if the I'th BFD section belongs to segment
+ S, or zero if it is not in any segment. */
int *segment_info;
};