aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMartin Hunt <hunt@redhat.com>2001-02-20 18:05:19 +0000
committerMartin Hunt <hunt@redhat.com>2001-02-20 18:05:19 +0000
commit58bc91c9c3941cbd51b66f24243ee55b26ee7d41 (patch)
tree46d4641cd223e134cf1df5b82bc19b3a5444b219 /gdb
parent291b7e049dad84ac700072aa7cf269fbe69f1b90 (diff)
downloadgdb-58bc91c9c3941cbd51b66f24243ee55b26ee7d41.zip
gdb-58bc91c9c3941cbd51b66f24243ee55b26ee7d41.tar.gz
gdb-58bc91c9c3941cbd51b66f24243ee55b26ee7d41.tar.bz2
2001-02-20 Martin M. Hunt <hunt@redhat.com>
* solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so extract_signed_integer() should be called instead of extract_address().
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/solib-svr4.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index aabef83..57f8449 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2001-02-20 Martin M. Hunt <hunt@redhat.com>
+ * solib-svr4.c (LM_ADDR): LM_ADDR is a signed offset, so
+ extract_signed_integer() should be called instead of
+ extract_address().
+
+2001-02-20 Martin M. Hunt <hunt@redhat.com>
+
* MAINTAINERS: Add Martin Hunt to Write After Approval list.
2001-02-19 Andrew Cagney <ac131313@redhat.com>
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 5c3938b..07cd2d0 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -249,7 +249,8 @@ LM_ADDR (struct so_list *so)
{
struct link_map_offsets *lmo = SVR4_FETCH_LINK_MAP_OFFSETS ();
- return extract_address (so->lm_info->lm + lmo->l_addr_offset, lmo->l_addr_size);
+ return (CORE_ADDR) extract_signed_integer (so->lm_info->lm + lmo->l_addr_offset,
+ lmo->l_addr_size);
}
static CORE_ADDR