[lldb] Add an API to derive language-specific runtime information (#116904)
commite660e6503ba14684bd460b7baaf3da7336d0f46e
authorAdrian Prantl <aprantl@apple.com>
Wed, 20 Nov 2024 16:49:07 +0000 (20 08:49 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2024 16:49:07 +0000 (20 08:49 -0800)
tree83c1e9caa0aad7fb700c6e01f1461aa432dd32c2
parentfb4ecada815ceee37536a26b4ff5ce231226b23e
[lldb] Add an API to derive language-specific runtime information (#116904)

This is motivated by exposing some Swift language-specific flags through
the API, in the example here it is used to communicate the Objective-C
runtime version. This could also be a meaningful extension point to get
information about "embedded: languages, such as extracting the C++
version in an Objective-C++ frame or something along those lines.
12 files changed:
lldb/include/lldb/API/SBFrame.h
lldb/include/lldb/API/SBStructuredData.h
lldb/include/lldb/Target/LanguageRuntime.h
lldb/include/lldb/Target/StackFrame.h
lldb/source/API/SBFrame.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h
lldb/source/Target/LanguageRuntime.cpp
lldb/source/Target/StackFrame.cpp
lldb/test/API/lang/objc/languageinfo/Makefile [new file with mode: 0644]
lldb/test/API/lang/objc/languageinfo/TestObjCLanguageInfo.py [new file with mode: 0644]
lldb/test/API/lang/objc/languageinfo/main.m [new file with mode: 0644]