* rs6000-tdep.c: Changes throughout for multi-arch 64-bit
[deliverable/binutils-gdb.git] / gdb / config / rs6000 / nm-rs6000.h
CommitLineData
c906108c
SS
1/* IBM RS/6000 native-dependent macros for GDB, the GNU debugger.
2 Copyright 1986, 1987, 1989, 1991, 1992, 1994 Free Software Foundation, Inc.
3
c5aa993b
JM
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
10
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
15
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 59 Temple Place - Suite 330,
19 Boston, MA 02111-1307, USA. */
c906108c
SS
20
21/* Do implement the attach and detach commands. */
22
23#define ATTACH_DETACH
24
25#define PTRACE_ATTACH PT_ATTACH
26#define PTRACE_DETACH PT_DETACH
27
28/* Override copies of {fetch,store}_inferior_registers in infptrace.c. */
29
30#define FETCH_INFERIOR_REGISTERS
31
7a78ae4e
ND
32/* Override child_xfer_memory in infptrace.c. */
33
34#define CHILD_XFER_MEMORY
35
c906108c
SS
36/* When a child process is just starting, we sneak in and relocate
37 the symbol table (and other stuff) after the dynamic linker has
38 figured out where they go. */
39
40#define SOLIB_CREATE_INFERIOR_HOOK(PID) \
41 do { \
42 xcoff_relocate_symtab (PID); \
43 } while (0)
44
45/* When a target process or core-file has been attached, we sneak in
46 and figure out where the shared libraries have got to. */
47
48#define SOLIB_ADD(a, b, c) \
49 if (inferior_pid) \
50 /* Attach to process. */ \
51 xcoff_relocate_symtab (inferior_pid); \
52 else \
53 /* Core file. */ \
54 xcoff_relocate_core (c);
55
a14ed312 56extern void xcoff_relocate_symtab (unsigned int);
c906108c 57struct target_ops;
a14ed312 58extern void xcoff_relocate_core (struct target_ops *);
c906108c
SS
59
60/* Return sizeof user struct to callers in less machine dependent routines */
61
62#define KERNEL_U_SIZE kernel_u_size()
a14ed312 63extern int kernel_u_size (void);
This page took 0.058727 seconds and 4 git commands to generate.