aboutsummaryrefslogtreecommitdiff
path: root/gas/ecoff.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-09-11 04:14:35 +0000
committerIan Lance Taylor <ian@airs.com>1996-09-11 04:14:35 +0000
commit475c826bb46ed6221b3104951f4dc64976096e4c (patch)
tree8856ecb1d8562ea6a21be522d92930722c1eb5af /gas/ecoff.c
parent8a3bdc3d2aaacd5a3be7cf85b9b90fc0f921ba13 (diff)
downloadgdb-475c826bb46ed6221b3104951f4dc64976096e4c.zip
gdb-475c826bb46ed6221b3104951f4dc64976096e4c.tar.gz
gdb-475c826bb46ed6221b3104951f4dc64976096e4c.tar.bz2
* ecoff.c (ecoff_new_file): Don't do anything if we are still in
the same file. PR 10595.
Diffstat (limited to 'gas/ecoff.c')
-rw-r--r--gas/ecoff.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/ecoff.c b/gas/ecoff.c
index cabfc17..960032e 100644
--- a/gas/ecoff.c
+++ b/gas/ecoff.c
@@ -2351,6 +2351,8 @@ void
ecoff_new_file (name)
const char *name;
{
+ if (cur_file_ptr != NULL && strcmp (cur_file_ptr->name, name) == 0)
+ return;
add_file (name, 0, 0);
generate_asm_lineno = 1;
}