/* Provide legacy r_debug and link_map support for SVR4-like native targets.
- Copyright 2000, 2001
+
+ Copyright (C) 2000, 2001, 2006
Free Software Foundation, Inc.
This file is part of GDB.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA. */
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
-#define _SYSCALL32 /* for Sparc64 cross Sparc32 */
#include "defs.h"
#include "gdbcore.h"
#include "solib-svr4.h"
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);
{
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);
if (bfd_get_arch_size (exec_bfd) == 32)
return lmp32;
}
- else if (TARGET_PTR_BIT == 32)
+ if (TARGET_PTR_BIT == 32)
return lmp32;
- else
#endif
- return lmp;
+ return lmp;
}
#endif /* HAVE_LINK_H */
+extern initialize_file_ftype _initialize_svr4_lm; /* -Wmissing-prototypes */
+
void
_initialize_svr4_lm (void)
{