From be42dc906ce3b012069c6631b53c839242e82265 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Thu, 29 Dec 2022 13:58:19 -0500 Subject: [PATCH] Fix GDB watchedit --- src/.gdbinit | 2 +- src/V3Broken.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/.gdbinit b/src/.gdbinit index 9ad13ac14..6d38ae9d0 100644 --- a/src/.gdbinit +++ b/src/.gdbinit @@ -28,7 +28,7 @@ document dtf end define watchedit - watch AstNode::s_editCntGbl==$arg0 + watch *(AstNode::s_editCntGbl)==$arg0 end document watchedit Verilator: Create watch on where an edit number is made diff --git a/src/V3Broken.cpp b/src/V3Broken.cpp index 2ff17e9f6..61c6a29e5 100644 --- a/src/V3Broken.cpp +++ b/src/V3Broken.cpp @@ -106,10 +106,11 @@ public: // may be varp() and other cross links that are bad. // When get this message, find what forgot to delete the // node by running GDB, where for node "" use: - // watch AstNode::s_editCntGbl==#### + // watch *(AstNode::s_editCntGbl)==#### // run // bt - std::cerr << "%Error: LeakedNode" << (withBack ? "with back pointer: " : ": "); + std::cerr << "%Error: LeakedNode" + << (withBack ? " with back pointer: " : ": "); nodep->AstNode::dump(std::cerr); std::cerr << endl; V3Error::incErrors();