]>
Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Native-dependent definitions for LynxOS. |
b6ba6518 KB |
2 | Copyright 1993, 1994, 1995, 1996, 1999, 2000 |
3 | Free Software Foundation, Inc. | |
c906108c | 4 | |
c5aa993b | 5 | This file is part of GDB. |
c906108c | 6 | |
c5aa993b JM |
7 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | |
9 | the Free Software Foundation; either version 2 of the License, or | |
10 | (at your option) any later version. | |
c906108c | 11 | |
c5aa993b JM |
12 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
15 | GNU General Public License for more details. | |
c906108c | 16 | |
c5aa993b JM |
17 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software | |
19 | Foundation, Inc., 59 Temple Place - Suite 330, | |
20 | Boston, MA 02111-1307, USA. */ | |
c906108c SS |
21 | |
22 | #ifndef NM_LYNX_H | |
23 | #define NM_LYNX_H | |
24 | ||
25 | #include <sys/conf.h> | |
26 | #include <sys/kernel.h> | |
27 | /* sys/kernel.h should define this, but doesn't always, sigh. */ | |
28 | #ifndef __LYNXOS | |
29 | #define __LYNXOS | |
30 | #endif | |
31 | #include <sys/mem.h> | |
32 | #include <sys/signal.h> | |
33 | #include <sys/time.h> | |
34 | #include <sys/resource.h> | |
35 | #include <sys/itimer.h> | |
36 | #include <sys/file.h> | |
37 | #include <sys/proc.h> | |
38 | #include "gdbthread.h" | |
39 | ||
40 | /* This is the amount to subtract from u.u_ar0 to get the offset in | |
41 | the core file of the register values. */ | |
42 | ||
43 | #define KERNEL_U_ADDR USRSTACK | |
44 | ||
c5aa993b | 45 | #undef FLOAT_INFO /* No float info yet */ |
c906108c SS |
46 | |
47 | /* As of LynxOS 2.2.2 (beta 8/15/94), this is int. Previous versions seem to | |
48 | have had no prototype, so I'm not sure why GDB used to define this to | |
49 | char *. */ | |
50 | #define PTRACE_ARG3_TYPE int | |
51 | ||
52 | /* Override copies of {fetch,store}_inferior_registers in infptrace.c. */ | |
53 | ||
54 | #define FETCH_INFERIOR_REGISTERS | |
55 | ||
56 | /* Thread ID of stopped thread. */ | |
57 | ||
58 | #define WIFTID(x) (((union wait *)&x)->w_tid) | |
59 | ||
60 | /* Override child_wait in inftarg.c */ | |
61 | ||
62 | #define CHILD_WAIT | |
63 | ||
64 | /* Override child_resume in infptrace.c */ | |
65 | ||
66 | #define CHILD_RESUME | |
67 | ||
68 | /* Override child_thread_alive in intarg.c */ | |
69 | ||
70 | #define CHILD_THREAD_ALIVE | |
71 | ||
72 | #include "target.h" | |
73 | ||
a14ed312 | 74 | extern int child_wait (int pid, struct target_waitstatus *status); |
c906108c SS |
75 | |
76 | /* Lynx needs a special definition of this so that we can | |
e26cc349 | 77 | print out the pid and thread number seperately. */ |
c906108c | 78 | |
c906108c | 79 | |
ed9a39eb JM |
80 | /* override child_pid_to_str in inftarg.c */ |
81 | #define CHILD_PID_TO_STR | |
a14ed312 | 82 | extern char *lynx_pid_to_str (int pid); |
c906108c SS |
83 | |
84 | #endif /* NM_LYNX_H */ |