diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-07-05 16:10:50 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-07-05 16:10:50 +0000 |
commit | 22ba90ce857a55522551a6dd06410534d0b02fd2 (patch) | |
tree | 6fd24938ae0ea7899e96d3e450cf609c76decf2b /gas/ecoff.h | |
parent | 9525b61b1b82bcd7f9de30c9278cc9d52e9794b9 (diff) | |
download | gdb-22ba90ce857a55522551a6dd06410534d0b02fd2.zip gdb-22ba90ce857a55522551a6dd06410534d0b02fd2.tar.gz gdb-22ba90ce857a55522551a6dd06410534d0b02fd2.tar.bz2 |
* ecoff.c (ecoff_debugging_seen): New global variable.
(ecoff_directive_def): Set ecoff_debugging_seen.
(ecoff_stab): Likewise.
* ecoff.h: Make idempotent.
(ecoff_debugging_seen): Declare.
* config/tc-mips.c: Include ecoff.h.
(mips_debug): New static variable.
(s_stringer, s_mips_space): Remove unneeded declarations.
(md_parse_option): In case 'g', set mips_debug to debugging level.
(mips_local_label): New function.
* tc-mips.h (LOCAL_LABEL): Call mips_local_label.
(mips_local_label): Declare.
PR 6978.
Diffstat (limited to 'gas/ecoff.h')
-rw-r--r-- | gas/ecoff.h | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/gas/ecoff.h b/gas/ecoff.h index 2e94081..6042cb9 100644 --- a/gas/ecoff.h +++ b/gas/ecoff.h @@ -21,9 +21,15 @@ #ifdef ECOFF_DEBUGGING +#ifndef GAS_ECOFF_H +#define GAS_ECOFF_H + #include "coff/sym.h" #include "coff/ecoff.h" +/* Whether we have seen any ECOFF debugging information. */ +extern int ecoff_debugging_seen; + /* This function should be called at the start of assembly, by obj_read_begin_hook. */ extern void ecoff_read_begin_hook PARAMS ((void)); @@ -65,7 +71,7 @@ extern void ecoff_directive_type PARAMS ((int)); extern void ecoff_directive_val PARAMS ((int)); /* Handle stabs. */ -extern void ecoff_stab PARAMS ((int what, const char *string, +extern void ecoff_stab PARAMS ((segT sec, int what, const char *string, int type, int other, int desc)); /* Set the GP prologue size. */ @@ -77,7 +83,16 @@ extern void ecoff_set_gp_prolog_size PARAMS ((int sz)); extern void obj_ecoff_set_ext PARAMS ((struct symbol *, EXTR *)); #endif +/* This function is called from read.c to peek at cur_file_ptr */ +extern int ecoff_no_current_file PARAMS ((void)); + +/* This routine is called from read.c to generate line number for .s file +*/ +extern void ecoff_generate_asm_lineno PARAMS ((const char *, int)); + /* This routine is called from read.c to generate line number stabs for .s file */ -extern void ecoff_generate_asm_line_stab PARAMS ((int)); +extern void ecoff_generate_asm_line_stab PARAMS ((char *, int)); + +#endif /* ! GAS_ECOFF_H */ #endif /* ECOFF_DEBUGGING */ |