RESOLVED FIXED100898
Add LLDB-Python scripts to support WebKit data types.
https://bugs.webkit.org/show_bug.cgi?id=100898
Summary Add LLDB-Python scripts to support WebKit data types.
Jer Noble
Reported 2012-10-31 15:32:32 PDT
Add LLDB-Python scripts to support WebKit data types.
Attachments
Patch (7.47 KB, patch)
2012-11-01 08:24 PDT, Jer Noble
no flags
Jer Noble
Comment 1 2012-11-01 08:24:35 PDT
Jer Noble
Comment 2 2012-11-01 08:40:38 PDT
Here's some sample output from the attached script: Process 18741 launched: '/Volumes/Users/jer/foo' (x86_64) Process 18741 stopped * thread #1: tid = 0x1c03, 0x0000000100028257 foo`main + 55 at foo.cpp:11, stop reason = EXC_BREAKPOINT (code=EXC_I386_BPT, subcode=0x0) frame #0: 0x0000000100028257 foo`main + 55 at foo.cpp:11 8 String test = "test"; 9 AtomicString atomic("atomic"); 10 asm ("int3"); -> 11 return 0; 12 } (lldb) p atomic (WTF::AtomicString) $0 = { length = 6, contents = 'atomic' } { (WTF::String) m_string = { length = 6, contents = 'atomic' } { (WTF::RefPtr<WTF::StringImpl>) m_impl = { (WTF::StringImpl *) m_ptr = 0x00000001003004b0 { length = 6, is8bit = 1, contents = 'atomic' } } } }
WebKit Review Bot
Comment 3 2012-11-01 12:16:29 PDT
Comment on attachment 171856 [details] Patch Clearing flags on attachment: 171856 Committed r133211: <http://trac.webkit.org/changeset/133211>
WebKit Review Bot
Comment 4 2012-11-01 12:16:33 PDT
All reviewed patches have been landed. Closing bug.
Adam Roben (:aroben)
Comment 5 2012-11-01 12:26:41 PDT
This is awesome!
Geoffrey Garen
Comment 6 2012-11-01 12:39:12 PDT
What's the syntax for importing these into an LLDB session?
Jer Noble
Comment 7 2012-11-01 15:40:56 PDT
(In reply to comment #6) > What's the syntax for importing these into an LLDB session? It's: script import {path to WebKit root}/Tools/lldb/lldb_webkit.py
Jer Noble
Comment 8 2012-11-01 15:42:20 PDT
(In reply to comment #7) > (In reply to comment #6) > > What's the syntax for importing these into an LLDB session? > > It's: > > script import {path to WebKit root}/Tools/lldb/lldb_webkit.py Oh, and FYI, LLDB apparently hates the tilde, so you'll have to put the entire path in. You can have the script automatically imported into lldb (and Xcode!) by adding the following to your ~/.lldbinit file: command script import {path to WebKit root}/Tools/lldb/lldb_webkit.py
Note You need to log in before you can comment on or make changes to this bug.