aboutsummaryrefslogtreecommitdiff
path: root/gas/read.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1994-09-09 01:05:28 +0000
committerKung Hsu <kung@cygnus>1994-09-09 01:05:28 +0000
commit326d16cac7816f75645ab40a1cc8c36e6fb3ab0a (patch)
tree59ab74a0f054dcd722d0491bb2850d86eeb24f95 /gas/read.c
parentad14517d3cf4cf36b2cb43fbede3fa65e8ef3bf3 (diff)
downloadgdb-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.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gas/read.c b/gas/read.c
index ce5dfe1..de45590 100644
--- a/gas/read.c
+++ b/gas/read.c
@@ -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