]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/config/rs6000/nm-rs6000.h
run copyright.sh for 2011.
[thirdparty/binutils-gdb.git] / gdb / config / rs6000 / nm-rs6000.h
CommitLineData
c906108c 1/* IBM RS/6000 native-dependent macros for GDB, the GNU debugger.
9b254dd1 2 Copyright 1986, 1987, 1989, 1991, 1992, 1994, 1996, 1999, 2000, 2001, 2007,
7b6bb8da 3 2008, 2009, 2010, 2011 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
a9762ec7 9 the Free Software Foundation; either version 3 of the License, or
c5aa993b
JM
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
a9762ec7 18 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c 19
c906108c
SS
20/* When a child process is just starting, we sneak in and relocate
21 the symbol table (and other stuff) after the dynamic linker has
22 figured out where they go. */
23
24#define SOLIB_CREATE_INFERIOR_HOOK(PID) \
25 do { \
26 xcoff_relocate_symtab (PID); \
27 } while (0)
28
29/* When a target process or core-file has been attached, we sneak in
30 and figure out where the shared libraries have got to. */
31
990f9fe3 32#define SOLIB_ADD(a, b, c, d) \
39f77062 33 if (PIDGET (inferior_ptid)) \
c906108c 34 /* Attach to process. */ \
39f77062 35 xcoff_relocate_symtab (PIDGET (inferior_ptid)); \
c906108c
SS
36 else \
37 /* Core file. */ \
38 xcoff_relocate_core (c);
39
a14ed312 40extern void xcoff_relocate_symtab (unsigned int);
c906108c 41struct target_ops;
a14ed312 42extern void xcoff_relocate_core (struct target_ops *);
c906108c 43
a8079a9b 44/* If ADDR lies in a shared library, return its name. */
63f58cc5 45
a8079a9b
PS
46#define PC_SOLIB(PC) xcoff_solib_address(PC)
47extern char *xcoff_solib_address (CORE_ADDR);
63f58cc5 48
52d16ba8
AC
49/* Flag for machine-specific stuff in shared files. FIXME */
50#define DEPRECATED_IBM6000_TARGET
6f7f3f0d 51