File tree Expand file tree Collapse file tree 26 files changed +111
-111
lines changed Expand file tree Collapse file tree 26 files changed +111
-111
lines changed Original file line number Diff line number Diff line change @@ -150,10 +150,10 @@ _Dbg_do_clear_brkpt() {
150150# If $1 is given just list those associated for that line.
151151_Dbg_do_list_brkpt () {
152152
153- eval " $_seteglob "
153+ eval " $_Dbg_seteglob "
154154 if (( $# != 0 )) ; then
155155 typeset brkpt_num=" $1 "
156- if [[ $brkpt_num != $int_pat ]]; then
156+ if [[ $brkpt_num != $_Dbg_int_pat ]]; then
157157 _Dbg_errmsg " Bad breakpoint number $brkpt_num ."
158158 elif [[ -z " ${_Dbg_brkpt_file[$brkpt_num]} " ]] ; then
159159 _Dbg_errmsg " Breakpoint entry $brkpt_num is not set."
@@ -171,7 +171,7 @@ _Dbg_do_list_brkpt() {
171171 fi
172172 _Dbg_print_brkpt_count ${_Dbg_brkpt_count[$i]}
173173 fi
174- eval " $_resteglob "
174+ eval " $_Dbg_resteglob "
175175 return 0
176176 elif (( ${# _Dbg_brkpt_line[@]} != 0 )) ; then
177177 typeset -i i
Original file line number Diff line number Diff line change @@ -31,11 +31,11 @@ Type a line containing "end" to indicate the end of them. Give
3131output is printed when it is hit, except what the commands print.'
3232
3333_Dbg_do_commands () {
34- eval " $_seteglob "
34+ eval " $_Dbg_seteglob "
3535 typeset num=$1
3636 typeset -i found=0
3737 case $num in
38- $int_pat )
38+ $_Dbg_int_pat )
3939 if [[ -z " ${_Dbg_brkpt_file[$num]} " ]] ; then
4040 _Dbg_errmsg " No breakpoint number $num ."
4141 return 1
@@ -45,7 +45,7 @@ _Dbg_do_commands() {
4545 * )
4646 _Dbg_errmsg " Invalid entry number skipped: $num "
4747 esac
48- eval " $_resteglob "
48+ eval " $_Dbg_resteglob "
4949 if (( found )) ; then
5050 _Dbg_brkpt_commands_defining=1
5151 _Dbg_brkpt_commands_current=$num
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ function _Dbg_do_condition {
5252 typeset -r n=$1
5353 shift
5454
55- eval " $_seteglob "
56- if [[ $n != $int_pat ]]; then
57- eval " $_resteglob "
55+ eval " $_Dbg_seteglob "
56+ if [[ $n != $_Dbg_int_pat ]]; then
57+ eval " $_Dbg_resteglob "
5858 _Dbg_errmsg " condition: Bad breakpoint number: $n "
5959 return 2
6060 fi
61- eval " $_resteglob "
61+ eval " $_Dbg_resteglob "
6262
6363 if [[ -z " ${_Dbg_brkpt_file[$n]} " ]] ; then
6464 _Dbg_msg " condition: Breakpoint entry $n is not set. Condition not changed."
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ _Dbg_do_debug() {
4848
4949 [[ -z $BASH ]] && BASH=' bash'
5050
51- eval " $_seteglob "
51+ eval " $_Dbg_seteglob "
5252 # Add appropriate bash debugging options
5353 if (( ! _Dbg_script )) ; then
5454 # Running "bash --debugger", so prepend "bash --debugger"
@@ -57,7 +57,7 @@ _Dbg_do_debug() {
5757 # Running "bashdb", so prepend "bash bashdb .."
5858 set_Dbg_debug_cmd=" typeset _Dbg_debug_cmd=\" $BASH $_Dbg_orig_0 -q -L $_Dbg_libdir $script_cmd \" " ;
5959 fi
60- eval " $_resteglob "
60+ eval " $_Dbg_resteglob "
6161 eval $set_Dbg_debug_cmd
6262
6363 if (( _Dbg_set_basename )) ; then
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ _Dbg_do_delete() {
4848 fi
4949 fi
5050
51- eval " $_seteglob "
51+ eval " $_Dbg_seteglob "
5252 for del in $to_go ; do
5353 case $del in
5454 $_Dbg_watch_pat )
5555 _Dbg_delete_watch_entry ${del: 0: ${# del} -1}
5656 ;;
57- $int_pat )
57+ $_Dbg_int_pat )
5858 if _Dbg_delete_brkpt_entry $del ; then
5959 _Dbg_msg " Deleted breakpoint ${del} "
6060 (( tot_found++ ))
@@ -64,7 +64,7 @@ _Dbg_do_delete() {
6464 _Dbg_errmsg " Invalid entry number skipped: $del "
6565 esac
6666 done
67- eval " $_resteglob "
67+ eval " $_Dbg_resteglob "
6868 return $tot_found
6969}
7070
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ _Dbg_do_handle() {
4646 return 1
4747 fi
4848
49- if [[ $sig == $int_pat ]]; then
49+ if [[ $sig == $_Dbg_int_pat ]]; then
5050 signame=$( _Dbg_signum2name $sig )
5151 if (( $? != 0 )) ; then
5252 _Dbg_errmsg " Bad signal number: $sig "
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ _Dbg_do_history() {
5252# $2 is where to stop or 0 if not given.
5353_Dbg_do_history_list () {
5454
55- eval " $_seteglob "
56- if [[ $1 != $int_pat ]] && [[ $1 != -$int_pat ]] && [[ -n $1 ]] ; then
55+ eval " $_Dbg_seteglob "
56+ if [[ $1 != $_Dbg_int_pat ]] && [[ $1 != -$_Dbg_int_pat ]] && [[ -n $1 ]] ; then
5757 _Dbg_msg " Invalid history number: $1 "
58- eval " $_resteglob "
58+ eval " $_Dbg_resteglob "
5959 return 1
6060 fi
61- eval " $_resteglob "
61+ eval " $_Dbg_resteglob "
6262
6363 _Dbg_hi=${# _Dbg_history[@]}
6464 local -i n=${1:- $_Dbg_hi -1}
Original file line number Diff line number Diff line change @@ -36,32 +36,32 @@ _Dbg_complete_info() {
3636_Dbg_do_info () {
3737
3838 if (( $# > 0 )) ; then
39- typeset subcmd =$1
39+ typeset _Dbg_subcmd =$1
4040 shift
4141
42- typeset -i found =0
42+ typeset -i _Dbg_found =0
4343
44- if [[ -n ${_Dbg_debugger_info_commands[$subcmd ]} ]] ; then
45- ${_Dbg_debugger_info_commands[$subcmd ]} " $@ "
44+ if [[ -n ${_Dbg_debugger_info_commands[$_Dbg_subcmd ]} ]] ; then
45+ ${_Dbg_debugger_info_commands[$_Dbg_subcmd ]} " $@ "
4646 return $?
4747 else
4848 # Look for a unique abbreviation
49- typeset -i count =0
50- typeset list ; list =" ${! _Dbg_debugger_info_commands[@]} "
51- for try in $list ; do
52- if [[ $try =~ ^$subcmd ]] ; then
53- subcmd= $try
54- (( count ++ ))
49+ typeset -i _Dbg_count =0
50+ typeset _Dbg_list ; _Dbg_list =" ${! _Dbg_debugger_info_commands[@]} "
51+ for _Dbg_try in $_Dbg_list ; do
52+ if [[ $_Dbg_try =~ ^$_Dbg_subcmd ]] ; then
53+ _Dbg_subcmd= " $_Dbg_try "
54+ (( _Dbg_count ++ ))
5555 fi
5656 done
57- (( found = (count == 1 )) )
57+ (( _Dbg_found = (_Dbg_count == 1 )) )
5858 fi
59- if (( found )) ; then
60- ${_Dbg_debugger_info_commands[$subcmd ]} " $@ "
59+ if (( _Dbg_found )) ; then
60+ ${_Dbg_debugger_info_commands[$_Dbg_subcmd ]} " $@ "
6161 return $?
6262 fi
6363
64- _Dbg_errmsg " Unknown info subcommand: $subcmd "
64+ _Dbg_errmsg " Unknown info subcommand: $_Dbg_subcmd "
6565 msg=_Dbg_errmsg
6666 else
6767 msg=_Dbg_msg
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ _Dbg_do_info_args() {
4646
4747 typeset -r frame_start=${1:- 0}
4848
49- eval " $_seteglob "
50- if [[ $frame_start != $int_pat ]] ; then
49+ eval " $_Dbg_seteglob "
50+ if [[ $frame_start != $_Dbg_int_pat ]] ; then
5151 _Dbg_errmsg " Bad integer parameter: $frame_start "
52- eval " $_resteglob "
52+ eval " $_Dbg_resteglob "
5353 return 1
5454 fi
5555
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ _Dbg_do_reverse() {
4646 typeset -i i
4747 for (( i= _Dbg_listline- 1 ; i > 0 ; i-- )) ; do
4848 _Dbg_get_source_line $i " $_Dbg_frame_last_filename "
49- eval " $_seteglob "
49+ eval " $_Dbg_seteglob "
5050 if [[ $_Dbg_source_line == * $_Dbg_last_search_pat * ]] ; then
51- eval " $_resteglob "
51+ eval " $_Dbg_resteglob "
5252 _Dbg_do_list $i 1
5353 _Dbg_listline=$i
5454 _Dbg_last_cmd=' search'
5555 return 0
5656 fi
57- eval " $_resteglob "
57+ eval " $_Dbg_resteglob "
5858 done
5959 _Dbg_msg " search pattern: $_Dbg_last_search_pat not found."
6060 return 1
@@ -91,15 +91,15 @@ _Dbg_do_search() {
9191 typeset -i i
9292 for (( i= _Dbg_listline+ 1 ; i < max_line ; i++ )) ; do
9393 _Dbg_get_source_line $i " $_Dbg_frame_last_filename "
94- eval " $_seteglob "
94+ eval " $_Dbg_seteglob "
9595 if [[ $_Dbg_source_line == * $_Dbg_last_search_pat * ]] ; then
96- eval " $_resteglob "
96+ eval " $_Dbg_resteglob "
9797 _Dbg_do_list $i 1
9898 _Dbg_listline=$i
9999 # _Dbg_last_cmd='/'
100100 return 0
101101 fi
102- eval " $_resteglob "
102+ eval " $_Dbg_resteglob "
103103 done
104104 _Dbg_errmsg " search pattern: $_Dbg_last_search_pat not found."
105105 return 1
You can’t perform that action at this time.
0 commit comments