Skip to content

Commit

Permalink
Print positions in --debugger, instead of pointers
Browse files Browse the repository at this point in the history
  • Loading branch information
9999years committed Feb 3, 2024
1 parent 081dc5d commit 7d7483c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libcmd/repl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static std::ostream & showDebugTrace(std::ostream & out, const PosTable & positi
: positions[dt.expr.getPos() ? dt.expr.getPos() : noPos];

if (pos) {
out << pos;
out << *pos;
if (auto loc = pos->getCodeLines()) {
out << "\n";
printCodeLines(out, "", *pos, *loc);
Expand Down

0 comments on commit 7d7483c

Please sign in to comment.