* solib-target.c (solib_target_relocate_section_addresses): Add
authorPedro Alves <palves@redhat.com>
Sun, 5 Aug 2007 09:57:06 +0000 (09:57 +0000)
committerPedro Alves <palves@redhat.com>
Sun, 5 Aug 2007 09:57:06 +0000 (09:57 +0000)
orig_delta to addr_high.

gdb/ChangeLog
gdb/solib-target.c

index 508a73149521288fdf387581e3e5f591dc9e7bf0..fa5740009d6f33631d9afd860519f386a3610ca0 100644 (file)
@@ -1,3 +1,8 @@
+2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
+
+       * solib-target.c (solib_target_relocate_section_addresses): Add
+       orig_delta to addr_high.
+
 2007-08-04  Michael Snyder  <msnyder@access-company.com>
 
        * remote-fileio.c (remote_fileio_func_write): Memory leak.
index 89571a16d81e74b45916697fdc968616fd51b55a..6446e33cb292ac32acd04bc1ba06e648c4cb0cea 100644 (file)
@@ -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);
        }