1 /* Native-dependent definitions for OpenBSD/i386.
3 Copyright 2001, 2004 Free Software Foundation, 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. */
25 /* Get generic BSD native definitions. */
26 #include "config/nm-bsd.h"
28 /* Support for the user struct. */
30 /* Return the size of the user struct. */
32 #define KERNEL_U_SIZE kernel_u_size ()
33 extern int kernel_u_size (void);
35 /* This is the amount to subtract from u.u_ar0
36 to get the offset in the core file of the register values. */
38 #include <machine/vmparam.h>
39 #define KERNEL_U_ADDR USRSTACK
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
);
46 /* Shared library support. */
50 /* Make structure definitions match up with those expected in
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
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
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
87 #define rtc_symb rt_symbol
89 #define rtc_next rt_next
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
99 #define link_dynamic _dynamic
100 #define ld_version d_version
105 #endif /* nm-obsd.h */
This page took 0.030434 seconds and 4 git commands to generate.