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

Subversion Repositories or1k

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
/* Definitions to make GDB run on a Sequent Symmetry under ptx
2
   with Weitek 1167 and i387 support.
3
   Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000
4
   Free Software Foundation, Inc.
5
 
6
   This file is part of GDB.
7
 
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.
12
 
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.
17
 
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.  */
22
 
23
#include "regcache.h"
24
 
25
#include "nm-sysv4.h"
26
 
27
#undef USE_PROC_FS
28
 
29
#include "nm-symmetry.h"
30
 
31
#define PTRACE_READ_REGS(pid,regaddr) mptrace (XPT_RREGS, (pid), (regaddr), 0)
32
#define PTRACE_WRITE_REGS(pid,regaddr) \
33
  mptrace (XPT_WREGS, (pid), (regaddr), 0)
34
 
35
/* Override copies of {fetch,store}_inferior_registers in infptrace.c.  */
36
 
37
#define FETCH_INFERIOR_REGISTERS
38
 
39
/* We must fetch all the regs before storing, since we store all at once.  */
40
 
41
#define CHILD_PREPARE_TO_STORE() read_register_bytes (0, NULL, REGISTER_BYTES)
42
 
43
#define CHILD_WAIT
44
struct target_waitstatus;
45
extern ptid_t child_wait (ptid_t, struct target_waitstatus *);
46
 
47
/*
48
 * ptx does attach as of ptx version 2.1.  Prior to that, the interface
49
 * exists but does not work.
50
 *
51
 * FIXME: Using attach/detach requires using the ptx MPDEBUGGER
52
 * interface.  There are still problems with that, so for now don't
53
 * enable attach/detach.  If you turn it on anyway, it will mostly
54
 * work, but has a number of bugs. -fubar, 2/94.
55
 */
56
/*#define ATTACH_DETACH 1 */
57
#undef ATTACH_DETACH
58
#define PTRACE_ATTACH XPT_DEBUG
59
#define PTRACE_DETACH XPT_UNDEBUG
60
/*
61
 * The following drivel is needed because there are two ptrace-ish
62
 * calls on ptx: ptrace() and mptrace(), each of which does about half
63
 * of the ptrace functions.
64
 */
65
#define PTRACE_ATTACH_CALL(pid)  ptx_do_attach(pid)
66
#define PTRACE_DETACH_CALL(pid, signo) ptx_do_detach(pid, signo)

powered by: WebSVN 2.1.0

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