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