[all-commits] [llvm/llvm-project] 0b6264: [lldb][gnustep] Add minimal GNUstepObjCRuntime plu...

Stefan Gränitz via All-commits all-commits at lists.llvm.org
Wed May 17 04:56:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b6264738f3d3688719b23c5d272725d3d9bf4e0
      https://github.com/llvm/llvm-project/commit/0b6264738f3d3688719b23c5d272725d3d9bf4e0
  Author: Stefan Gränitz <stefan.graenitz at gmail.com>
  Date:   2023-05-17 (Wed, 17 May 2023)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/CMakeLists.txt
    A lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/CMakeLists.txt
    A lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/GNUstepObjCRuntime.cpp
    A lldb/source/Plugins/LanguageRuntime/ObjC/GNUstepObjCRuntime/GNUstepObjCRuntime.h
    M lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
    M lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h
    M lldb/test/Shell/Expr/objc-gnustep-print.m

  Log Message:
  -----------
  [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




More information about the All-commits mailing list