Commit | Line | Data |
---|---|---|
c906108c | 1 | /* Fortran language support definitions for GDB, the GNU debugger. |
a2bd3dcd | 2 | |
61baf725 | 3 | Copyright (C) 1992-2017 Free Software Foundation, Inc. |
a2bd3dcd | 4 | |
c906108c SS |
5 | Contributed by Motorola. Adapted from the C definitions by Farooq Butt |
6 | (fmbutt@engage.sps.mot.com). | |
7 | ||
c5aa993b | 8 | This file is part of GDB. |
c906108c | 9 | |
c5aa993b JM |
10 | This program is free software; you can redistribute it and/or modify |
11 | it under the terms of the GNU General Public License as published by | |
a9762ec7 | 12 | the Free Software Foundation; either version 3 of the License, or |
c5aa993b | 13 | (at your option) any later version. |
c906108c | 14 | |
c5aa993b JM |
15 | This program is distributed in the hope that it will be useful, |
16 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
18 | GNU General Public License for more details. | |
c906108c | 19 | |
c5aa993b | 20 | You should have received a copy of the GNU General Public License |
a9762ec7 | 21 | along with this program. If not, see <http://www.gnu.org/licenses/>. */ |
c906108c | 22 | |
79d43c61 | 23 | struct type_print_options; |
410a0ff2 | 24 | struct parser_state; |
79d43c61 | 25 | |
410a0ff2 | 26 | extern int f_parse (struct parser_state *); |
c906108c | 27 | |
a121b7c1 | 28 | extern void f_yyerror (const char *); /* Defined in f-exp.y */ |
c906108c | 29 | |
25b524e8 | 30 | extern void f_print_type (struct type *, const char *, struct ui_file *, int, |
79d43c61 | 31 | int, const struct type_print_options *); |
c906108c | 32 | |
e8b24d9f | 33 | extern void f_val_print (struct type *, int, CORE_ADDR, |
d3eab38a | 34 | struct ui_file *, int, |
e8b24d9f | 35 | struct value *, |
d3eab38a | 36 | const struct value_print_options *); |
c906108c | 37 | |
c5aa993b | 38 | /* Language-specific data structures */ |
c906108c | 39 | |
4357ac6c | 40 | /* A common block. */ |
c906108c | 41 | |
4357ac6c TT |
42 | struct common_block |
43 | { | |
44 | /* The number of entries in the block. */ | |
45 | size_t n_entries; | |
c906108c | 46 | |
4357ac6c TT |
47 | /* The contents of the block, allocated using the struct hack. All |
48 | pointers in the array are non-NULL. */ | |
49 | struct symbol *contents[1]; | |
50 | }; | |
c906108c | 51 | |
d78df370 | 52 | extern int f77_get_upperbound (struct type *); |
c906108c | 53 | |
d78df370 | 54 | extern int f77_get_lowerbound (struct type *); |
c906108c | 55 | |
a14ed312 | 56 | extern void f77_get_dynamic_array_length (struct type *); |
c906108c | 57 | |
a14ed312 | 58 | extern int calc_f77_array_dims (struct type *); |
4cca3ac9 UW |
59 | |
60 | ||
61 | /* Fortran (F77) types */ | |
62 | ||
63 | struct builtin_f_type | |
64 | { | |
65 | struct type *builtin_character; | |
66 | struct type *builtin_integer; | |
67 | struct type *builtin_integer_s2; | |
68 | struct type *builtin_logical; | |
69 | struct type *builtin_logical_s1; | |
70 | struct type *builtin_logical_s2; | |
ce4b0682 | 71 | struct type *builtin_logical_s8; |
4cca3ac9 UW |
72 | struct type *builtin_real; |
73 | struct type *builtin_real_s8; | |
74 | struct type *builtin_real_s16; | |
75 | struct type *builtin_complex_s8; | |
76 | struct type *builtin_complex_s16; | |
77 | struct type *builtin_complex_s32; | |
78 | struct type *builtin_void; | |
79 | }; | |
80 | ||
81 | /* Return the Fortran type table for the specified architecture. */ | |
82 | extern const struct builtin_f_type *builtin_f_type (struct gdbarch *gdbarch); | |
83 |