OSDN Git Service

* rs6000-tdep.c: Changes throughout for multi-arch 64-bit
[pf3gnuchains/pf3gnuchains4x.git] / gdb / config / rs6000 / nm-rs6000.h
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
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.  */
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
32 /* Override child_xfer_memory in infptrace.c. */
33
34 #define CHILD_XFER_MEMORY
35
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
56 extern void xcoff_relocate_symtab (unsigned int);
57 struct target_ops;
58 extern void xcoff_relocate_core (struct target_ops *);
59
60 /* Return sizeof user struct to callers in less machine dependent routines */
61
62 #define KERNEL_U_SIZE kernel_u_size()
63 extern int kernel_u_size (void);