From 0bdc57a14a7b5f301c28b218495d9cd87f875b78 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 1 Oct 2017 22:17:37 -0400 Subject: [PATCH] Fix lost .tree debug file extensions in recent commit. --- src/V3Ast.cpp | 2 +- src/V3Error.cpp | 2 +- src/V3LinkDot.cpp | 10 +++++----- src/V3Param.cpp | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/V3Ast.cpp b/src/V3Ast.cpp index 7917c72f3..34d5aa03b 100644 --- a/src/V3Ast.cpp +++ b/src/V3Ast.cpp @@ -979,7 +979,7 @@ void AstNode::dumpTreeGdb() { // For GDB only dumpTree(cout); } void AstNode::dumpTreeFileGdb(const char* filenamep) { // For GDB only - string filename = filenamep ? filenamep : v3Global.debugFilename("debug",98); + string filename = filenamep ? filenamep : v3Global.debugFilename("debug.tree",98); v3Global.rootp()->dumpTreeFile(filename); } diff --git a/src/V3Error.cpp b/src/V3Error.cpp index 9da4c4362..7a47813d1 100644 --- a/src/V3Error.cpp +++ b/src/V3Error.cpp @@ -215,7 +215,7 @@ void V3Error::v3errorEnd (ostringstream& sstr) { } #ifndef _V3ERROR_NO_GLOBAL_ if (debug()) { - v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("final",990)); + v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("final.tree",990)); if (s_errorExitCb) s_errorExitCb(); V3Stats::statsFinalAll(v3Global.rootp()); V3Stats::statsReport(); diff --git a/src/V3LinkDot.cpp b/src/V3LinkDot.cpp index 74db17d6f..921fd1de1 100644 --- a/src/V3LinkDot.cpp +++ b/src/V3LinkDot.cpp @@ -161,7 +161,7 @@ public: if (!diddump && v3Global.opt.dumpTree()) { diddump = true; dump("linkdot-preerr",true); - v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("linkdot-preerr")); + v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("linkdot-preerr.tree")); } } @@ -2286,21 +2286,21 @@ public: int V3LinkDot::debug() { return LinkDotState::debug(); } void V3LinkDot::linkDotGuts(AstNetlist* rootp, VLinkDotStep step) { - if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot")); + if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot.tree")); LinkDotState state (rootp, step); LinkDotFindVisitor visitor(rootp,&state); - if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-find")); + if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-find.tree")); if (step == LDS_PRIMARY || step == LDS_PARAMED) { // Initial link stage, resolve parameters LinkDotParamVisitor visitors(rootp,&state); - if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-param")); + if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-param.tree")); } else if (step == LDS_ARRAYED) {} else if (step == LDS_SCOPED) { // Well after the initial link when we're ready to operate on the flat design, // process AstScope's. This needs to be separate pass after whole hierarchy graph created. LinkDotScopeVisitor visitors(rootp,&state); - if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-scoped")); + if (LinkDotState::debug()>=5 || v3Global.opt.dumpTree()>=9) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("prelinkdot-scoped.tree")); } else v3fatalSrc("Bad case"); state.dump(); diff --git a/src/V3Param.cpp b/src/V3Param.cpp index ca03e5134..dc0bcdc3f 100644 --- a/src/V3Param.cpp +++ b/src/V3Param.cpp @@ -744,7 +744,7 @@ void ParamVisitor::visitCell(AstCell* nodep) { // Delete the parameters from the cell; they're not relevant any longer. if (nodep->paramsp()) nodep->paramsp()->unlinkFrBackWithNext()->deleteTree(); UINFO(8," Done with "<=10) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("param-out")); + //if (debug()>=10) v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("param-out.tree")); } // Now remember to process the child module at the end of the module