OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [gdb/] [config/] [nm-lynx.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Native-dependent definitions for LynxOS.
2
   Copyright 1993, 1994, 1995, 1996, 1999, 2000
3
   Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
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.
11
 
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.
16
 
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.  */
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
 
45
#undef FLOAT_INFO               /* No float info yet */
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
 
74
extern ptid_t child_wait (ptid_t ptid,
75
                                struct target_waitstatus *status);
76
 
77
/* Lynx needs a special definition of this so that we can
78
   print out the pid and thread number seperately.  */
79
 
80
 
81
/* override child_pid_to_str in inftarg.c */
82
#define CHILD_PID_TO_STR
83
extern char *lynx_pid_to_str (ptid_t ptid);
84
 
85
#endif /* NM_LYNX_H */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.