Debug: More digits for debug file sorting.

This commit is contained in:
Wilson Snyder 2013-05-23 20:50:48 -04:00
parent 175d59ecba
commit 5765e099a6
3 changed files with 3 additions and 3 deletions

View File

@ -482,7 +482,7 @@ void V3Error::v3errorEnd (ostringstream& sstr) {
} }
#ifndef _V3ERROR_NO_GLOBAL_ #ifndef _V3ERROR_NO_GLOBAL_
if (debug()) { if (debug()) {
v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("final.tree",99)); v3Global.rootp()->dumpTreeFile(v3Global.debugFilename("final.tree",999));
V3Stats::statsFinalAll(v3Global.rootp()); V3Stats::statsFinalAll(v3Global.rootp());
V3Stats::statsReport(); V3Stats::statsReport();
} }

View File

@ -80,7 +80,7 @@ public:
string debugFilename(const string& nameComment, int newNumber=0) { string debugFilename(const string& nameComment, int newNumber=0) {
++m_debugFileNumber; ++m_debugFileNumber;
if (newNumber) m_debugFileNumber = newNumber; if (newNumber) m_debugFileNumber = newNumber;
char digits[100]; sprintf(digits, "%02d", m_debugFileNumber); char digits[100]; sprintf(digits, "%03d", m_debugFileNumber);
return opt.makeDir()+"/"+opt.prefix()+"_"+digits+"_"+nameComment; return opt.makeDir()+"/"+opt.prefix()+"_"+digits+"_"+nameComment;
} }
bool needHInlines() const { return m_needHInlines; } bool needHInlines() const { return m_needHInlines; }

View File

@ -677,7 +677,7 @@ int main(int argc, char** argv, char** env) {
} }
// Final steps // Final steps
V3Global::dumpGlobalTree("final.tree",99); V3Global::dumpGlobalTree("final.tree",999);
V3Error::abortIfWarnings(); V3Error::abortIfWarnings();
if (!v3Global.opt.lintOnly() && !v3Global.opt.cdc() if (!v3Global.opt.lintOnly() && !v3Global.opt.cdc()