Add our READMEs
[dragonfly.git] / gnu / usr.bin / gdb / libgdb / nm-dragonfly.h
1 /* $DragonFly: src/gnu/usr.bin/gdb/libgdb/Attic/nm-dragonfly.h,v 1.1 2007/02/26 13:14:04 corecode Exp $ */
2 /* Native-dependent definitions for FreeBSD/i386.
3
4    Copyright 1986, 1987, 1989, 1992, 1994, 1996, 1997, 2000, 2001, 2004
5    Free Software Foundation, Inc.
6
7    This file is part of GDB.
8
9    This program is free software; you can redistribute it and/or modify
10    it under the terms of the GNU General Public License as published by
11    the Free Software Foundation; either version 2 of the License, or
12    (at your option) any later version.
13
14    This program is distributed in the hope that it will be useful,
15    but WITHOUT ANY WARRANTY; without even the implied warranty of
16    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17    GNU General Public License for more details.
18
19    You should have received a copy of the GNU General Public License
20    along with this program; if not, write to the Free Software
21    Foundation, Inc., 59 Temple Place - Suite 330,
22    Boston, MA 02111-1307, USA.  */
23
24 #ifndef NM_DRAGONFLY_H
25 #define NM_DRAGONFLY_H
26
27 #ifdef HAVE_PT_GETDBREGS
28 #define I386_USE_GENERIC_WATCHPOINTS
29 #endif
30
31 #include "i386/nm-i386.h"
32
33 #ifdef HAVE_SYS_PARAM_H
34 #include <sys/param.h>
35 #endif
36
37 /* Provide access to the i386 hardware debugging registers.  */
38
39 #define I386_DR_LOW_SET_CONTROL(control) \
40   i386bsd_dr_set_control (control)
41 extern void i386bsd_dr_set_control (unsigned long control);
42
43 #define I386_DR_LOW_SET_ADDR(regnum, addr) \
44   i386bsd_dr_set_addr (regnum, addr)
45 extern void i386bsd_dr_set_addr (int regnum, CORE_ADDR addr);
46
47 #define I386_DR_LOW_RESET_ADDR(regnum) \
48   i386bsd_dr_reset_addr (regnum)
49 extern void i386bsd_dr_reset_addr (int regnum);
50
51 #define I386_DR_LOW_GET_STATUS() \
52   i386bsd_dr_get_status ()
53 extern unsigned long i386bsd_dr_get_status (void);
54 \f
55
56 /* Get generic BSD native definitions.  */
57 #include "config/nm-bsd.h"
58
59 /* Override child_resume in `infptrace.c' to work around a kernel bug.  */
60 #define CHILD_RESUME
61
62 /* Override child_pid_to_exec_file in 'inftarg.c'.  */
63 #define CHILD_PID_TO_EXEC_FILE
64 \f
65
66 /* Shared library support.  */
67
68 #include "solib.h"
69
70 /* Make structure definitions match up with those expected in
71    `solib-sunos.c'.  */
72
73 #define link_object     sod
74 #define lo_name         sod_name
75 #define lo_library      sod_library
76 #define lo_unused       sod_reserved
77 #define lo_major        sod_major
78 #define lo_minor        sod_minor
79 #define lo_next         sod_next
80
81 #define link_map        so_map
82 #define lm_addr         som_addr
83 #define lm_name         som_path
84 #define lm_next         som_next
85 #define lm_lop          som_sod
86 #define lm_lob          som_sodbase
87 #define lm_rwt          som_write
88 #define lm_ld           som_dynamic
89 #define lm_lpd          som_spd
90
91 #define link_dynamic_2  section_dispatch_table
92 #define ld_loaded       sdt_loaded
93 #define ld_need         sdt_sods
94 #define ld_rules        sdt_filler1
95 #define ld_got          sdt_got
96 #define ld_plt          sdt_plt
97 #define ld_rel          sdt_rel
98 #define ld_hash         sdt_hash
99 #define ld_stab         sdt_nzlist
100 #define ld_stab_hash    sdt_filler2
101 #define ld_buckets      sdt_buckets
102 #define ld_symbols      sdt_strings
103 #define ld_symb_size    sdt_str_sz
104 #define ld_text         sdt_text_sz
105 #define ld_plt_sz       sdt_plt_sz
106
107 #define rtc_symb        rt_symbol
108 #define rtc_sp          rt_sp
109 #define rtc_next        rt_next
110
111 #define ld_debug        so_debug
112 #define ldd_version     dd_version
113 #define ldd_in_debugger dd_in_debugger
114 #define ldd_sym_loaded  dd_sym_loaded
115 #define ldd_bp_addr     dd_bpt_addr
116 #define ldd_bp_inst     dd_bpt_shadow
117 #define ldd_cp          dd_cc
118
119 #define link_dynamic    _dynamic
120 #define ld_version      d_version
121 #define ldd             d_debug
122 #define ld_un           d_un
123 #define ld_2            d_sdt
124
125 #endif /* nm-dragonfly.h */