[webkit-dev] [PATCH] JSCore with GDB

Filip Pizlo fpizlo at apple.com
Wed Dec 28 11:28:09 PST 2011


Can you combine this into a single patch and put it up for review on bugs.webkit.org?  Also please do add changelogs... It is our custom to have in the patches we put up for review. 

Which platforms is this tested on, btw?

Thanks for your work on this!

-Filip

On Dec 28, 2011, at 3:38 AM, Sanjoy Das <sanjoy at playingwithpointers.com> wrote:

> 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
> <0001-Allow-unwinding-through-ctiTrampoline.patch>
> <0002-New-GDB-plugin-for-JSCore.patch>
> <0003-Have-JSCore-register-generated-code.patch>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev


More information about the webkit-dev mailing list