Reviewers: Michael Starzinger,

Description:
Add gdbinit to tools/ directory.

Suggested usage: echo "source /path/to/v8/tools/gdbinit" >> ~/.gdbinit

Please review this at https://codereview.chromium.org/375503009/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files (+29, -0 lines):
  A tools/gdbinit


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.
+
+define job
+print ((v8::internal::HeapObject*)($arg0))->Print()
+end
+document job
+Print a v8 JavaScript object
+Usage: job tagged_ptr
+end
+
+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
+
+define jst
+print v8::internal::Isolate::Current()->PrintStack(stdout)
+end
+document jst
+Print the current JavaScript stack trace
+Usage: jst
+end
+set disassembly-flavor intel
+set disable-randomization off


--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to