1 /* Common target-dependent code for NetBSD systems.
2 Copyright 2002 Free Software Foundation, Inc.
3 Contributed by Wasabi Systems, Inc.
5 This file is part of GDB.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA. */
23 #include "solib-svr4.h"
25 /* Fetch (and possibly build) an appropriate link_map_offsets
26 structure for NetBSD targets using the struct offsets defined
27 in <link.h> (but without actual reference to that file).
29 This makes it possible to access NetBSD shared libraries from a
30 GDB that was not built on the same platform (for cross debugging).
32 We provide versions for ILP32 and LP64 NetBSD targets here. */
34 struct link_map_offsets
*
35 nbsd_ilp32_solib_svr4_fetch_link_map_offsets (void)
37 static struct link_map_offsets lmo
;
38 static struct link_map_offsets
*lmp
= NULL
;
44 lmo
.r_debug_size
= 16;
49 lmo
.link_map_size
= 20;
51 lmo
.l_addr_offset
= 0;
54 lmo
.l_name_offset
= 4;
57 lmo
.l_next_offset
= 12;
60 lmo
.l_prev_offset
= 16;
67 struct link_map_offsets
*
68 nbsd_lp64_solib_svr4_fetch_link_map_offsets (void)
70 static struct link_map_offsets lmo
;
71 static struct link_map_offsets
*lmp
= NULL
;
77 lmo
.r_debug_size
= 32;
82 lmo
.link_map_size
= 40;
84 lmo
.l_addr_offset
= 0;
87 lmo
.l_name_offset
= 8;
90 lmo
.l_next_offset
= 24;
93 lmo
.l_prev_offset
= 32;
This page took 0.03061 seconds and 4 git commands to generate.