Skip to content

Commit 81fe851

Browse files
JanWielemakerclaude
andcommitted
FIXED: crash on the debugger "depth" command without argument
The default depth was passed as a plain C integer rather than a tagged Prolog word, creating a bogus float term that crashes clause indexing. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent a26ae37 commit 81fe851

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pl-trace.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ traceAction(char *cmd, int port, LocalFrame frame, Choice bfr,
819819
debugstatus.skiplevel = levelFrame(frame) - 1;
820820
return PL_TRACE_ACTION_CONTINUE;
821821
case 'd': FeedBack("depth\n");
822-
setPrintOptions(def_arg ? 10 : consInt(num_arg));
822+
setPrintOptions(consInt(def_arg ? 10 : num_arg));
823823
return PL_TRACE_ACTION_AGAIN;
824824
case 'w': FeedBack("write\n");
825825
setPrintOptions(ATOM_write);

0 commit comments

Comments
 (0)