aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2001-06-19 05:40:55 +0000
committerAlan Modra <amodra@gmail.com>2001-06-19 05:40:55 +0000
commit45c500fa3edce8d3cc857de999c999937a8a576d (patch)
tree17d868612c6b7836d3d1534509c05a52c5852a59 /gas/dwarf2dbg.c
parent1c4151030203de5ab6e90c8bf844658afe5f1d13 (diff)
downloadgdb-45c500fa3edce8d3cc857de999c999937a8a576d.zip
gdb-45c500fa3edce8d3cc857de999c999937a8a576d.tar.gz
gdb-45c500fa3edce8d3cc857de999c999937a8a576d.tar.bz2
* dwarf2dbg.c (dwarf2_finish): Output file info even when no
line info.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index ed2c710..a2d266e 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1212,7 +1212,7 @@ dwarf2_finish ()
struct line_seg *s;
/* If no debug information was recorded, nothing to do. */
- if (all_segs == NULL)
+ if (all_segs == NULL && files_in_use <= 1)
return;
/* Calculate the size of an address for the target machine. */
@@ -1239,7 +1239,7 @@ dwarf2_finish ()
/* If this is assembler generated line info, we need .debug_info
and .debug_abbrev sections as well. */
- if (debug_type == DEBUG_DWARF2)
+ if (all_segs != NULL && debug_type == DEBUG_DWARF2)
{
segT abbrev_seg;
segT info_seg;