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