[Lldb-commits] [PATCH] D61776: [Target] Generalize some behavior in Thread

Jim Ingham via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Fri May 10 10:15:59 PDT 2019


jingham added a comment.

If you really are going to support many languages you need to figure out how to tell folks what really happened with more specificity.  For instance, you can use C++ to throw anything, so you could throw an ObjC object from a C++ exception throw.  So you need to distinguish between the language of the exception thrown (which is captured by the ValueObject you return) and the language runtime throwing the language.  So we need a way to query that.  Also, there's no formula reason why you couldn't have two languages throwing an exception at the same time (for instance if a C++ exception is unwinding the stack and the destructor of some ObjC object that is getting destroyed throws an NSException, etc...  So there needs to be some way to handle that.

This change isn't wrong but it gives a false impression of generality which makes it less well motivated.


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

https://reviews.llvm.org/D61776





More information about the lldb-commits mailing list