mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
remove redundant 'debugMode' flag
This commit is contained in:
parent
7ccb2700c0
commit
13d02af079
6 changed files with 35 additions and 39 deletions
|
@ -128,8 +128,6 @@ public:
|
|||
|
||||
/* Debugger */
|
||||
void (* debugRepl)(EvalState & es, const ValMap & extraEnv);
|
||||
|
||||
bool debugMode;
|
||||
bool debugStop;
|
||||
bool debugQuit;
|
||||
std::list<DebugTrace> debugTraces;
|
||||
|
@ -149,7 +147,7 @@ public:
|
|||
[[gnu::noinline, gnu::noreturn]]
|
||||
void debugThrow(const E &error, const Env & env, const Expr & expr)
|
||||
{
|
||||
if (debugMode)
|
||||
if (debugRepl)
|
||||
runDebugRepl(&error, env, expr);
|
||||
|
||||
throw error;
|
||||
|
@ -162,7 +160,7 @@ public:
|
|||
// Call this in the situation where Expr and Env are inaccessible.
|
||||
// The debugger will start in the last context that's in the
|
||||
// DebugTrace stack.
|
||||
if (debugMode && !debugTraces.empty()) {
|
||||
if (debugRepl && !debugTraces.empty()) {
|
||||
const DebugTrace & last = debugTraces.front();
|
||||
runDebugRepl(&e, last.env, last.expr);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue