ishell
6fdd480ed4
[printing] Print properties backing store value and add a gdb macro for printing LayoutDescriptors.
...
BUG=
Review-Url: https://codereview.chromium.org/2537523002
Cr-Commit-Position: refs/heads/master@{#41326}
2016-11-28 19:28:09 +00:00
yangguo
388acfc4ed
Add missing "end" to gdb macro
...
TBR=jochen@chromium.org
Review-Url: https://codereview.chromium.org/2474433011
Cr-Commit-Position: refs/heads/master@{#40749}
2016-11-04 08:24:06 +00:00
yangguo
6ab61037f3
Add gdb macro to find assertion scopes on the stack.
...
This is how it would look like.
(gdb) bta
[1 ] V8_Fatal ../../src/base/logging.cc:67
[2 ] v8::internal::Heap::AllocateRaw ../../src/heap/heap-inl.h:298
[3 ] v8::internal::Heap::AllocateHeapNumber ../../src/heap/heap.cc:2432
[4 ] v8::internal::Factory::NewHeapNumber ../../src/factory.cc:1253
[5 ] v8::internal::Factory::NewNumber ../../src/factory.cc:1228
[6 ] v8::internal::__RT_impl_Runtime_ConstructDouble ../../src/runtime/runtime-test.cc:32
-> Allow HEAP_ALLOCATION (yes_gc)
-> Disallow HEAP_ALLOCATION (no_gc)
[7 ] v8::internal::Runtime_ConstructDouble ../../src/runtime/runtime-test.cc:24
R=jochen@chromium.org
Review-Url: https://codereview.chromium.org/2466263007
Cr-Commit-Position: refs/heads/master@{#40748}
2016-11-04 07:27:54 +00:00
ishell
e063b7118c
[gdb] Define print functions used by gdb macros in the top level namespace to make them always be available.
...
This should fix the following errors that sometimes appear when using V8 gdb macros:
Cannot evaluate function -- may be inlined
or
No symbol "xxx" in namespace "v8::internal".
Review-Url: https://codereview.chromium.org/2186293002
Cr-Commit-Position: refs/heads/master@{#38145}
2016-07-28 17:09:35 +00:00
jochen
a811808432
Add a jss gdb macro that skips over the jitted stack in gdb
...
Use it like this:
Program received signal SIGTRAP, Trace/breakpoint trap.
[Switching to Thread 0x7f50d02c4700 (LWP 8152)]
base::debug::(anonymous namespace)::DebugBreak ()
at ../../base/debug/debugger_posix.cc:230
230 }
(gdb) bt
at ../../base/debug/debugger_posix.cc:230
...
args_object=0x7f50d02bfe00, isolate=0x2f001c9e2020)
at ../../v8/src/builtins/builtins-api.cc:123
...
(gdb) jss
(gdb) bt
isolate=0x2f001c9e2020, is_construct=false, target=..., receiver=...,
argc=1, args=0x7f50d02c0518, new_target=...)
at ../../v8/src/execution.cc:111
isolate=0x2f001c9e2020, callable=..., receiver=..., argc=1,
argv=0x7f50d02c0518) at ../../v8/src/execution.cc:168
...
R=yangguo@chromium.org
BUG=
Review-Url: https://codereview.chromium.org/2186013002
Cr-Commit-Position: refs/heads/master@{#38121}
2016-07-28 09:06:39 +00:00
mvstanton
9386b861fd
Special printing for type feedback vectors.
...
Gdb macro jfv on an object will print it as a feedback vector.
Printouts look like this:
DebugPrint: 0x5dc0d2ad: [TypeFeedbackVector]
- length: 12
- ics with type info: 3
- generic ics: 0
ICSlot 0 CALL_IC MONOMORPHIC
[4]: 0x5dc0d365 WeakCell for 0x5dc0cd69 <JS Function foo (SharedFunctionInfo 0x5dc0cb0d)>
[5]: 0x4203c4c1 <Code: HANDLER>
ICSlot 1 LOAD_IC MONOMORPHIC
[6]: 0x5dc0d1f5 WeakCell for 0x3a710481 <Map(FAST_HOLEY_SMI_ELEMENTS)>
[7]: 0x4203a1c1 <Code: HANDLER>
ICSlot 2 LOAD_IC UNINITIALIZED
[8]: 0x3060d045 <Symbol: 711234650 <String[20]: uninitialized_symbol>>
[9]: 0x3060d045 <Symbol: 711234650 <String[20]: uninitialized_symbol>>
ICSlot 3 LOAD_IC MONOMORPHIC
[10]: 0x5dc0d3b5 WeakCell for 0x3a710d71 <Map(FAST_HOLEY_ELEMENTS)>
[11]: 0x4202af01 <Code: HANDLER>
BUG=
Review URL: https://codereview.chromium.org/1225403005
Cr-Commit-Position: refs/heads/master@{#29679}
2015-07-15 12:22:03 +00:00
jochen
21bca71c6d
Update PrintStack signature in gdbinit
...
BUG=none
R=yangguo@chromium.org
LOG=n
Review URL: https://codereview.chromium.org/1179053004
Cr-Commit-Position: refs/heads/master@{#28985}
2015-06-12 08:35:50 +00:00
jkummerow@chromium.org
f916299225
Fix "jst" GDB macro
...
R=svenpanne@chromium.org
Review URL: https://codereview.chromium.org/669383002
Cr-Commit-Position: refs/heads/master@{#24881}
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24881 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-10-24 15:04:08 +00:00
ishell@chromium.org
209855a6b6
More details printed for Map, DescriptorArray and TransitionArray.
...
R=verwaest@chromium.org
Review URL: https://codereview.chromium.org/659363002
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@24837 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-10-23 11:31:33 +00:00
mstarzinger@chromium.org
cb778b24ae
Fix trailing whitespace in gdbinit file.
...
R=jkummerow@chromium.org
Review URL: https://codereview.chromium.org/379133003
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22296 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-07-09 10:55:55 +00:00
jkummerow@chromium.org
34e09e5644
Add gdbinit to tools/ directory.
...
Suggested usage: echo "source /path/to/v8/tools/gdbinit" >> ~/.gdbinit
R=mstarzinger@chromium.org
Review URL: https://codereview.chromium.org/375503009
git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22252 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2014-07-07 16:21:29 +00:00