Commit | Line | Data |
---|---|---|
17ed84ed | 1 | /* ecoff.h -- header file for ECOFF debugging support |
cd924033 | 2 | Copyright (C) 1993, 94, 95, 1996 Free Software Foundation, Inc. |
17ed84ed ILT |
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 | |
cd924033 ILT |
19 | along with GAS; see the file COPYING. If not, write to the Free |
20 | Software Foundation, 59 Temple Place - Suite 330, Boston, MA | |
21 | 02111-1307, USA. */ | |
17ed84ed ILT |
22 | |
23 | #ifdef ECOFF_DEBUGGING | |
24 | ||
22ba90ce ILT |
25 | #ifndef GAS_ECOFF_H |
26 | #define GAS_ECOFF_H | |
27 | ||
17ed84ed ILT |
28 | #include "coff/sym.h" |
29 | #include "coff/ecoff.h" | |
30 | ||
22ba90ce ILT |
31 | /* Whether we have seen any ECOFF debugging information. */ |
32 | extern int ecoff_debugging_seen; | |
33 | ||
17ed84ed ILT |
34 | /* This function should be called at the start of assembly, by |
35 | obj_read_begin_hook. */ | |
36 | extern void ecoff_read_begin_hook PARAMS ((void)); | |
37 | ||
cd924033 ILT |
38 | /* This function should be called when the assembler switches to a new |
39 | file. */ | |
40 | extern void ecoff_new_file PARAMS ((const char *)); | |
41 | ||
17ed84ed ILT |
42 | /* This function should be called when a new symbol is created, by |
43 | obj_symbol_new_hook. */ | |
44 | extern void ecoff_symbol_new_hook PARAMS ((struct symbol *)); | |
45 | ||
daad3bbf KH |
46 | /* This function should be called by the obj_frob_symbol hook. */ |
47 | extern void ecoff_frob_symbol PARAMS ((struct symbol *)); | |
48 | ||
17ed84ed ILT |
49 | /* Build the ECOFF debugging information. This should be called by |
50 | obj_frob_file. This fills in the counts in *HDR; the offsets are | |
51 | filled in relative to the start of the *BUFP. It sets *BUFP to a | |
52 | block of memory holding the debugging information. It returns the | |
53 | length of *BUFP. */ | |
54 | extern unsigned long ecoff_build_debug | |
55 | PARAMS ((HDRR *hdr, char **bufp, const struct ecoff_debug_swap *)); | |
56 | ||
57 | /* Functions to handle the ECOFF debugging directives. */ | |
58 | extern void ecoff_directive_begin PARAMS ((int)); | |
59 | extern void ecoff_directive_bend PARAMS ((int)); | |
60 | extern void ecoff_directive_end PARAMS ((int)); | |
61 | extern void ecoff_directive_ent PARAMS ((int)); | |
62 | extern void ecoff_directive_fmask PARAMS ((int)); | |
63 | extern void ecoff_directive_frame PARAMS ((int)); | |
64 | extern void ecoff_directive_loc PARAMS ((int)); | |
65 | extern void ecoff_directive_mask PARAMS ((int)); | |
66 | ||
cd924033 ILT |
67 | /* Other ECOFF directives. */ |
68 | extern void ecoff_directive_extern PARAMS ((int)); | |
69 | extern void ecoff_directive_weakext PARAMS ((int)); | |
70 | ||
17ed84ed ILT |
71 | /* Functions to handle the COFF debugging directives. */ |
72 | extern void ecoff_directive_def PARAMS ((int)); | |
73 | extern void ecoff_directive_dim PARAMS ((int)); | |
74 | extern void ecoff_directive_endef PARAMS ((int)); | |
75 | extern void ecoff_directive_file PARAMS ((int)); | |
76 | extern void ecoff_directive_scl PARAMS ((int)); | |
77 | extern void ecoff_directive_size PARAMS ((int)); | |
78 | extern void ecoff_directive_tag PARAMS ((int)); | |
79 | extern void ecoff_directive_type PARAMS ((int)); | |
80 | extern void ecoff_directive_val PARAMS ((int)); | |
81 | ||
82 | /* Handle stabs. */ | |
22ba90ce | 83 | extern void ecoff_stab PARAMS ((segT sec, int what, const char *string, |
17ed84ed ILT |
84 | int type, int other, int desc)); |
85 | ||
86 | /* Set the GP prologue size. */ | |
87 | extern void ecoff_set_gp_prolog_size PARAMS ((int sz)); | |
88 | ||
89 | /* This routine is called from the ECOFF code to set the external | |
90 | information for a symbol. */ | |
91 | #ifndef obj_ecoff_set_ext | |
92 | extern void obj_ecoff_set_ext PARAMS ((struct symbol *, EXTR *)); | |
93 | #endif | |
94 | ||
cd924033 ILT |
95 | /* This routine is used to patch up a line number directive when |
96 | instructions are moved around. */ | |
97 | extern void ecoff_fix_loc PARAMS ((fragS *, unsigned long)); | |
98 | ||
99 | /* This function is called from read.c to peek at cur_file_ptr. */ | |
22ba90ce ILT |
100 | extern int ecoff_no_current_file PARAMS ((void)); |
101 | ||
cd924033 ILT |
102 | /* This routine is called from read.c to generate line number for .s |
103 | file. */ | |
22ba90ce ILT |
104 | extern void ecoff_generate_asm_lineno PARAMS ((const char *, int)); |
105 | ||
22ba90ce | 106 | #endif /* ! GAS_ECOFF_H */ |
17ed84ed | 107 | #endif /* ECOFF_DEBUGGING */ |