summaryrefslogtreecommitdiff
path: root/gdb/solib-target.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2007-08-05 09:57:06 +0000
committerPedro Alves <pedro@codesourcery.com>2007-08-05 09:57:06 +0000
commit600aed356738f421644b7c4d9231fe7cd5f6286b (patch)
tree7dc4b7146b119104ca1fc636c13621ecf9b413cf /gdb/solib-target.c
parent207a2f7b831a2d7333ef4381d477a0fbb0ab4ca0 (diff)
downloadgdb-600aed356738f421644b7c4d9231fe7cd5f6286b.tar.gz
* solib-target.c (solib_target_relocate_section_addresses): Add
orig_delta to addr_high.
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r--gdb/solib-target.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index 89571a16d81..6446e33cb29 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -332,7 +332,8 @@ solib_target_relocate_section_addresses (struct so_list *so,
so->addr_low = segment_bases[0];
so->addr_high = (data->segment_bases[i - 1]
+ data->segment_sizes[i - 1]
- /* FIXME this must be needed! + orig_delta */);
+ + orig_delta);
+ gdb_assert (so->addr_low <= so->addr_high);
free_symfile_segment_data (data);
}