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