2004-09-03 Andrew Cagney <cagney@gnu.org>
[deliverable/binutils-gdb.git] / gdb / config / i386 / nm-obsd.h
1 /* Native-dependent definitions for OpenBSD/i386.
2
3 Copyright 2001, 2004 Free Software Foundation, Inc.
4
5 This file is part of GDB.
6
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.
11
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.
16
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. */
21
22 #ifndef NM_OBSD_H
23 #define NM_OBSD_H
24
25 /* Get generic BSD native definitions. */
26 #include "config/nm-bsd.h"
27
28 /* Support for the user struct. */
29
30 /* Return the size of the user struct. */
31
32 #define KERNEL_U_SIZE kernel_u_size ()
33 extern int kernel_u_size (void);
34
35 /* This is the amount to subtract from u.u_ar0
36 to get the offset in the core file of the register values. */
37
38 #include <machine/vmparam.h>
39 #define KERNEL_U_ADDR USRSTACK
40
41 #define REGISTER_U_ADDR(addr, blockend, regno) \
42 (addr) = register_u_addr ((blockend), (regno))
43 extern CORE_ADDR register_u_addr (CORE_ADDR blockend, int regno);
44 \f
45
46 /* Shared library support. */
47
48 #include "solib.h"
49
50 /* Make structure definitions match up with those expected in
51 `solib-sunos.c'. */
52
53 #define link_object sod
54 #define lo_name sod_name
55 #define lo_library sod_library
56 #define lo_unused sod_reserved
57 #define lo_major sod_major
58 #define lo_minor sod_minor
59 #define lo_next sod_next
60
61 #define link_map so_map
62 #define lm_addr som_addr
63 #define lm_name som_path
64 #define lm_next som_next
65 #define lm_lop som_sod
66 #define lm_lob som_sodbase
67 #define lm_rwt som_write
68 #define lm_ld som_dynamic
69 #define lm_lpd som_spd
70
71 #define link_dynamic_2 section_dispatch_table
72 #define ld_loaded sdt_loaded
73 #define ld_need sdt_sods
74 #define ld_rules sdt_filler1
75 #define ld_got sdt_got
76 #define ld_plt sdt_plt
77 #define ld_rel sdt_rel
78 #define ld_hash sdt_hash
79 #define ld_stab sdt_nzlist
80 #define ld_stab_hash sdt_filler2
81 #define ld_buckets sdt_buckets
82 #define ld_symbols sdt_strings
83 #define ld_symb_size sdt_str_sz
84 #define ld_text sdt_text_sz
85 #define ld_plt_sz sdt_plt_sz
86
87 #define rtc_symb rt_symbol
88 #define rtc_sp rt_sp
89 #define rtc_next rt_next
90
91 #define ld_debug so_debug
92 #define ldd_version dd_version
93 #define ldd_in_debugger dd_in_debugger
94 #define ldd_sym_loaded dd_sym_loaded
95 #define ldd_bp_addr dd_bpt_addr
96 #define ldd_bp_inst dd_bpt_shadow
97 #define ldd_cp dd_cc
98
99 #define link_dynamic _dynamic
100 #define ld_version d_version
101 #define ldd d_debug
102 #define ld_un d_un
103 #define ld_2 d_sdt
104
105 #endif /* nm-obsd.h */
This page took 0.030434 seconds and 4 git commands to generate.