File tree Expand file tree Collapse file tree 6 files changed +11
-9
lines changed 
source/Plugins/ScriptInterpreter/Python 
unittests/ScriptInterpreter/Python Expand file tree Collapse file tree 6 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetChildAtIndex(PyObj
312312  return  result.release ();
313313}
314314
315- int  lldb_private::python::SWIGBridge::LLDBSwigPython_GetIndexOfChildWithName (
315+ uint32_t  lldb_private::python::SWIGBridge::LLDBSwigPython_GetIndexOfChildWithName (
316316    PyObject * implementor, const  char  *child_name) {
317317  PyErr_Cleaner py_err_cleaner (true );
318318
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ class ScriptInterpreter : public PluginInterface {
352352    return  lldb::ValueObjectSP ();
353353  }
354354
355-   virtual  llvm::Expected<int >
355+   virtual  llvm::Expected<uint32_t >
356356  GetIndexOfChildWithName (const  StructuredData::ObjectSP &implementor,
357357                          const  char  *child_name) {
358358    return  llvm::createStringError (" Type has no child named '%s'" 
Original file line number Diff line number Diff line change @@ -158,8 +158,9 @@ class SWIGBridge {
158158  static  PyObject *LLDBSwigPython_GetChildAtIndex (PyObject *implementor,
159159                                                  uint32_t  idx);
160160
161-   static  int  LLDBSwigPython_GetIndexOfChildWithName (PyObject *implementor,
162-                                                     const  char  *child_name);
161+   static  uint32_t 
162+   LLDBSwigPython_GetIndexOfChildWithName (PyObject *implementor,
163+                                          const  char  *child_name);
163164
164165  static  lldb::ValueObjectSP
165166  LLDBSWIGPython_GetValueObjectSPFromSBValue (void  *data);
Original file line number Diff line number Diff line change @@ -1939,7 +1939,7 @@ lldb::ValueObjectSP ScriptInterpreterPythonImpl::GetChildAtIndex(
19391939  return  ret_val;
19401940}
19411941
1942- llvm::Expected<int > ScriptInterpreterPythonImpl::GetIndexOfChildWithName (
1942+ llvm::Expected<uint32_t > ScriptInterpreterPythonImpl::GetIndexOfChildWithName (
19431943    const  StructuredData::ObjectSP &implementor_sp, const  char  *child_name) {
19441944  if  (!implementor_sp)
19451945    return  llvm::createStringError (" Type has no child named '%s'" 
@@ -1951,7 +1951,7 @@ llvm::Expected<int> ScriptInterpreterPythonImpl::GetIndexOfChildWithName(
19511951  if  (!implementor)
19521952    return  llvm::createStringError (" Type has no child named '%s'" 
19531953
1954-   int  ret_val = INT32_MAX ;
1954+   uint32_t  ret_val = UINT32_MAX ;
19551955
19561956  {
19571957    Locker py_lock (this ,
@@ -1960,7 +1960,7 @@ llvm::Expected<int> ScriptInterpreterPythonImpl::GetIndexOfChildWithName(
19601960                                                                 child_name);
19611961  }
19621962
1963-   if  (ret_val == INT32_MAX )
1963+   if  (ret_val == UINT32_MAX )
19641964    return  llvm::createStringError (" Type has no child named '%s'" 
19651965  return  ret_val;
19661966}
Original file line number Diff line number Diff line change @@ -122,7 +122,7 @@ class ScriptInterpreterPythonImpl : public ScriptInterpreterPython {
122122  GetChildAtIndex (const  StructuredData::ObjectSP &implementor,
123123                  uint32_t  idx) override ;
124124
125-   llvm::Expected<int >
125+   llvm::Expected<uint32_t >
126126  GetIndexOfChildWithName (const  StructuredData::ObjectSP &implementor,
127127                          const  char  *child_name) override ;
128128
Original file line number Diff line number Diff line change @@ -90,7 +90,8 @@ PyObject *lldb_private::python::SWIGBridge::LLDBSwigPython_GetChildAtIndex(
9090  return  nullptr ;
9191}
9292
93- int  lldb_private::python::SWIGBridge::LLDBSwigPython_GetIndexOfChildWithName (
93+ uint32_t 
94+ lldb_private::python::SWIGBridge::LLDBSwigPython_GetIndexOfChildWithName (
9495    PyObject *implementor, const  char  *child_name) {
9596  return  0 ;
9697}
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments