aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1995-07-05 20:31:31 +0000
committerIan Lance Taylor <ian@airs.com>1995-07-05 20:31:31 +0000
commit3f8416d5e15b58f47c7f7e0ef94f5aadd9fe22f0 (patch)
tree0fdfd06d6969a0f4ffe44c55c09c9d6ef14c961d /gas
parent56dc989a91a6bb112bb6bd112906b55229e127f0 (diff)
downloadgdb-3f8416d5e15b58f47c7f7e0ef94f5aadd9fe22f0.zip
gdb-3f8416d5e15b58f47c7f7e0ef94f5aadd9fe22f0.tar.gz
gdb-3f8416d5e15b58f47c7f7e0ef94f5aadd9fe22f0.tar.bz2
* config/obj-coff.c (obj_coff_line): Call listing_source_line, in
both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function. PR 7006.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog3
-rw-r--r--gas/config/obj-coff.c12
2 files changed, 14 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5313453..94c7301 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,8 @@
Wed Jul 5 12:01:49 1995 Ian Lance Taylor <ian@cygnus.com>
+ * config/obj-coff.c (obj_coff_line): Call listing_source_line, in
+ both BFD_ASSEMBLER and non BFD_ASSEMBLER versions of the function.
+
* symbols.c (S_SET_EXTERNAL): Warn if symbol is weak.
(S_CLEAR_EXTERNAL): Likewise.
(S_SET_WEAK): Warn if symbol is global.
diff --git a/gas/config/obj-coff.c b/gas/config/obj-coff.c
index 358e4da..c82e135 100644
--- a/gas/config/obj-coff.c
+++ b/gas/config/obj-coff.c
@@ -772,6 +772,16 @@ obj_coff_line (ignore)
SA_SET_SYM_LNNO (def_symbol_in_progress, coff_line_base);
demand_empty_rest_of_line ();
+
+#ifndef NO_LISTING
+ if (strcmp (".bf", S_GET_NAME (def_symbol_in_progress)) == 0)
+ {
+ extern int listing;
+
+ if (listing)
+ listing_source_line ((unsigned int) coff_line_base);
+ }
+#endif
}
static void
@@ -2267,7 +2277,7 @@ obj_coff_line (ignore)
#ifndef NO_LISTING
{
extern int listing;
- if (listing && 0)
+ if (listing)
{
listing_source_line ((unsigned int) line_base);
}