Skip to content

Commit 9eb3f32

Browse files
author
Rik
committed
Print message when debugger reaches end of function when using dbstep (bug #67562)
* pt-eval.cc (debugger::repl): If code line is blank, indicating end of function, display the message "[End of function]" rather than "".
1 parent 17f5509 commit 9eb3f32

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libinterp/parse-tree/pt-eval.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ debugger::repl (const std::string& prompt_arg)
337337

338338
if (! line_buf.empty ())
339339
buf << curr_debug_line << ": " << line_buf;
340+
else
341+
buf << "[End of function]";
340342
}
341343
}
342344
}

0 commit comments

Comments
 (0)