mysqld-gdb.py
def std_vector_to_list(std_vector):
    """convert std::vector to list of python"""
    out_list = []
    value_reference = std_vector['_M_impl']['_M_start']
    while value_reference != std_vector['_M_impl']['_M_finish']:
        out_list.append(value_reference.dereference())
        value_reference += 1

    return out_list
convert std::vector to list of python
convert std::vector to list of python
convert std :: vector to list of python
def std_vector_to_list(std_vector):
    out_list = []
    value_reference = std_vector['_M_impl']['_M_start']
    while value_reference != std_vector['_M_impl']['_M_finish']:
        out_list.append(value_reference.dereference())
        value_reference += 1
    return out_list
def std_vector_to_list ( std_vector ) : out_list = [ ] value_reference = std_vector [ '_M_impl' ] [ '_M_start' ] while value_reference != std_vector [ '_M_impl' ] [ '_M_finish' ] : out_list . append ( value_reference . dereference ( ) ) value_reference += 1 return out_list
convert std::vector to list of python
convert std :: vector to list of python
"""convert std::vector to list of python"""
std_vector