aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-11-25 20:11:35 +0000
committerJim Blandy <jimb@codesourcery.com>2002-11-25 20:11:35 +0000
commit13de58df8b40d72e380c7b973c76d869512d910b (patch)
treed1bdc7698d17e6557f4715e1b15e3834b9d6f2fc /gdb/symfile.c
parent481d0f41211d103b0a6ac1e8ed80904d532a03f0 (diff)
downloadgdb-13de58df8b40d72e380c7b973c76d869512d910b.zip
gdb-13de58df8b40d72e380c7b973c76d869512d910b.tar.gz
gdb-13de58df8b40d72e380c7b973c76d869512d910b.tar.bz2
* symfile.c (syms_from_objfile): Adjust indentation.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 5e0bf8c..aa457b2 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -652,25 +652,27 @@ syms_from_objfile (struct objfile *objfile, struct section_addr_info *addrs,
else
lower_offset = 0;
- /* Calculate offsets for the loadable sections.
+ /* Calculate offsets for the loadable sections.
FIXME! Sections must be in order of increasing loadable section
so that contiguous sections can use the lower-offset!!!
- Adjust offsets if the segments are not contiguous.
- If the section is contiguous, its offset should be set to
+ Adjust offsets if the segments are not contiguous.
+ If the section is contiguous, its offset should be set to
the offset of the highest loadable section lower than it
(the loadable section directly below it in memory).
this_offset = lower_offset = lower_addr - lower_orig_addr */
- /* Calculate offsets for sections. */
+ /* Calculate offsets for sections. */
for (i=0 ; i < MAX_SECTIONS && addrs->other[i].name; i++)
{
if (addrs->other[i].addr != 0)
{
- sect = bfd_get_section_by_name (objfile->obfd, addrs->other[i].name);
+ sect = bfd_get_section_by_name (objfile->obfd,
+ addrs->other[i].name);
if (sect)
{
- addrs->other[i].addr -= bfd_section_vma (objfile->obfd, sect);
+ addrs->other[i].addr
+ -= bfd_section_vma (objfile->obfd, sect);
lower_offset = addrs->other[i].addr;
/* This is the index used by BFD. */
addrs->other[i].sectindex = sect->index ;