diff options
author | Kung Hsu <kung@cygnus> | 1994-09-09 01:05:28 +0000 |
---|---|---|
committer | Kung Hsu <kung@cygnus> | 1994-09-09 01:05:28 +0000 |
commit | 326d16cac7816f75645ab40a1cc8c36e6fb3ab0a (patch) | |
tree | 59ab74a0f054dcd722d0491bb2850d86eeb24f95 /gas/read.c | |
parent | ad14517d3cf4cf36b2cb43fbede3fa65e8ef3bf3 (diff) | |
download | gdb-326d16cac7816f75645ab40a1cc8c36e6fb3ab0a.zip gdb-326d16cac7816f75645ab40a1cc8c36e6fb3ab0a.tar.gz gdb-326d16cac7816f75645ab40a1cc8c36e6fb3ab0a.tar.bz2 |
Modified Files:
ChangeLog read.h read.c ecoff.h ecoff.c
* read.h : ditto.
* read.c (read_a_source_file): if no file when inst is read, set
generate_asm_lineno to true.
* ecoff.h : change name to generate_asm_lineno and add function
ecoff_no_current_file.
* ecoff.c : change name to generate_asm_lineno.
* ecoff.c (ecoff_generate_asm_lineno) : new function, to generate
ecoff style line for asm file.
Diffstat (limited to 'gas/read.c')
-rw-r--r-- | gas/read.c | 13 |
1 files changed, 9 insertions, 4 deletions
@@ -60,7 +60,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ char *input_line_pointer; /*->next char of source file to parse. */ -int generate_asm_line_stab = 0; /* flag to generate line stab for .s file */ +int generate_asm_lineno = 0; /* flag to generate line stab for .s file */ #if BITS_PER_CHAR != 8 /* The following table is indexed by[(char)] and will break if @@ -546,13 +546,18 @@ read_a_source_file (name) c = *input_line_pointer; *input_line_pointer = '\0'; -#ifdef OBJ_GENERATE_ASM_LINE_STAB - if (generate_asm_line_stab) +#ifdef OBJ_GENERATE_ASM_LINENO + if (generate_asm_lineno == 0) + { + if (ecoff_no_current_file()) + generate_asm_lineno = 1; + } + else { int lineno; char *s; as_where (&s, &lineno); - OBJ_GENERATE_ASM_LINE_STAB (lineno); + OBJ_GENERATE_ASM_LINENO (s, lineno); } #endif |