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

Unified Diff: tools/gdb/chrome-gdb.py

Issue 2522523002: Add GDB auto-load file to the output directory.
Patch Set: Created 4 years, 1 month 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 | « chrome/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gdb/chrome-gdb.py
diff --git a/tools/gdb/chrome-gdb.py b/tools/gdb/chrome-gdb.py
new file mode 100644
index 0000000000000000000000000000000000000000..4f2c5381b705365d6ed66415b83761f4e51e944c
--- /dev/null
+++ b/tools/gdb/chrome-gdb.py
@@ -0,0 +1,6 @@
+# When this auto-load file is installed in the same directory as the Chromium
+# executable, it automatically registers pretty-printers when you start GDB [1].
+#
+# [1] https://sourceware.org/gdb/current/onlinedocs/gdb/Writing-a-Pretty_002dPrinter.html
+sys.path.insert(0, '../../tools/gdb')
+import gdb_chrome
« no previous file with comments | « chrome/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698