diff options
author | Pedro Alves <palves@redhat.com> | 2007-08-05 09:57:06 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2007-08-05 09:57:06 +0000 |
commit | 5d9643bae448963730f4a171cdafa15732c302a9 (patch) | |
tree | 1d6897e7598c0847c9a6fbd311697f5e840f7eb8 /gdb | |
parent | 1ed489bd7c70382d83d3f8a4caf3abde9770f0e5 (diff) | |
download | gdb-5d9643bae448963730f4a171cdafa15732c302a9.zip gdb-5d9643bae448963730f4a171cdafa15732c302a9.tar.gz gdb-5d9643bae448963730f4a171cdafa15732c302a9.tar.bz2 |
* solib-target.c (solib_target_relocate_section_addresses): Add
orig_delta to addr_high.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/solib-target.c | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 508a731..fa57400 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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. diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 89571a1..6446e33 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); } |