gdb : importing gdb webkit path
BUG= Review URL: https://codereview.chromium.org/422883002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@286779 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
1
AUTHORS
1
AUTHORS
@ -14,6 +14,7 @@ Aaron Randolph <aaron.randolph@gmail.com>
|
||||
Abhishek Agarwal <abhishek.a21@samsung.com>
|
||||
Adam Roben <adam@github.com>
|
||||
Adam Treat <adam.treat@samsung.com>
|
||||
Addanki Gandhi Kishor <kishor.ag@samsung.com>
|
||||
Adenilson Cavalcanti <a.cavalcanti@partner.samsung.com>
|
||||
Aditya Bhargava <heuristicist@gmail.com>
|
||||
Ajay Berwal <ajay.berwal@samsung.com>
|
||||
|
@ -11,9 +11,6 @@ Add this to your gdb by amending your ~/.gdbinit as follows:
|
||||
import gdb_chrome
|
||||
end
|
||||
|
||||
This module relies on the WebKit gdb module already existing in
|
||||
your Python path.
|
||||
|
||||
Use
|
||||
(gdb) p /r any_variable
|
||||
to print |any_variable| without using any printers.
|
||||
@ -22,7 +19,16 @@ to print |any_variable| without using any printers.
|
||||
import datetime
|
||||
import gdb
|
||||
import gdb.printing
|
||||
import webkit
|
||||
import os
|
||||
import sys
|
||||
|
||||
sys.path.insert(0, os.path.join(
|
||||
os.path.dirname(os.path.abspath(__file__)),
|
||||
'..', '..', 'third_party', 'WebKit', 'Tools', 'gdb'))
|
||||
try:
|
||||
import webkit
|
||||
finally:
|
||||
sys.path.pop(0)
|
||||
|
||||
# When debugging this module, set the below variable to True, and then use
|
||||
# (gdb) python del sys.modules['gdb_chrome']
|
||||
|
Reference in New Issue
Block a user