]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/xcoffsolib.h
Update years in copyright notice for the GDB files.
[thirdparty/binutils-gdb.git] / gdb / xcoffsolib.h
1 /* Data structures for RS/6000 shared libraries, for GDB.
2 Copyright (C) 1991-2013 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
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 3 of the License, or
9 (at your option) any later version.
10
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.
15
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>. */
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
27 #ifndef XCOFFSOLIB_H
28 #define XCOFFSOLIB_H
29
30 struct 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 */
38 CORE_ADDR tvma; /* virtual addr of text section in
39 object file */
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 */
43 CORE_ADDR dvma; /* virtual addr of data section in
44 object file */
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
54 struct vmap_and_bfd
55 {
56 bfd *pbfd;
57 struct vmap *pvmap;
58 };
59
60 extern struct vmap *vmap;
61
62 /* Add symbols for a vmap. */
63 extern int vmap_add_symbols (struct vmap *vp);
64
65 #endif