aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2024-03-05 06:58:29 +0100
committereldritch horrors <pennae@lix.systems>2024-03-31 17:28:25 +0000
commit6c29016a0972f20cb0c91a4d9c8020f09baf6293 (patch)
tree5acbafb203e465d030d6d41bf447ce9d552eb360 /src/libexpr/eval.hh
parent45623f077fdd53eb227bfee94f061835e86742ff (diff)
Merge pull request #9920 from 9999years/forbid-nested-debuggers
Forbid nested debuggers (cherry picked from commit e164b39ee90fd655dbb7f479fdd4fbe38cc883bd) Change-Id: Iff62f40fd251116516a63e2d3f9fb5b21480b16d
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index d2d8140e9..2291d618c 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -152,6 +152,7 @@ struct DebugTrace {
bool isError;
};
+
class EvalState : public std::enable_shared_from_this<EvalState>
{
public:
@@ -210,6 +211,7 @@ public:
*/
ReplExitStatus (* debugRepl)(ref<EvalState> es, const ValMap & extraEnv);
bool debugStop;
+ bool inDebugger = false;
int trylevel;
std::list<DebugTrace> debugTraces;
std::map<const Expr*, const std::shared_ptr<const StaticEnv>> exprEnvs;