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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gdb-7.1/] [gdb/] [f-lang.h] - Blame information for rev 227

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

Line No. Rev Author Line
1 227 jeremybenn
/* Fortran language support definitions for GDB, the GNU debugger.
2
 
3
   Copyright (C) 1992, 1993, 1994, 1995, 1998, 2000, 2005, 2007, 2008, 2009,
4
   2010 Free Software Foundation, Inc.
5
 
6
   Contributed by Motorola.  Adapted from the C definitions by Farooq Butt
7
   (fmbutt@engage.sps.mot.com).
8
 
9
   This file is part of GDB.
10
 
11
   This program is free software; you can redistribute it and/or modify
12
   it under the terms of the GNU General Public License as published by
13
   the Free Software Foundation; either version 3 of the License, or
14
   (at your option) any later version.
15
 
16
   This program is distributed in the hope that it will be useful,
17
   but WITHOUT ANY WARRANTY; without even the implied warranty of
18
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19
   GNU General Public License for more details.
20
 
21
   You should have received a copy of the GNU General Public License
22
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
23
 
24
extern int f_parse (void);
25
 
26
extern void f_error (char *);   /* Defined in f-exp.y */
27
 
28
extern void f_print_type (struct type *, char *, struct ui_file *, int,
29
                          int);
30
 
31
extern int f_val_print (struct type *, const gdb_byte *, int, CORE_ADDR,
32
                        struct ui_file *, int,
33
                        const struct value_print_options *);
34
 
35
/* Language-specific data structures */
36
 
37
/* In F90 subrange expression, either bound could be empty, indicating that
38
   its value is by default that of the corresponding bound of the array or
39
   string.  So we have four sorts of subrange in F90.  This enumeration type
40
   is to identify this.  */
41
 
42
enum f90_range_type
43
  {
44
    BOTH_BOUND_DEFAULT,         /* "(:)"  */
45
    LOW_BOUND_DEFAULT,          /* "(:high)"  */
46
    HIGH_BOUND_DEFAULT,         /* "(low:)"  */
47
    NONE_BOUND_DEFAULT          /* "(low:high)"  */
48
  };
49
 
50
struct common_entry
51
  {
52
    struct symbol *symbol;      /* The symbol node corresponding
53
                                   to this component */
54
    struct common_entry *next;  /* The next component */
55
  };
56
 
57
struct saved_f77_common
58
  {
59
    char *name;                 /* Name of COMMON */
60
    char *owning_function;      /* Name of parent function */
61
    int secnum;                 /* Section # of .bss */
62
    CORE_ADDR offset;           /* Offset from .bss for
63
                                   this block */
64
    struct common_entry *entries;       /* List of block's components */
65
    struct common_entry *end_of_entries;        /* ptr. to end of components */
66
    struct saved_f77_common *next;      /* Next saved COMMON block */
67
  };
68
 
69
typedef struct saved_f77_common SAVED_F77_COMMON, *SAVED_F77_COMMON_PTR;
70
 
71
typedef struct common_entry COMMON_ENTRY, *COMMON_ENTRY_PTR;
72
 
73
extern SAVED_F77_COMMON_PTR head_common_list;   /* Ptr to 1st saved COMMON  */
74
extern SAVED_F77_COMMON_PTR tail_common_list;   /* Ptr to last saved COMMON  */
75
extern SAVED_F77_COMMON_PTR current_common;     /* Ptr to current COMMON */
76
 
77
extern SAVED_F77_COMMON_PTR find_common_for_function (char *, char *);
78
 
79
#define UNINITIALIZED_SECNUM -1
80
#define COMMON_NEEDS_PATCHING(blk) ((blk)->secnum == UNINITIALIZED_SECNUM)
81
 
82
#define BLANK_COMMON_NAME_ORIGINAL "#BLNK_COM"  /* XLF assigned  */
83
#define BLANK_COMMON_NAME_MF77     "__BLNK__"   /* MF77 assigned  */
84
#define BLANK_COMMON_NAME_LOCAL    "__BLANK"    /* Local GDB */
85
 
86
/* When reasonable array bounds cannot be fetched, such as when
87
   you ask to 'mt print symbols' and there is no stack frame and
88
   therefore no way of knowing the bounds of stack-based arrays,
89
   we have to assign default bounds, these are as good as any... */
90
 
91
#define DEFAULT_UPPER_BOUND 999999
92
#define DEFAULT_LOWER_BOUND -999999
93
 
94
extern char *real_main_name;    /* Name of main function */
95
extern int real_main_c_value;   /* C_value field of main function */
96
 
97
extern int f77_get_upperbound (struct type *);
98
 
99
extern int f77_get_lowerbound (struct type *);
100
 
101
extern void f77_get_dynamic_array_length (struct type *);
102
 
103
extern int calc_f77_array_dims (struct type *);
104
 
105
 
106
/* Fortran (F77) types */
107
 
108
struct builtin_f_type
109
{
110
  struct type *builtin_character;
111
  struct type *builtin_integer;
112
  struct type *builtin_integer_s2;
113
  struct type *builtin_logical;
114
  struct type *builtin_logical_s1;
115
  struct type *builtin_logical_s2;
116
  struct type *builtin_real;
117
  struct type *builtin_real_s8;
118
  struct type *builtin_real_s16;
119
  struct type *builtin_complex_s8;
120
  struct type *builtin_complex_s16;
121
  struct type *builtin_complex_s32;
122
  struct type *builtin_void;
123
};
124
 
125
/* Return the Fortran type table for the specified architecture.  */
126
extern const struct builtin_f_type *builtin_f_type (struct gdbarch *gdbarch);
127
 

powered by: WebSVN 2.1.0

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