[PATCH] D62359: [dwarfdump] Make recursion affect the parent chain

Adrian Prantl via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 21:06:02 PDT 2019


aprantl added a comment.

I perceived the current behavior as a bug in a situation where I was doing dwarfdump --name=foo in a deeply nested DIE tree with inlined functions and I was annoyed at all the repetitive parent context making it impossible to see more than one result on a page. It's true that there may be situation where you'd want to limit the parent and children recursion depth individually.

If we take `grep` as an analogy, this patch implements -C, which is useful in it's own right, but in addition there is also -B and -A.

I'd have no problem with adding even more fine-grained --limit-parents and --limit-children options, if someone finds them useful, but I would also like to have the option that does both.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62359/new/

https://reviews.llvm.org/D62359





More information about the llvm-commits mailing list