From 49a6746942e164ddd1ef8d69f0d167e508c5b770 Mon Sep 17 00:00:00 2001 From: Enrico Granata Date: Fri, 21 Nov 2014 22:23:08 +0000 Subject: [PATCH] Per off-list feedback, this API returns the *first* value with a given name, not the *only* one. Rename it to reflect that llvm-svn: 222582 --- lldb/include/lldb/API/SBValueList.h | 2 +- lldb/scripts/Python/interface/SBValueList.i | 2 +- lldb/source/API/SBValueList.cpp | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lldb/include/lldb/API/SBValueList.h b/lldb/include/lldb/API/SBValueList.h index 154311d..812fdac 100644 --- a/lldb/include/lldb/API/SBValueList.h +++ b/lldb/include/lldb/API/SBValueList.h @@ -45,7 +45,7 @@ public: GetValueAtIndex (uint32_t idx) const; lldb::SBValue - GetValueByName (const char* name) const; + GetFirstValueByName (const char* name) const; lldb::SBValue FindValueObjectByUID (lldb::user_id_t uid); diff --git a/lldb/scripts/Python/interface/SBValueList.i b/lldb/scripts/Python/interface/SBValueList.i index 12aed86..0ba9b79 100644 --- a/lldb/scripts/Python/interface/SBValueList.i +++ b/lldb/scripts/Python/interface/SBValueList.i @@ -98,7 +98,7 @@ public: FindValueObjectByUID (lldb::user_id_t uid); lldb::SBValue - GetValueByName (const char* name) const; + GetFirstValueByName (const char* name) const; %pythoncode %{ def __len__(self): diff --git a/lldb/source/API/SBValueList.cpp b/lldb/source/API/SBValueList.cpp index e96f482..71fabe0 100644 --- a/lldb/source/API/SBValueList.cpp +++ b/lldb/source/API/SBValueList.cpp @@ -80,7 +80,7 @@ public: } lldb::SBValue - GetValueByName (const char* name) const + GetFirstValueByName (const char* name) const { if (name) { @@ -277,11 +277,11 @@ SBValueList::FindValueObjectByUID (lldb::user_id_t uid) } SBValue -SBValueList::GetValueByName (const char* name) const +SBValueList::GetFirstValueByName (const char* name) const { SBValue sb_value; if (m_opaque_ap.get()) - sb_value = m_opaque_ap->GetValueByName(name); + sb_value = m_opaque_ap->GetFirstValueByName(name); return sb_value; } -- 2.7.4