aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
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/solib-svr4.c
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/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c3
1 files changed, 2 insertions, 1 deletions
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