+2010-08-19 Mark Wielaard <mjw@redhat.com>
+
+ * c++/dwarf_data (dwarf_data::directory_table::directory_table):
+ Treat first entry "special", can be NULL/empty.
+
2010-08-18 Roland McGrath <roland@redhat.com>
* c++/subr.hh (subr::container_tail_equal): New function.
template<typename table>
directory_table (const table &other)
- : _base (other.begin (), other.end ()) {}
+ {
+ /* The first entry is "special". It can be NULL/empty.
+ This is not encoded in the .debug_line table, but in
+ the DW_AT_comp_dir attribute of the referring CU. */
+ typename table::const_iterator first = other.begin ();
+ _base::push_back (*first != NULL ? std::string (*first) : "");
+ _base::insert (_base::end (), ++first, other.end ());
+ }
std::string to_string () const;