Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Native-dependent definitions for NetBSD. |
c4093a6a | 2 | Copyright 1994, 1996, 1999 Free Software Foundation, Inc. |
c906108c | 3 | |
c5aa993b | 4 | This file is part of GDB. |
c906108c | 5 | |
c5aa993b JM |
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. | |
c906108c | 10 | |
c5aa993b JM |
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. | |
c906108c | 15 | |
c5aa993b JM |
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. */ | |
c906108c | 20 | |
c906108c SS |
21 | #define PTRACE_ARG3_TYPE char* |
22 | ||
23 | #define FETCH_INFERIOR_REGISTERS | |
24 | ||
25 | #define ATTACH_DETACH | |
26 | ||
c5aa993b | 27 | #include "solib.h" /* Support for shared libraries. */ |
c4093a6a JM |
28 | #if defined (SVR4_SHARED_LIBS) |
29 | #include "elf/common.h" /* Additional ELF shared library info. */ | |
30 | #endif | |
31 | ||
32 | #if !defined (SVR4_SHARED_LIBS) | |
c906108c SS |
33 | |
34 | /* make structure definitions match up with those expected in solib.c */ | |
35 | #define link_object sod | |
36 | #define lo_name sod_name | |
37 | #define lo_library sod_library | |
38 | #define lo_unused sod_reserved | |
39 | #define lo_major sod_major | |
40 | #define lo_minor sod_minor | |
41 | #define lo_next sod_next | |
42 | ||
43 | #define link_map so_map | |
44 | #define lm_addr som_addr | |
45 | #define lm_name som_path | |
46 | #define lm_next som_next | |
47 | #define lm_lop som_sod | |
48 | #define lm_lob som_sodbase | |
49 | #define lm_rwt som_write | |
50 | #define lm_ld som_dynamic | |
51 | #define lm_lpd som_spd | |
52 | ||
53 | #define link_dynamic_2 section_dispatch_table | |
54 | #define ld_loaded sdt_loaded | |
55 | #define ld_need sdt_sods | |
56 | #define ld_rules sdt_filler1 | |
57 | #define ld_got sdt_got | |
58 | #define ld_plt sdt_plt | |
59 | #define ld_rel sdt_rel | |
60 | #define ld_hash sdt_hash | |
61 | #define ld_stab sdt_nzlist | |
62 | #define ld_stab_hash sdt_filler2 | |
63 | #define ld_buckets sdt_buckets | |
64 | #define ld_symbols sdt_strings | |
65 | #define ld_symb_size sdt_str_sz | |
66 | #define ld_text sdt_text_sz | |
67 | #define ld_plt_sz sdt_plt_sz | |
68 | ||
69 | #define rtc_symb rt_symbol | |
70 | #define rtc_sp rt_sp | |
71 | #define rtc_next rt_next | |
72 | ||
73 | #define ld_debug so_debug | |
74 | #define ldd_version dd_version | |
75 | #define ldd_in_debugger dd_in_debugger | |
76 | #define ldd_sym_loaded dd_sym_loaded | |
77 | #define ldd_bp_addr dd_bpt_addr | |
78 | #define ldd_bp_inst dd_bpt_shadow | |
79 | #define ldd_cp dd_cc | |
80 | ||
81 | #define link_dynamic _dynamic | |
82 | #define ld_version d_version | |
83 | #define ldd d_debug | |
84 | #define ld_un d_un | |
85 | #define ld_2 d_sdt | |
c4093a6a JM |
86 | |
87 | #endif |