首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

xcode运用lldb的python脚本查看WebKit的WTF:String和Vector等基础类

2013-04-02 
xcode使用lldb的python脚本查看WebKit的WTF::String和Vector等基础类(lldb) p v(WTF::VectorWTF::String,

xcode使用lldb的python脚本查看WebKit的WTF::String和Vector等基础类


(lldb) p v(WTF::Vector<WTF::String, 0>) $0 = { size = 2, capacity = 16 } { (WTF::String) [0] = { length = 5, contents = 'hello' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x000000010a45a7d0 { length = 5, is8bit = 1, contents = 'hello' } } } (WTF::String) [1] = { length = 5, contents = 'world' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x000000010a45ad80 { length = 5, is8bit = 1, contents = 'world' } } } (size_t) m_size = 2 (WTF::Vector<WTF::String, 0>::Buffer) m_buffer = { (WTF::VectorBufferBase<WTF::String>) WTF::VectorBufferBase<WTF::String> = { (WTF::String *) m_buffer = 0x000000010a45ae50 { length = 5, contents = 'hello' } (size_t) m_capacity = 16 } }}(lldb) p as(WTF::AtomicString) $1 = { length = 6, contents = 'thanks' } { (WTF::String) m_string = { length = 6, contents = 'thanks' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x000000010a45b0b0 { length = 6, is8bit = 1, contents = 'thanks' } } }}(lldb) p map(WTF::HashMap<WTF::String, WTF::String, WTF::StringHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::String> >) $2 = { (WTF::HashMap<WTF::String, WTF::String, WTF::StringHash, WTF::HashTraits<WTF::String>, WTF::HashTraits<WTF::String> >::HashTableType) m_impl = { tableSize = 8, keyCount = 2 } { (WTF::String) [0] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (WTF::String) [1] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (WTF::String) [2] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (WTF::String) [3] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (WTF::String) [4] = { length = 1, contents = 'w' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x000000010a45af70 { length = 1, is8bit = 1, contents = 'w' } } } (WTF::String) [5] = { length = 5, contents = 'world' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x000000010a45b080 { length = 5, is8bit = 1, contents = 'world' } } } (WTF::String) [6] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (WTF::String) [7] = { length = 0, contents = '' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x0000000000000000 { length = 0, is8bit = 0, contents = '' } } } (ValueType *) m_table = 0x000000010a45b000 (int) m_tableSize = 8 (int) m_tableSizeMask = 7 (int) m_keyCount = 2 (int) m_deletedCount = 0 }}

热点排行