[webkit-dev] [PATCH] JSCore with GDB

Sanjoy Das sanjoy at playingwithpointers.com
Wed Dec 28 03:38:26 PST 2011


Hi,

The attached patches allow GDB to display full stack traces when
unwinding through JITted code.  To use this, you need gdb 7.4.

The first step is to build the plugin in Tool/gdb/JSCPlugin using the
Makefile.  The compile flags may need to be adjusted if gdb is
installed in a non-standard location, since gdb installs jit-reader.h
which is required to build the plugin.

JSPlugin.so then needs to be copied to `$(installdir)/lib/gdb', after
which it can be loaded from within GDB using `jit-reader-load
JSCPlugin.so'.  Once this is done GDB should be able to display
prettier stack traces when ENABLE_GDB_JIT_INTEGRATION is defined to 1
in JIT.h.

I've not included ChangeLog entries since they are a pain to rebase,
I'll add them once the code has been reviewed.

Thanks!
-- 
Sanjoy Das
http://playingwithpointers.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-unwinding-through-ctiTrampoline.patch
Type: text/x-diff
Size: 1169 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111228/d734b40a/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-New-GDB-plugin-for-JSCore.patch
Type: text/x-diff
Size: 10696 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111228/d734b40a/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Have-JSCore-register-generated-code.patch
Type: text/x-diff
Size: 8668 bytes
Desc: not available
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20111228/d734b40a/attachment-0002.bin>


More information about the webkit-dev mailing list