Skip to content

Commit 35f88bf

Browse files
schuayCommit Bot
authored andcommitted
Fix node->Print() in gdb
With the default arg, node->Print() complains about a missing parameter in gdb. This CL adds a wrapper method instead of the default arg. Change-Id: Idd6e5bb8e0022255449d5f54420d930b55ca1134 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2198991 Reviewed-by: Tobias Tebbi <[email protected]> Commit-Queue: Jakob Gruber <[email protected]> Cr-Commit-Position: refs/heads/master@{#67773}
1 parent 61b1d02 commit 35f88bf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/compiler/node.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,8 @@ class V8_EXPORT_PRIVATE Node final {
144144
// Returns true if {owner1} and {owner2} are the only users of {this} node.
145145
bool OwnedBy(Node const* owner1, Node const* owner2) const;
146146

147-
void Print(int depth = 1) const;
147+
void Print() const { Print(1); }
148+
void Print(int depth) const;
148149
void Print(std::ostream&, int depth = 1) const;
149150

150151
private:

0 commit comments

Comments
 (0)