clayborg added a comment.

After seeing this, it might be nice to put the recursion that follows the 
DW_AT_specification and DW_AT_abstract_origin and avoids infinite recursion 
into a DWARFDIE function that takes a callback:

  typedef bool (*DIECallback)(DWARFDIE &die);
  void DWARFDIE::VisitAbstractOriginsAndSpecifications(DIECallback callback);

The contents would be very similar to the DWARFDIE::IsMethod() function, but it 
would listen to the "bool" return value from calling the "callback" function 
and stop recursing if true or false is returned so we can stop the recursion if 
we find what we need. Then we can re-use this function for more


https://reviews.llvm.org/D47470



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to