]>
Commit | Line | Data |
---|---|---|
c906108c SS |
1 | /* Native-dependent definitions for LynxOS. |
2 | Copyright 1993 Free Software Foundation, Inc. | |
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 SS |
20 | |
21 | #ifndef NM_LYNX_H | |
22 | #define NM_LYNX_H | |
23 | ||
24 | #include <sys/conf.h> | |
25 | #include <sys/kernel.h> | |
26 | /* sys/kernel.h should define this, but doesn't always, sigh. */ | |
27 | #ifndef __LYNXOS | |
28 | #define __LYNXOS | |
29 | #endif | |
30 | #include <sys/mem.h> | |
31 | #include <sys/signal.h> | |
32 | #include <sys/time.h> | |
33 | #include <sys/resource.h> | |
34 | #include <sys/itimer.h> | |
35 | #include <sys/file.h> | |
36 | #include <sys/proc.h> | |
37 | #include "gdbthread.h" | |
38 | ||
39 | /* This is the amount to subtract from u.u_ar0 to get the offset in | |
40 | the core file of the register values. */ | |
41 | ||
42 | #define KERNEL_U_ADDR USRSTACK | |
43 | ||
c5aa993b | 44 | #undef FLOAT_INFO /* No float info yet */ |
c906108c SS |
45 | |
46 | /* As of LynxOS 2.2.2 (beta 8/15/94), this is int. Previous versions seem to | |
47 | have had no prototype, so I'm not sure why GDB used to define this to | |
48 | char *. */ | |
49 | #define PTRACE_ARG3_TYPE int | |
50 | ||
51 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ | |
52 | ||
53 | #define FETCH_INFERIOR_REGISTERS | |
54 | ||
55 | /* Thread ID of stopped thread. */ | |
56 | ||
57 | #define WIFTID(x) (((union wait *)&x)->w_tid) | |
58 | ||
59 | /* Override child_wait in inftarg.c */ | |
60 | ||
61 | #define CHILD_WAIT | |
62 | ||
63 | /* Override child_resume in infptrace.c */ | |
64 | ||
65 | #define CHILD_RESUME | |
66 | ||
67 | /* Override child_thread_alive in intarg.c */ | |
68 | ||
69 | #define CHILD_THREAD_ALIVE | |
70 | ||
71 | #include "target.h" | |
72 | ||
c5aa993b | 73 | extern int child_wait PARAMS ((int pid, struct target_waitstatus * status)); |
c906108c SS |
74 | |
75 | /* Lynx needs a special definition of this so that we can | |
76 | print out the pid and thread number seperatly. */ | |
77 | ||
78 | #undef target_pid_to_str | |
79 | ||
80 | #define target_pid_to_str(PID) lynx_pid_to_str (PID) | |
81 | ||
82 | extern char *lynx_pid_to_str PARAMS ((int pid)); | |
83 | ||
84 | #endif /* NM_LYNX_H */ |