[Lldb-commits] [PATCH] D47470: AppleDWARFIndex: Get function method-ness directly from debug info

Greg Clayton via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Thu May 31 10:44:33 PDT 2018


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





More information about the lldb-commits mailing list