diff options
author | Ben Burdette <bburdette@protonmail.com> | 2022-05-16 09:20:51 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@protonmail.com> | 2022-05-16 09:20:51 -0600 |
commit | 667074b5867ffe40e3f1c59bd8e4ebf259f86aaa (patch) | |
tree | 6ae4400c5496b74532dd3b1b0fd72a40f6f5e97f /src/libexpr/eval.hh | |
parent | 86ba0a702c63b4a8ff79a07f9303318feb330642 (diff) |
first whack at passing evalState as an arg to debuggerHook.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r-- | src/libexpr/eval.hh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index f274278be..26717a6f8 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -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; |