[Lldb-commits] [PATCH] D145276: [lldb] Let 'v' command directly access ivars of _any_ self/this
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 6 17:26:18 PST 2023
aprantl added a comment.
Herald added a subscriber: JDevlieghere.
>From an end-user perspective, I like this.
================
Comment at: lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp:9818
+ if (ClangASTMetadata *metadata = GetMetadata(fun_decl))
+ return metadata->GetObjectPtrLanguage();
+ }
----------------
Couple of questions for my understanding:
1. Do you see any opportunities for this to spectacularly do the wrong thing in an ObjectiveC++ program by guessing the wrong language? I suppose this just tries to do a best effort?
2. We're not using the DW_AT_APPLE_runtime_language attribute because it's only attached to Objective-C classes?
3. We're not using the DW_AT_language of the DW_TAG_compile_unit because it won't help us in an ObjC++ program?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D145276/new/
https://reviews.llvm.org/D145276
More information about the lldb-commits
mailing list