Update/correct copyright notices.
[deliverable/binutils-gdb.git] / gdb / config / rs6000 / nm-rs6000.h
CommitLineData
c906108c 1/* IBM RS/6000 native-dependent macros for GDB, the GNU debugger.
b6ba6518 2 Copyright 1986, 1987, 1989, 1991, 1992, 1994, 1996, 1999, 2000, 2001
a8079a9b 3 Free Software Foundation, Inc.
c906108c 4
c5aa993b
JM
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. */
c906108c
SS
21
22/* Do implement the attach and detach commands. */
23
24#define ATTACH_DETACH
25
26#define PTRACE_ATTACH PT_ATTACH
27#define PTRACE_DETACH PT_DETACH
28
29/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
30
31#define FETCH_INFERIOR_REGISTERS
32
7a78ae4e
ND
33/* Override child_xfer_memory in infptrace.c. */
34
35#define CHILD_XFER_MEMORY
36
c906108c
SS
37/* When a child process is just starting, we sneak in and relocate
38 the symbol table (and other stuff) after the dynamic linker has
39 figured out where they go. */
40
41#define SOLIB_CREATE_INFERIOR_HOOK(PID) \
42 do { \
43 xcoff_relocate_symtab (PID); \
44 } while (0)
45
46/* When a target process or core-file has been attached, we sneak in
47 and figure out where the shared libraries have got to. */
48
49#define SOLIB_ADD(a, b, c) \
50 if (inferior_pid) \
51 /* Attach to process. */ \
52 xcoff_relocate_symtab (inferior_pid); \
53 else \
54 /* Core file. */ \
55 xcoff_relocate_core (c);
56
a14ed312 57extern void xcoff_relocate_symtab (unsigned int);
c906108c 58struct target_ops;
a14ed312 59extern void xcoff_relocate_core (struct target_ops *);
c906108c 60
a8079a9b 61/* If ADDR lies in a shared library, return its name. */
63f58cc5 62
a8079a9b
PS
63#define PC_SOLIB(PC) xcoff_solib_address(PC)
64extern char *xcoff_solib_address (CORE_ADDR);
63f58cc5 65
c906108c
SS
66/* Return sizeof user struct to callers in less machine dependent routines */
67
68#define KERNEL_U_SIZE kernel_u_size()
a14ed312 69extern int kernel_u_size (void);
This page took 0.082841 seconds and 4 git commands to generate.