]>
Commit | Line | Data |
---|---|---|
5140562f | 1 | /* Data structures for RS/6000 shared libraries, for GDB. |
0c4b30ea | 2 | Copyright 1991, 1992, 1994 Free Software Foundation, Inc. |
5140562f JG |
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 2 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, write to the Free Software | |
18 | Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ | |
19 | ||
0c4b30ea | 20 | /* The vmap struct is used to describe the virtual address space of |
1eeba686 PB |
21 | the target we are manipulating. The first entry is always the "exec" |
22 | file. Subsequent entries correspond to other objects that are | |
23 | mapped into the address space of a process created from the "exec" file. | |
24 | These are either in response to exec()ing the file, in which case all | |
25 | shared libraries are loaded, or a "load" system call, followed by the | |
0c4b30ea | 26 | user's issuance of a "load" command. */ |
1eeba686 PB |
27 | |
28 | struct vmap { | |
0c4b30ea SS |
29 | struct vmap *nxt; /* ptr to next in chain */ |
30 | bfd *bfd; /* BFD for mappable object library */ | |
31 | char *name; /* ptr to object file name */ | |
32 | char *member; /* ptr to member name */ | |
33 | CORE_ADDR tstart; /* virtual addr where member is mapped */ | |
34 | CORE_ADDR tend; /* virtual upper bound of member */ | |
35 | CORE_ADDR tadj; /* heuristically derived adjustment */ | |
36 | CORE_ADDR dstart; /* virtual address of data start */ | |
37 | CORE_ADDR dend; /* vitrual address of data end */ | |
38 | ||
39 | /* This is NULL for the exec-file. */ | |
40 | struct objfile *objfile; | |
41 | ||
42 | unsigned loaded:1; /* True if symbols are loaded */ | |
43 | unsigned padding:15; | |
1eeba686 PB |
44 | }; |
45 | ||
46 | ||
47 | struct vmap_and_bfd { | |
48 | bfd *pbfd; | |
49 | struct vmap *pvmap; | |
50 | }; | |
51 | ||
52 | extern struct vmap *vmap; | |
2aefe6e4 JK |
53 | |
54 | void | |
55 | add_text_to_loadinfo PARAMS ((CORE_ADDR textaddr, CORE_ADDR dataaddr)); | |
56 |