2003-03-27 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / config / nm-lynx.h
CommitLineData
c906108c 1/* Native-dependent definitions for LynxOS.
31a85ea2
AC
2
3 Copyright 1993, 1994, 1995, 1996, 1999, 2000, 2003 Free Software
4 Foundation, Inc.
c906108c 5
c5aa993b 6 This file is part of GDB.
c906108c 7
c5aa993b
JM
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.
c906108c 12
c5aa993b
JM
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.
c906108c 17
c5aa993b
JM
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. */
c906108c
SS
22
23#ifndef NM_LYNX_H
24#define NM_LYNX_H
25
26#include <sys/conf.h>
27#include <sys/kernel.h>
28/* sys/kernel.h should define this, but doesn't always, sigh. */
29#ifndef __LYNXOS
30#define __LYNXOS
31#endif
32#include <sys/mem.h>
33#include <sys/signal.h>
34#include <sys/time.h>
35#include <sys/resource.h>
36#include <sys/itimer.h>
37#include <sys/file.h>
38#include <sys/proc.h>
39#include "gdbthread.h"
40
41/* This is the amount to subtract from u.u_ar0 to get the offset in
42 the core file of the register values. */
43
44#define KERNEL_U_ADDR USRSTACK
45
c906108c
SS
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
39f77062
KB
73extern ptid_t child_wait (ptid_t ptid,
74 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
39f77062 82extern char *lynx_pid_to_str (ptid_t ptid);
c906108c
SS
83
84#endif /* NM_LYNX_H */
This page took 0.218053 seconds and 4 git commands to generate.