* gas/i386/intel16.d: Ignore trailing text with #pass.
[deliverable/binutils-gdb.git] / gdb / f-lang.h
CommitLineData
c906108c 1/* Fortran language support definitions for GDB, the GNU debugger.
b6ba6518
KB
2 Copyright 1992, 1993, 1994, 1995, 1998, 2000
3 Free Software Foundation, Inc.
c906108c
SS
4 Contributed by Motorola. Adapted from the C definitions by Farooq Butt
5 (fmbutt@engage.sps.mot.com).
6
c5aa993b 7 This file is part of GDB.
c906108c 8
c5aa993b
JM
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
c906108c 13
c5aa993b
JM
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
c906108c 18
c5aa993b
JM
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 59 Temple Place - Suite 330,
22 Boston, MA 02111-1307, USA. */
c906108c 23
a14ed312 24extern int f_parse (void);
c906108c 25
a14ed312 26extern void f_error (char *); /* Defined in f-exp.y */
c906108c 27
d9fcf2fb
JM
28extern void f_print_type (struct type *, char *, struct ui_file *, int,
29 int);
c906108c 30
d9fcf2fb
JM
31extern int f_val_print (struct type *, char *, int, CORE_ADDR,
32 struct ui_file *, int, int, int,
33 enum val_prettyprint);
c906108c 34
c5aa993b 35/* Language-specific data structures */
c906108c
SS
36
37struct common_entry
c5aa993b
JM
38 {
39 struct symbol *symbol; /* The symbol node corresponding
40 to this component */
41 struct common_entry *next; /* The next component */
42 };
c906108c
SS
43
44struct saved_f77_common
c5aa993b
JM
45 {
46 char *name; /* Name of COMMON */
47 char *owning_function; /* Name of parent function */
48 int secnum; /* Section # of .bss */
49 CORE_ADDR offset; /* Offset from .bss for
50 this block */
51 struct common_entry *entries; /* List of block's components */
52 struct common_entry *end_of_entries; /* ptr. to end of components */
53 struct saved_f77_common *next; /* Next saved COMMON block */
54 };
c906108c 55
c5aa993b 56typedef struct saved_f77_common SAVED_F77_COMMON, *SAVED_F77_COMMON_PTR;
c906108c 57
c5aa993b 58typedef struct common_entry COMMON_ENTRY, *COMMON_ENTRY_PTR;
c906108c 59
c5aa993b
JM
60extern SAVED_F77_COMMON_PTR head_common_list; /* Ptr to 1st saved COMMON */
61extern SAVED_F77_COMMON_PTR tail_common_list; /* Ptr to last saved COMMON */
62extern SAVED_F77_COMMON_PTR current_common; /* Ptr to current COMMON */
c906108c 63
a14ed312 64extern SAVED_F77_COMMON_PTR find_common_for_function (char *, char *);
c906108c 65
c5aa993b 66#define UNINITIALIZED_SECNUM -1
c906108c
SS
67#define COMMON_NEEDS_PATCHING(blk) ((blk)->secnum == UNINITIALIZED_SECNUM)
68
c5aa993b
JM
69#define BLANK_COMMON_NAME_ORIGINAL "#BLNK_COM" /* XLF assigned */
70#define BLANK_COMMON_NAME_MF77 "__BLNK__" /* MF77 assigned */
71#define BLANK_COMMON_NAME_LOCAL "__BLANK" /* Local GDB */
c906108c
SS
72
73#define BOUND_FETCH_OK 1
74#define BOUND_FETCH_ERROR -999
75
76/* When reasonable array bounds cannot be fetched, such as when
c5aa993b
JM
77 you ask to 'mt print symbols' and there is no stack frame and
78 therefore no way of knowing the bounds of stack-based arrays,
79 we have to assign default bounds, these are as good as any... */
c906108c
SS
80
81#define DEFAULT_UPPER_BOUND 999999
82#define DEFAULT_LOWER_BOUND -999999
83
c5aa993b
JM
84extern char *real_main_name; /* Name of main function */
85extern int real_main_c_value; /* C_value field of main function */
c906108c 86
a14ed312 87extern int f77_get_dynamic_upperbound (struct type *, int *);
c906108c 88
a14ed312 89extern int f77_get_dynamic_lowerbound (struct type *, int *);
c906108c 90
a14ed312 91extern void f77_get_dynamic_array_length (struct type *);
c906108c 92
a14ed312 93extern int calc_f77_array_dims (struct type *);
c906108c
SS
94
95#define DEFAULT_DOTMAIN_NAME_IN_MF77 ".MAIN_"
96#define DEFAULT_MAIN_NAME_IN_MF77 "MAIN_"
97#define DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY ".main "
98#define DEFAULT_DOTMAIN_NAME_IN_XLF ".main"
This page took 0.36497 seconds and 4 git commands to generate.