aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-11-02 09:49:25 +0000
committerNick Clifton <nickc@redhat.com>2004-11-02 09:49:25 +0000
commitddbc47acfcb78c7663b53bfa5f05d409a46f147c (patch)
tree590563c12345368eed5b83c6b3cdfdbeed3f2a20 /gas/dwarf2dbg.c
parent117ea3cfbfdae674f9b74c07692eb300d5d8ae3b (diff)
downloadgdb-ddbc47acfcb78c7663b53bfa5f05d409a46f147c.zip
gdb-ddbc47acfcb78c7663b53bfa5f05d409a46f147c.tar.gz
gdb-ddbc47acfcb78c7663b53bfa5f05d409a46f147c.tar.bz2
(dwarf2_finish): Check for the existence of a file table before deciding to
produce a .debug_line section to match up with a user provided .debug_info section.
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r--gas/dwarf2dbg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index 59da56a..e1b7a81 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -1363,7 +1363,8 @@ dwarf2_finish (void)
below. */
if (all_segs == NULL
&& debug_type != DEBUG_DWARF2
- && bfd_get_section_by_name (stdoutput, ".debug_info") == NULL)
+ && (bfd_get_section_by_name (stdoutput, ".debug_info") == NULL
+ || files_in_use == 0))
return;
/* Calculate the size of an address for the target machine. */