(expr, value, is_child)
return True
Function to explore array values.
        See Explorer.explore_expr for more information.
Function to explore array values.
        See Explorer.explore_expr for more information.
Function to explore array values . See Explorer . explore_expr for more information .
def explore_expr(expr, value, is_child):
        """Function to explore array values.
        See Explorer.explore_expr for more information.
        """
        target_type = value.type.target()
        print ("'%s' is an array of '%s'." % (expr, str(target_type)))
        index = 0
        try:
            index = int(raw_input("Enter the index of the element you want to "
                                  "explore in '%s': " % expr))
        except ValueError:
            if is_child:
                Explorer.return_to_parent_value()
            return False

        element = None
        try:
            element = value[index]
            str(element)
        except gdb.MemoryError:
            print ("Cannot read value at index %d." % index)
            raw_input("Press enter to continue... ")
            return True
            
        Explorer.explore_expr("%s[%d]" % (Explorer.guard_expr(expr), index),
                              element, True)
        return True
def explore_expr ( expr , value , is_child ) : target_type = value . type . target ( ) print ( "'%s' is an array of '%s'." % ( expr , str ( target_type ) ) ) index = 0 try : index = int ( raw_input ( "Enter the index of the element you want to " "explore in '%s': " % expr ) ) except ValueError : if is_child : Explorer . return_to_parent_value ( ) return False element = None try : element = value [ index ] str ( element ) except gdb . MemoryError : print ( "Cannot read value at index %d." % index ) raw_input ( "Press enter to continue... " ) return True Explorer . explore_expr ( "%s[%d]" % ( Explorer . guard_expr ( expr ) , index ) , element , True ) return True