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

Side by Side Diff: tools/gdbinit

Issue 2628293003: Add gdb macro for printing v8::Local content. (Closed)
Patch Set: Created 3 years, 11 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 call _v8_internal_Print_Object((void*)($arg0)) 7 call _v8_internal_Print_Object((void*)($arg0))
8 end 8 end
9 document job 9 document job
10 Print a v8 JavaScript object 10 Print a v8 JavaScript object
11 Usage: job tagged_ptr 11 Usage: job tagged_ptr
12 end 12 end
13 13
14 # Print v8::Local handle value.
15 define jlh
16 call _v8_internal_Print_Object(*(v8::internal::Object**)(*$arg0))
17 end
18 document jlh
19 Print content of a v8::Local handle
20 Usage: jlh local_handle
21 end
22
14 # Print Code objects containing given PC. 23 # Print Code objects containing given PC.
15 define jco 24 define jco
16 call _v8_internal_Print_Code((void*)($arg0)) 25 call _v8_internal_Print_Code((void*)($arg0))
17 end 26 end
18 document jco 27 document jco
19 Print a v8 Code object from an internal code address 28 Print a v8 Code object from an internal code address
20 Usage: jco pc 29 Usage: jco pc
21 end 30 end
22 31
23 # Print TypeFeedbackVector 32 # Print TypeFeedbackVector
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 print("%s -> %s %s (%s)\033[0m" % (color, prefix, match.group(2), match.grou p(1))) 108 print("%s -> %s %s (%s)\033[0m" % (color, prefix, match.group(2), match.grou p(1)))
100 end 109 end
101 end 110 end
102 document bta 111 document bta
103 Print stack trace with assertion scopes 112 Print stack trace with assertion scopes
104 Usage: bta 113 Usage: bta
105 end 114 end
106 115
107 set disassembly-flavor intel 116 set disassembly-flavor intel
108 set disable-randomization off 117 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