Fix GDB watchedit

This commit is contained in:
Wilson Snyder 2022-12-29 13:58:19 -05:00
parent bad4110b03
commit be42dc906c
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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 "<e###>" 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();