OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [config/] [i386/] [nm-fbsd.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 106 markom
/* Native-dependent definitions for Intel 386 running BSD Unix, for GDB.
2
   Copyright 1986, 1987, 1989, 1992, 1996 Free Software Foundation, Inc.
3
 
4
   This file is part of GDB.
5
 
6
   This program is free software; you can redistribute it and/or modify
7
   it under the terms of the GNU General Public License as published by
8
   the Free Software Foundation; either version 2 of the License, or
9
   (at your option) any later version.
10
 
11
   This program is distributed in the hope that it will be useful,
12
   but WITHOUT ANY WARRANTY; without even the implied warranty of
13
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
   GNU General Public License for more details.
15
 
16
   You should have received a copy of the GNU General Public License
17
   along with this program; if not, write to the Free Software
18
   Foundation, Inc., 59 Temple Place - Suite 330,
19
   Boston, MA 02111-1307, USA.  */
20
 
21
#ifndef NM_FREEBSD_H
22
#define NM_FREEBSD_H
23
 
24
/* Be shared lib aware */
25
#include "solib.h"
26
 
27
/* This is the amount to subtract from u.u_ar0
28
   to get the offset in the core file of the register values.  */
29
 
30
#include <machine/vmparam.h>
31
#define KERNEL_U_ADDR USRSTACK
32
 
33
#define REGISTER_U_ADDR(addr, blockend, regno) \
34
        (addr) = i386_register_u_addr ((blockend),(regno));
35
 
36
extern int
37
i386_register_u_addr PARAMS ((int, int));
38
 
39
#define PTRACE_ARG3_TYPE char*
40
 
41
/* make structure definitions match up with those expected in solib.c */
42
#define link_object     sod
43
#define lo_name         sod_name
44
#define lo_library      sod_library
45
#define lo_unused       sod_reserved
46
#define lo_major        sod_major
47
#define lo_minor        sod_minor
48
#define lo_next         sod_next
49
 
50
#define link_map        so_map
51
#define lm_addr         som_addr
52
#define lm_name         som_path
53
#define lm_next         som_next
54
#define lm_lop          som_sod
55
#define lm_lob          som_sodbase
56
#define lm_rwt          som_write
57
#define lm_ld           som_dynamic
58
#define lm_lpd          som_spd
59
 
60
#define link_dynamic_2  section_dispatch_table
61
#define ld_loaded       sdt_loaded
62
#define ld_need         sdt_sods
63
#define ld_rules        sdt_filler1
64
#define ld_got          sdt_got
65
#define ld_plt          sdt_plt
66
#define ld_rel          sdt_rel
67
#define ld_hash         sdt_hash
68
#define ld_stab         sdt_nzlist
69
#define ld_stab_hash    sdt_filler2
70
#define ld_buckets      sdt_buckets
71
#define ld_symbols      sdt_strings
72
#define ld_symb_size    sdt_str_sz
73
#define ld_text         sdt_text_sz
74
#define ld_plt_sz       sdt_plt_sz
75
 
76
#define rtc_symb        rt_symbol
77
#define rtc_sp          rt_sp
78
#define rtc_next        rt_next
79
 
80
#define ld_debug        so_debug
81
#define ldd_version     dd_version
82
#define ldd_in_debugger dd_in_debugger
83
#define ldd_sym_loaded  dd_sym_loaded
84
#define ldd_bp_addr     dd_bpt_addr
85
#define ldd_bp_inst     dd_bpt_shadow
86
#define ldd_cp          dd_cc
87
 
88
#define link_dynamic    _dynamic
89
#define ld_version      d_version
90
#define ldd             d_debug
91
#define ld_un           d_un
92
#define ld_2            d_sdt
93
 
94
/* Return sizeof user struct to callers in less machine dependent routines */
95
 
96
#define KERNEL_U_SIZE kernel_u_size()
97
extern int kernel_u_size PARAMS ((void));
98
 
99
#endif /* NM_FREEBSD_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.