summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPetr Machata <[email protected]>2009-10-01 18:24:43 +0200
committerPetr Machata <[email protected]>2009-10-01 18:24:43 +0200
commit717d22d56fbed22d83ad9d65cdae19991a1e8faa (patch)
treef8d543c628d547e297504051219f503cd2b391e6
parent3bf62565e8438bf060efc9eac71b8243b27a8ee9 (diff)
Don't skip directory #0 when considering where to put the file
-rw-r--r--libdw/c++/emit-line.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libdw/c++/emit-line.cc b/libdw/c++/emit-line.cc
index a9778b6d..b59651e2 100644
--- a/libdw/c++/emit-line.cc
+++ b/libdw/c++/emit-line.cc
@@ -352,7 +352,9 @@ dwarf_output::writer::output_debug_line (section_appender &appender)
size_t dir_index = 0;
size_t match_len = 0;
for (dwarf_output::directory_table::const_iterator dir_it
- = dirs.begin () + 1; dir_it != dirs.end (); ++dir_it)
+ = dirs.begin (); dir_it != dirs.end (); ++dir_it)
+ // Don't skip directory #0 when considering where to put
+ // the file.
{
std::string const &dir = *dir_it;
if (dir.length () > match_len