7374dc9dcea70bb2465b6e689deb9c00b2b20a5f
1 /* Native-dependent definitions for FreeBSD/i386.
3 Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001, 2004
4 Free Software Foundation, Inc.
6 This file is part of GDB.
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place - Suite 330,
21 Boston, MA 02111-1307, USA. */
26 #ifdef HAVE_PT_GETDBREGS
27 #define I386_USE_GENERIC_WATCHPOINTS
30 #include "i386/nm-i386.h"
32 #ifdef HAVE_SYS_PARAM_H
33 #include <sys/param.h>
36 /* Provide access to the i386 hardware debugging registers. */
38 #define I386_DR_LOW_SET_CONTROL(control) \
39 i386bsd_dr_set_control (control)
40 extern void i386bsd_dr_set_control (unsigned long control
);
42 #define I386_DR_LOW_SET_ADDR(regnum, addr) \
43 i386bsd_dr_set_addr (regnum, addr)
44 extern void i386bsd_dr_set_addr (int regnum
, CORE_ADDR addr
);
46 #define I386_DR_LOW_RESET_ADDR(regnum) \
47 i386bsd_dr_reset_addr (regnum)
48 extern void i386bsd_dr_reset_addr (int regnum
);
50 #define I386_DR_LOW_GET_STATUS() \
51 i386bsd_dr_get_status ()
52 extern unsigned long i386bsd_dr_get_status (void);
55 /* Get generic BSD native definitions. */
56 #include "config/nm-bsd.h"
59 /* Support for the user struct. */
61 /* Return the size of the user struct. */
63 #define KERNEL_U_SIZE kernel_u_size ()
64 extern int kernel_u_size (void);
66 /* This is the amount to subtract from u.u_ar0
67 to get the offset in the core file of the register values. */
69 #include <machine/vmparam.h>
70 #define KERNEL_U_ADDR USRSTACK
72 #define REGISTER_U_ADDR(addr, blockend, regno) \
73 (addr) = register_u_addr ((blockend), (regno))
74 extern CORE_ADDR
register_u_addr (CORE_ADDR blockend
, int regno
);
77 /* Shared library support. */
81 /* Make structure definitions match up with those expected in
84 #define link_object sod
85 #define lo_name sod_name
86 #define lo_library sod_library
87 #define lo_unused sod_reserved
88 #define lo_major sod_major
89 #define lo_minor sod_minor
90 #define lo_next sod_next
92 #define link_map so_map
93 #define lm_addr som_addr
94 #define lm_name som_path
95 #define lm_next som_next
96 #define lm_lop som_sod
97 #define lm_lob som_sodbase
98 #define lm_rwt som_write
99 #define lm_ld som_dynamic
100 #define lm_lpd som_spd
102 #define link_dynamic_2 section_dispatch_table
103 #define ld_loaded sdt_loaded
104 #define ld_need sdt_sods
105 #define ld_rules sdt_filler1
106 #define ld_got sdt_got
107 #define ld_plt sdt_plt
108 #define ld_rel sdt_rel
109 #define ld_hash sdt_hash
110 #define ld_stab sdt_nzlist
111 #define ld_stab_hash sdt_filler2
112 #define ld_buckets sdt_buckets
113 #define ld_symbols sdt_strings
114 #define ld_symb_size sdt_str_sz
115 #define ld_text sdt_text_sz
116 #define ld_plt_sz sdt_plt_sz
118 #define rtc_symb rt_symbol
120 #define rtc_next rt_next
122 #define ld_debug so_debug
123 #define ldd_version dd_version
124 #define ldd_in_debugger dd_in_debugger
125 #define ldd_sym_loaded dd_sym_loaded
126 #define ldd_bp_addr dd_bpt_addr
127 #define ldd_bp_inst dd_bpt_shadow
130 #define link_dynamic _dynamic
131 #define ld_version d_version
136 #endif /* nm-fbsd.h */
This page took 0.031834 seconds and 4 git commands to generate.