aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-legacy.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-legacy.c')
-rw-r--r--gdb/solib-legacy.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/gdb/solib-legacy.c b/gdb/solib-legacy.c
index 237df34..6789993 100644
--- a/gdb/solib-legacy.c
+++ b/gdb/solib-legacy.c
@@ -1,5 +1,6 @@
/* Provide legacy r_debug and link_map support for SVR4-like native targets.
- Copyright (C) 2000, 2001
+
+ Copyright (C) 2000, 2001, 2006
Free Software Foundation, Inc.
This file is part of GDB.
@@ -55,10 +56,10 @@ legacy_svr4_fetch_link_map_offsets (void)
lmp = &lmo;
#ifdef HAVE_STRUCT_LINK_MAP_WITH_L_MEMBERS
- lmo.r_debug_size = sizeof (struct r_debug);
-
+ lmo.r_version_offset = offsetof (struct r_debug, r_version);
+ lmo.r_version_size = fieldsize (struct r_debug, r_version);
lmo.r_map_offset = offsetof (struct r_debug, r_map);
- lmo.r_map_size = fieldsize (struct r_debug, r_map);
+ lmo.r_ldsomap_offset = -1;
lmo.link_map_size = sizeof (struct link_map);
@@ -107,10 +108,10 @@ legacy_svr4_fetch_link_map_offsets (void)
{
lmp32 = &lmo32;
- lmo32.r_debug_size = sizeof (struct r_debug32);
-
+ lmo32.r_version_offset = offsetof (struct r_debug32, r_version);
+ lmo32.r_version_size = fieldsize (struct r_debug32, r_version);
lmo32.r_map_offset = offsetof (struct r_debug32, r_map);
- lmo32.r_map_size = fieldsize (struct r_debug32, r_map);
+ lmo32.r_ldsomap_offset = -1;
lmo32.link_map_size = sizeof (struct link_map32);