Skip to content

Commit d060df0

Browse files
committed
When program edits set _Dbg_running=0
1 parent 713bb93 commit d060df0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

lib/sig.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ _Dbg_exit_handler() {
123123
eval $_Dbg_old_EXIT_handler
124124
fi
125125

126+
# Note that we are no longer running a program
127+
_Dbg_running=0
128+
126129
typeset term_msg="normally"
127130
if [[ $_Dbg_debugged_exit_code != 0 ]] ; then
128131
term_msg="with code $_Dbg_debugged_exit_code"
@@ -137,6 +140,7 @@ _Dbg_exit_handler() {
137140
_Dbg_running=0
138141
_Dbg_exit_from_exit_handler=0
139142
_Dbg_in_exit_handler=1
143+
setopt shwordsplit ksharrays
140144
while : ; do
141145
_Dbg_process_commands
142146
if (($_Dbg_exit_from_exit_handler != 0)); then

test/data/frame-5.8.1.right

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ if (( $tracing )) then _Dbg_set_linetrace=1 fi
3737
+# Try some negative numbers
3838
+# should be the same as up
3939
+down -1
40-
->2 hanoi.sh called from file `zshdb' at line 141
41-
(zshdb:141):
40+
->2 hanoi.sh called from file `zshdb' at line 140
41+
(zshdb:140):
4242
+T 2
4343
##0 in file `hanoi.sh' at line 8
4444
##1 init called from file `hanoi.sh' at line 41

0 commit comments

Comments
 (0)