[all-commits] [llvm/llvm-project] 133bca: [lldb] Change interface of StructuredData::Array::...
Alex Langford via All-commits
all-commits at lists.llvm.org
Fri Nov 10 12:47:56 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 133bcacecfb70e8b1692f9c2c0a44ec640a0422a
https://github.com/llvm/llvm-project/commit/133bcacecfb70e8b1692f9c2c0a44ec640a0422a
Author: Alex Langford <alangford at apple.com>
Date: 2023-11-10 (Fri, 10 Nov 2023)
Changed paths:
M lldb/include/lldb/Utility/StructuredData.h
M lldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
M lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
M lldb/source/Plugins/Process/scripted/ScriptedThread.cpp
M lldb/source/Target/DynamicRegisterInfo.cpp
M lldb/unittests/tools/lldb-server/tests/MessageObjects.cpp
Log Message:
-----------
[lldb] Change interface of StructuredData::Array::GetItemAtIndexAsDictionary (#71961)
Similar to my previous patch (#71613) where I changed
`GetItemAtIndexAsString`, this patch makes the same change to
`GetItemAtIndexAsDictionary`.
`GetItemAtIndexAsDictionary` now returns a std::optional that is either
`std::nullopt` or is a valid pointer. Therefore, if the optional is
populated, we consider the pointer to always be valid (i.e. no need to
check pointer validity).
More information about the All-commits
mailing list