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

Side by Side Diff: tools/gdbinit

Issue 2186013002: Add a jss gdb macro that skips over the jitted stack in gdb (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 the V8 project authors. All rights reserved. 1 # Copyright 2014 the V8 project authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # Print HeapObjects. 5 # Print HeapObjects.
6 define job 6 define job
7 print ((v8::internal::HeapObject*)($arg0))->Print() 7 print ((v8::internal::HeapObject*)($arg0))->Print()
8 end 8 end
9 document job 9 document job
10 Print a v8 JavaScript object 10 Print a v8 JavaScript object
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 # Print JavaScript stack trace. 50 # Print JavaScript stack trace.
51 define jst 51 define jst
52 print v8::internal::Isolate::Current()->PrintStack((FILE*) stdout, 1) 52 print v8::internal::Isolate::Current()->PrintStack((FILE*) stdout, 1)
53 end 53 end
54 document jst 54 document jst
55 Print the current JavaScript stack trace 55 Print the current JavaScript stack trace
56 Usage: jst 56 Usage: jst
57 end 57 end
58 58
59 # Skip the JavaScript stack.
60 define jss
61 set $js_entry_sp=v8::internal::Isolate::Current()->thread_local_top()->js_entry_ sp_
62 set $rbp=*(void**)$js_entry_sp
63 set $rsp=$js_entry_sp + 2*sizeof(void*)
64 set $pc=*(void**)($js_entry_sp+sizeof(void*))
65 end
66 document jss
67 Skip the jitted stack on x64 to where we entered JS last.
68 Usage: jss
69 end
70
59 set disassembly-flavor intel 71 set disassembly-flavor intel
60 set disable-randomization off 72 set disable-randomization off
OLDNEW
« 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