]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/xcoffsolib.h
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / gdb / xcoffsolib.h
CommitLineData
c906108c 1/* Data structures for RS/6000 shared libraries, for GDB.
8acc9f48 2 Copyright (C) 1991-2013 Free Software Foundation, Inc.
c906108c 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
a9762ec7 8 the Free Software Foundation; either version 3 of the License, or
c5aa993b 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 16 You should have received a copy of the GNU General Public License
a9762ec7 17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
c906108c
SS
18
19/* The vmap struct is used to describe the virtual address space of
20 the target we are manipulating. The first entry is always the "exec"
21 file. Subsequent entries correspond to other objects that are
22 mapped into the address space of a process created from the "exec" file.
23 These are either in response to exec()ing the file, in which case all
24 shared libraries are loaded, or a "load" system call, followed by the
25 user's issuance of a "load" command. */
26
17732724
AC
27#ifndef XCOFFSOLIB_H
28#define XCOFFSOLIB_H
29
c5aa993b
JM
30struct vmap
31 {
32 struct vmap *nxt; /* ptr to next in chain */
33 bfd *bfd; /* BFD for mappable object library */
34 char *name; /* ptr to object file name */
35 char *member; /* ptr to member name */
36 CORE_ADDR tstart; /* virtual addr where member is mapped */
37 CORE_ADDR tend; /* virtual upper bound of member */
3e43a32a
MS
38 CORE_ADDR tvma; /* virtual addr of text section in
39 object file */
c5aa993b
JM
40 CORE_ADDR toffs; /* offset of text section in object file */
41 CORE_ADDR dstart; /* virtual address of data start */
42 CORE_ADDR dend; /* virtual address of data end */
3e43a32a
MS
43 CORE_ADDR dvma; /* virtual addr of data section in
44 object file */
c5aa993b
JM
45
46 /* This is NULL for the exec-file. */
47 struct objfile *objfile;
48
49 unsigned loaded:1; /* True if symbols are loaded */
50 unsigned padding:15;
51 };
52
53
54struct vmap_and_bfd
55 {
56 bfd *pbfd;
57 struct vmap *pvmap;
58 };
c906108c
SS
59
60extern struct vmap *vmap;
61
63f58cc5
PS
62/* Add symbols for a vmap. */
63extern int vmap_add_symbols (struct vmap *vp);
17732724
AC
64
65#endif