[lldb][gnustep] Add minimal GNUstepObjCRuntime plugin for LanguageTypeObjC on non...
authorStefan Gränitz <stefan.graenitz@gmail.com>
Wed, 17 May 2023 08:40:40 +0000 (10:40 +0200)
committerStefan Gränitz <stefan.graenitz@gmail.com>
Wed, 17 May 2023 11:56:01 +0000 (13:56 +0200)
commit0b6264738f3d3688719b23c5d272725d3d9bf4e0
tree5a12af1dfb30f8d2a9e9e45e15b64519a05b7ed1
parent77589e945f0d167bd46ed3218b81c16af1e917ae
[lldb][gnustep] Add minimal GNUstepObjCRuntime plugin for LanguageTypeObjC on non-Apple platforms

This is the next patch after D146058. We can now parse expressions to print instance variables from ObjC classes. Until now the expression parser would bail out with an error like this:
```
error: expression failed to parse:
error: Error [IRForTarget]: Couldn't find Objective-C indirect ivar symbol OBJC_IVAR_$_TestObj._int
```

Reviewed By: aprantl

Differential Revision: https://reviews.llvm.org/D146154
lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/CMakeLists.txt
lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/CMakeLists.txt [new file with mode: 0644]
lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/GNUstepObjCRuntime.cpp [new file with mode: 0644]
lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/GNUstepObjCRuntime.h [new file with mode: 0644]
lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h
lldb/test/Shell/Expr/objc-gnustep-print.m