mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
When showing an error, show source code.
This commit is contained in:
@@ -1024,8 +1024,12 @@ void AstNode::dumpPtrs(std::ostream& os) const {
|
||||
}
|
||||
|
||||
void AstNode::dumpTree(std::ostream& os, const string& indent, int maxDepth) {
|
||||
static int s_debugFileline = v3Global.opt.debugSrcLevel("fileline"); // --debugi-fileline 9
|
||||
os<<indent<<" "<<this<<endl;
|
||||
if (debug()>8) { os<<indent<<" "; dumpPtrs(os); }
|
||||
if (s_debugFileline >= 9) {
|
||||
os<<fileline()->warnContextSecondary();
|
||||
}
|
||||
if (maxDepth==1) {
|
||||
if (op1p()||op2p()||op3p()||op4p()) { os<<indent<<"1: ...(maxDepth)"<<endl; }
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user