OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-6.8/] [gdb/] [xcoffsolib.h] - Blame information for rev 857

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 24 jeremybenn
/* Data structures for RS/6000 shared libraries, for GDB.
2
   Copyright (C) 1991, 1992, 1993, 1994, 1996, 1997, 2000, 2007, 2008
3
   Free Software Foundation, Inc.
4
 
5
   This file is part of GDB.
6
 
7
   This program is free software; you can redistribute it and/or modify
8
   it under the terms of the GNU General Public License as published by
9
   the Free Software Foundation; either version 3 of the License, or
10
   (at your option) any later version.
11
 
12
   This program is distributed in the hope that it will be useful,
13
   but WITHOUT ANY WARRANTY; without even the implied warranty of
14
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
   GNU General Public License for more details.
16
 
17
   You should have received a copy of the GNU General Public License
18
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
 
20
/* The vmap struct is used to describe the virtual address space of
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
26
   user's issuance of a "load" command.  */
27
 
28
#ifndef XCOFFSOLIB_H
29
#define XCOFFSOLIB_H
30
 
31
struct vmap
32
  {
33
    struct vmap *nxt;           /* ptr to next in chain                 */
34
    bfd *bfd;                   /* BFD for mappable object library      */
35
    char *name;                 /* ptr to object file name              */
36
    char *member;               /* ptr to member name                   */
37
    CORE_ADDR tstart;           /* virtual addr where member is mapped  */
38
    CORE_ADDR tend;             /* virtual upper bound of member        */
39
    CORE_ADDR tvma;             /* virtual addr of text section in 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 object file */
44
 
45
    /* This is NULL for the exec-file.  */
46
    struct objfile *objfile;
47
 
48
    unsigned loaded:1;          /* True if symbols are loaded           */
49
    unsigned padding:15;
50
  };
51
 
52
 
53
struct vmap_and_bfd
54
  {
55
    bfd *pbfd;
56
    struct vmap *pvmap;
57
  };
58
 
59
extern struct vmap *vmap;
60
 
61
/* Add symbols for a vmap.  */
62
extern int vmap_add_symbols (struct vmap *vp);
63
 
64
#endif

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.