Phase 1 of the ptid_t changes.
[deliverable/binutils-gdb.git] / gdb / config / i386 / nm-ptx4.h
CommitLineData
c906108c
SS
1/* Definitions to make GDB run on a Sequent Symmetry under ptx
2 with Weitek 1167 and i387 support.
b6ba6518
KB
3 Copyright 1986, 1987, 1989, 1992, 1994, 1996, 2000
4 Free Software 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 22
f88e2c52
AC
23#include "regcache.h"
24
c906108c
SS
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
44struct target_waitstatus;
39f77062 45extern ptid_t child_wait (ptid_t, struct target_waitstatus *);
c906108c
SS
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 */
c5aa993b 56/*#define ATTACH_DETACH 1 */
c906108c
SS
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)
This page took 0.0931 seconds and 4 git commands to generate.