* NEWS (New native configurations): Mention NetBSD/vax.
[deliverable/binutils-gdb.git] / gdb / xcoffsolib.h
CommitLineData
c906108c 1/* Data structures for RS/6000 shared libraries, for GDB.
b6ba6518
KB
2 Copyright 1991, 1992, 1993, 1994, 1996, 1997, 2000
3 Free Software Foundation, Inc.
c906108c 4
c5aa993b 5 This file is part of GDB.
c906108c 6
c5aa993b
JM
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.
c906108c 11
c5aa993b
JM
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.
c906108c 16
c5aa993b
JM
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/* The vmap struct is used to describe the virtual address space of
23 the target we are manipulating. The first entry is always the "exec"
24 file. Subsequent entries correspond to other objects that are
25 mapped into the address space of a process created from the "exec" file.
26 These are either in response to exec()ing the file, in which case all
27 shared libraries are loaded, or a "load" system call, followed by the
28 user's issuance of a "load" command. */
29
17732724
AC
30#ifndef XCOFFSOLIB_H
31#define XCOFFSOLIB_H
32
c5aa993b
JM
33struct vmap
34 {
35 struct vmap *nxt; /* ptr to next in chain */
36 bfd *bfd; /* BFD for mappable object library */
37 char *name; /* ptr to object file name */
38 char *member; /* ptr to member name */
39 CORE_ADDR tstart; /* virtual addr where member is mapped */
40 CORE_ADDR tend; /* virtual upper bound of member */
41 CORE_ADDR tvma; /* virtual addr of text section in object file */
42 CORE_ADDR toffs; /* offset of text section in object file */
43 CORE_ADDR dstart; /* virtual address of data start */
44 CORE_ADDR dend; /* virtual address of data end */
45 CORE_ADDR dvma; /* virtual addr of data section in object file */
46
47 /* This is NULL for the exec-file. */
48 struct objfile *objfile;
49
50 unsigned loaded:1; /* True if symbols are loaded */
51 unsigned padding:15;
52 };
53
54
55struct vmap_and_bfd
56 {
57 bfd *pbfd;
58 struct vmap *pvmap;
59 };
c906108c
SS
60
61extern struct vmap *vmap;
62
63f58cc5
PS
63/* Add symbols for a vmap. */
64extern int vmap_add_symbols (struct vmap *vp);
17732724
AC
65
66#endif
This page took 0.455907 seconds and 4 git commands to generate.