]> sourceware.org Git - libabigail.git/commitdiff
[dwarf reader] Allow updating and de-duplicating member functions
authorDodji Seketeli <dodji@redhat.com>
Fri, 13 Jan 2017 23:14:34 +0000 (00:14 +0100)
committerDodji Seketeli <dodji@redhat.com>
Mon, 16 Jan 2017 20:00:54 +0000 (21:00 +0100)
We forget to register member functions for lookup (by DWARF DIE
representation).  So member functions are not correctly found (by
lookup) and thus are not properly de-duplicated or updated.

* src/abg-dwarf-reader.cc (add_or_update_class_type): Register
member functions for lookup by member function DIE representation.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
src/abg-dwarf-reader.cc

index 352737450603b148f821c30fe3e673d6fe2700a6..a0c142ab1aa10222c3148ccaa248e480b52df926 100644 (file)
@@ -11069,7 +11069,7 @@ add_or_update_class_type(read_context&   ctxt,
                                              where_offset);
              if (function_decl_sptr f = is_function_decl(r))
                ctxt.associate_die_to_decl(&child, f, where_offset,
-                                          /*associate_by_repr=*/false);
+                                          /*associate_by_repr=*/true);
            }
          // Handle member types
          else if (die_is_type(&child))
This page took 0.045021 seconds and 5 git commands to generate.