Commit | Line | Data |
---|---|---|
1eeba686 PB |
1 | /* |
2 | the vmap struct is used to describe the virtual address space of | |
3 | the target we are manipulating. The first entry is always the "exec" | |
4 | file. Subsequent entries correspond to other objects that are | |
5 | mapped into the address space of a process created from the "exec" file. | |
6 | These are either in response to exec()ing the file, in which case all | |
7 | shared libraries are loaded, or a "load" system call, followed by the | |
8 | user's issuance of a "load" command. */ | |
9 | ||
10 | struct vmap { | |
11 | struct vmap *nxt; /* ^ to next in chain */ | |
12 | bfd *bfd; /* BFD for mappable object library */ | |
13 | char *name; /* ^ to object file name */ | |
14 | char *member; /* ^ to member name */ | |
15 | CORE_ADDR tstart; /* virtual addr where member is mapped */ | |
16 | CORE_ADDR tend; /* virtual upper bound of member */ | |
17 | CORE_ADDR tadj; /* heuristically derived adjustment */ | |
18 | CORE_ADDR dstart; /* virtual address of data start */ | |
19 | CORE_ADDR dend; /* vitrual address of data end */ | |
20 | ||
21 | CORE_ADDR ostart; /* objext start ??? */ | |
22 | unsigned loaded:1; /* True if symbols are loaded */ | |
23 | unsigned reloced:1; /* True, if symbols relocated */ | |
24 | unsigned padding:14; | |
25 | }; | |
26 | ||
27 | ||
28 | struct vmap_and_bfd { | |
29 | bfd *pbfd; | |
30 | struct vmap *pvmap; | |
31 | }; | |
32 | ||
33 | extern struct vmap *vmap; |