diff options
| author | Petr Machata <[email protected]> | 2009-10-01 18:24:43 +0200 |
|---|---|---|
| committer | Petr Machata <[email protected]> | 2009-10-01 18:24:43 +0200 |
| commit | 717d22d56fbed22d83ad9d65cdae19991a1e8faa (patch) | |
| tree | f8d543c628d547e297504051219f503cd2b391e6 | |
| parent | 3bf62565e8438bf060efc9eac71b8243b27a8ee9 (diff) | |
Don't skip directory #0 when considering where to put the file
| -rw-r--r-- | libdw/c++/emit-line.cc | 4 |
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 |
