mirror of
https://github.com/verilator/verilator.git
synced 2026-09-05 00:41:39 +02:00
Debug: Allow --debugi-V3PreShell to turn on flex debug
This commit is contained in:
+7
-2
@@ -48,9 +48,12 @@ protected:
|
||||
//---------------------------------------
|
||||
// METHODS
|
||||
|
||||
static int debug() {
|
||||
static int debug(bool reset=false) {
|
||||
static int level = -1;
|
||||
if (VL_UNLIKELY(level < 0)) level = v3Global.opt.debugSrcLevel(__FILE__);
|
||||
if (VL_UNLIKELY(level < 0) || reset) {
|
||||
level = v3Global.opt.debugSrcLevel(__FILE__);
|
||||
if (s_preprocp) s_preprocp->debug(debug());
|
||||
}
|
||||
return level;
|
||||
}
|
||||
|
||||
@@ -72,6 +75,8 @@ protected:
|
||||
}
|
||||
|
||||
void preproc (FileLine* fl, const string& modname, V3InFilter* filterp, V3ParseImp* parsep) {
|
||||
debug(true); // Recheck if debug on - first check was before command line passed
|
||||
|
||||
// Preprocess the given module, putting output in vppFilename
|
||||
UINFONL(1," Preprocessing "<<modname<<endl);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user