aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreldritch horrors <pennae@lix.systems>2024-03-04 08:51:02 +0100
committereldritch horrors <pennae@lix.systems>2024-03-04 08:51:02 +0100
commit625df32afca54cbc20c1dfe01159fc2b5e549aed (patch)
treed775c7551641e3a0eaff318476269ef7365bf254
parent74272a9bc4ddb878080bd50bf718a6087b44631f (diff)
Merge pull request #9913 from 9999years/debugger-positions
Print positions in `--debugger`, instead of pointers (cherry picked from commit 49cf090cb2f51d6935756a6cf94d568cab063f81) Change-Id: Ic27917b2aab3657c28d599898377bf0c14753f8a
-rw-r--r--src/libcmd/repl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index d25ad582e..f5abaad9b 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -221,7 +221,7 @@ static std::ostream & showDebugTrace(std::ostream & out, const PosTable & positi
: static_cast<std::shared_ptr<AbstractPos>>(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);