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

Unified Diff: tools/gdbinit

Issue 375503009: Add gdbinit to tools/ directory. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: add copyright header 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/gdbinit
diff --git a/tools/gdbinit b/tools/gdbinit
new file mode 100644
index 0000000000000000000000000000000000000000..47542c558542da1db316c77e1f9c754bc94c9b60
--- /dev/null
+++ b/tools/gdbinit
@@ -0,0 +1,29 @@
+# Copyright 2014 the V8 project authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
Michael Starzinger 2014/07/07 16:14:30 nit: I have this comment in my file, maybe it's he
Jakob Kummerow 2014/07/07 16:21:19 Done.
+define job
+print ((v8::internal::HeapObject*)($arg0))->Print()
+end
+document job
+Print a v8 JavaScript object
+Usage: job tagged_ptr
+end
+
Michael Starzinger 2014/07/07 16:14:30 # Additional V8 command: Print code object contain
Jakob Kummerow 2014/07/07 16:21:19 Done.
+define jco
+job (v8::internal::Isolate::Current()->FindCodeObject((v8::internal::Address)$arg0))
+end
+document jco
+Print a v8 Code object from an internal code address
+Usage: jco pc
+end
+
Michael Starzinger 2014/07/07 16:14:29 # Additional V8 command: Print stack trace.
Jakob Kummerow 2014/07/07 16:21:18 Done.
+define jst
+print v8::internal::Isolate::Current()->PrintStack(stdout)
+end
+document jst
+Print the current JavaScript stack trace
+Usage: jst
+end
Michael Starzinger 2014/07/07 16:14:30 nit: Maybe add an empty newline to separate the la
Jakob Kummerow 2014/07/07 16:21:18 Done.
+set disassembly-flavor intel
+set disable-randomization off
« 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