aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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