Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: tools/gdb/gdb_chrome.py

Issue 422883002: gdb : importing gdb webkit path (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gdb/gdb_chrome.py
diff --git a/tools/gdb/gdb_chrome.py b/tools/gdb/gdb_chrome.py
index aa2e55a06ab8358c7a8d7b38d43ccdb2fe627dd2..22682d39d2bcdc285702239e5e8efbbbc1113d39 100644
--- a/tools/gdb/gdb_chrome.py
+++ b/tools/gdb/gdb_chrome.py
@@ -22,6 +22,11 @@ to print |any_variable| without using any printers.
import datetime
import gdb
import gdb.printing
+import os
+import sys
+
+sys.path.insert(0, os.path.join(os.path.dirname(os.path.abspath(__file__)),
Jeffrey Yasskin 2014/07/28 19:39:39 It's a bit safer to remove the element of sys.path
+ '..', '..', 'third_party', 'WebKit', 'Tools', 'gdb'))
import webkit
# When debugging this module, set the below variable to True, and then use
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698