diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2010-03-05 19:32:44 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2010-03-05 19:32:44 +0000 |
commit | 4e7386b0c714425b9c1ac212ecc861297e581b19 (patch) | |
tree | 4792e954b53a75100fbe4ef9cef60b5f6850a05d /gdb | |
parent | aab48ede0952a825edc78bef75200680466cb5dd (diff) | |
download | gdb-4e7386b0c714425b9c1ac212ecc861297e581b19.zip gdb-4e7386b0c714425b9c1ac212ecc861297e581b19.tar.gz gdb-4e7386b0c714425b9c1ac212ecc861297e581b19.tar.bz2 |
* symfile.c (build_section_addr_info_from_objfile): Do not mask
off high address bits.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symfile.c | 7 |
2 files changed, 6 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1610707..d922c27 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> + * symfile.c (build_section_addr_info_from_objfile): Do not mask + off high address bits. + +2010-03-05 Ulrich Weigand <uweigand@de.ibm.com> + * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract address as UnsignedLongLong, not LongLong. diff --git a/gdb/symfile.c b/gdb/symfile.c index 20b3daf..dbb396c 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -364,18 +364,13 @@ build_section_addr_info_from_objfile (const struct objfile *objfile) struct section_addr_info *sap; int i; struct bfd_section *sec; - int addr_bit = gdbarch_addr_bit (objfile->gdbarch); - CORE_ADDR mask = CORE_ADDR_MAX; - - if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) - mask = ((CORE_ADDR) 1 << addr_bit) - 1; sap = alloc_section_addr_info (objfile->num_sections); for (i = 0, sec = objfile->obfd->sections; sec != NULL; sec = sec->next) if (bfd_get_section_flags (objfile->obfd, sec) & (SEC_ALLOC | SEC_LOAD)) { sap->other[i].addr = (bfd_get_section_vma (objfile->obfd, sec) - + objfile->section_offsets->offsets[i]) & mask; + + objfile->section_offsets->offsets[i]); sap->other[i].name = xstrdup (bfd_get_section_name (objfile->obfd, sec)); sap->other[i].sectindex = sec->index; |