* gprof.c (main): Correct copyright message.
[deliverable/binutils-gdb.git] / gas / ecoff.h
1 /* ecoff.h -- header file for ECOFF debugging support
2 Copyright (C) 1993 Free Software Foundation, Inc.
3 Contributed by Cygnus Support.
4 Put together by Ian Lance Taylor <ian@cygnus.com>.
5
6 This file is part of GAS, the GNU Assembler.
7
8 GAS is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 2, or (at your option)
11 any later version.
12
13 GAS is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with GAS; see the file COPYING. If not, write to
20 the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21
22 #ifdef ECOFF_DEBUGGING
23
24 #ifndef GAS_ECOFF_H
25 #define GAS_ECOFF_H
26
27 #include "coff/sym.h"
28 #include "coff/ecoff.h"
29
30 /* Whether we have seen any ECOFF debugging information. */
31 extern int ecoff_debugging_seen;
32
33 /* This function should be called at the start of assembly, by
34 obj_read_begin_hook. */
35 extern void ecoff_read_begin_hook PARAMS ((void));
36
37 /* This function should be called when a new symbol is created, by
38 obj_symbol_new_hook. */
39 extern void ecoff_symbol_new_hook PARAMS ((struct symbol *));
40
41 /* This function should be called by the obj_frob_symbol hook. */
42 extern void ecoff_frob_symbol PARAMS ((struct symbol *));
43
44 /* Build the ECOFF debugging information. This should be called by
45 obj_frob_file. This fills in the counts in *HDR; the offsets are
46 filled in relative to the start of the *BUFP. It sets *BUFP to a
47 block of memory holding the debugging information. It returns the
48 length of *BUFP. */
49 extern unsigned long ecoff_build_debug
50 PARAMS ((HDRR *hdr, char **bufp, const struct ecoff_debug_swap *));
51
52 /* Functions to handle the ECOFF debugging directives. */
53 extern void ecoff_directive_begin PARAMS ((int));
54 extern void ecoff_directive_bend PARAMS ((int));
55 extern void ecoff_directive_end PARAMS ((int));
56 extern void ecoff_directive_ent PARAMS ((int));
57 extern void ecoff_directive_fmask PARAMS ((int));
58 extern void ecoff_directive_frame PARAMS ((int));
59 extern void ecoff_directive_loc PARAMS ((int));
60 extern void ecoff_directive_mask PARAMS ((int));
61
62 /* Functions to handle the COFF debugging directives. */
63 extern void ecoff_directive_def PARAMS ((int));
64 extern void ecoff_directive_dim PARAMS ((int));
65 extern void ecoff_directive_endef PARAMS ((int));
66 extern void ecoff_directive_file PARAMS ((int));
67 extern void ecoff_directive_scl PARAMS ((int));
68 extern void ecoff_directive_size PARAMS ((int));
69 extern void ecoff_directive_tag PARAMS ((int));
70 extern void ecoff_directive_type PARAMS ((int));
71 extern void ecoff_directive_val PARAMS ((int));
72
73 /* Handle stabs. */
74 extern void ecoff_stab PARAMS ((segT sec, int what, const char *string,
75 int type, int other, int desc));
76
77 /* Set the GP prologue size. */
78 extern void ecoff_set_gp_prolog_size PARAMS ((int sz));
79
80 /* This routine is called from the ECOFF code to set the external
81 information for a symbol. */
82 #ifndef obj_ecoff_set_ext
83 extern void obj_ecoff_set_ext PARAMS ((struct symbol *, EXTR *));
84 #endif
85
86 /* This function is called from read.c to peek at cur_file_ptr */
87 extern int ecoff_no_current_file PARAMS ((void));
88
89 /* This routine is called from read.c to generate line number for .s file
90 */
91 extern void ecoff_generate_asm_lineno PARAMS ((const char *, int));
92
93 /* This routine is called from read.c to generate line number stabs for .s file
94 */
95 extern void ecoff_generate_asm_line_stab PARAMS ((char *, int));
96
97 #endif /* ! GAS_ECOFF_H */
98 #endif /* ECOFF_DEBUGGING */
This page took 0.033236 seconds and 4 git commands to generate.