mirror of
https://github.com/NixOS/nix
synced 2025-06-27 04:21:16 +02:00
first whack at passing evalState as an arg to debuggerHook.
This commit is contained in:
parent
86ba0a702c
commit
667074b586
9 changed files with 15 additions and 14 deletions
|
@ -136,7 +136,7 @@ public:
|
|||
void debugThrow(const E &error, const Env & env, const Expr & expr) const
|
||||
{
|
||||
if (debuggerHook)
|
||||
debuggerHook(&error, env, expr);
|
||||
debuggerHook(*this, &error, env, expr);
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
@ -150,7 +150,7 @@ public:
|
|||
// DebugTrace stack.
|
||||
if (debuggerHook && !debugTraces.empty()) {
|
||||
const DebugTrace & last = debugTraces.front();
|
||||
debuggerHook(&e, last.env, last.expr);
|
||||
debuggerHook(*this, &e, last.env, last.expr);
|
||||
}
|
||||
|
||||
throw e;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue