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() {
150
150
# If $1 is given just list those associated for that line.
151
151
_Dbg_do_list_brkpt () {
152
152
153
- eval " $_seteglob "
153
+ eval " $_Dbg_seteglob "
154
154
if (( $# != 0 )) ; then
155
155
typeset brkpt_num=" $1 "
156
- if [[ $brkpt_num != $int_pat ]]; then
156
+ if [[ $brkpt_num != $_Dbg_int_pat ]]; then
157
157
_Dbg_errmsg " Bad breakpoint number $brkpt_num ."
158
158
elif [[ -z " ${_Dbg_brkpt_file[$brkpt_num]} " ]] ; then
159
159
_Dbg_errmsg " Breakpoint entry $brkpt_num is not set."
@@ -171,7 +171,7 @@ _Dbg_do_list_brkpt() {
171
171
fi
172
172
_Dbg_print_brkpt_count ${_Dbg_brkpt_count[$i]}
173
173
fi
174
- eval " $_resteglob "
174
+ eval " $_Dbg_resteglob "
175
175
return 0
176
176
elif (( ${# _Dbg_brkpt_line[@]} != 0 )) ; then
177
177
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
31
31
output is printed when it is hit, except what the commands print.'
32
32
33
33
_Dbg_do_commands () {
34
- eval " $_seteglob "
34
+ eval " $_Dbg_seteglob "
35
35
typeset num=$1
36
36
typeset -i found=0
37
37
case $num in
38
- $int_pat )
38
+ $_Dbg_int_pat )
39
39
if [[ -z " ${_Dbg_brkpt_file[$num]} " ]] ; then
40
40
_Dbg_errmsg " No breakpoint number $num ."
41
41
return 1
@@ -45,7 +45,7 @@ _Dbg_do_commands() {
45
45
* )
46
46
_Dbg_errmsg " Invalid entry number skipped: $num "
47
47
esac
48
- eval " $_resteglob "
48
+ eval " $_Dbg_resteglob "
49
49
if (( found )) ; then
50
50
_Dbg_brkpt_commands_defining=1
51
51
_Dbg_brkpt_commands_current=$num
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ function _Dbg_do_condition {
52
52
typeset -r n=$1
53
53
shift
54
54
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 "
58
58
_Dbg_errmsg " condition: Bad breakpoint number: $n "
59
59
return 2
60
60
fi
61
- eval " $_resteglob "
61
+ eval " $_Dbg_resteglob "
62
62
63
63
if [[ -z " ${_Dbg_brkpt_file[$n]} " ]] ; then
64
64
_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() {
48
48
49
49
[[ -z $BASH ]] && BASH=' bash'
50
50
51
- eval " $_seteglob "
51
+ eval " $_Dbg_seteglob "
52
52
# Add appropriate bash debugging options
53
53
if (( ! _Dbg_script )) ; then
54
54
# Running "bash --debugger", so prepend "bash --debugger"
@@ -57,7 +57,7 @@ _Dbg_do_debug() {
57
57
# Running "bashdb", so prepend "bash bashdb .."
58
58
set_Dbg_debug_cmd=" typeset _Dbg_debug_cmd=\" $BASH $_Dbg_orig_0 -q -L $_Dbg_libdir $script_cmd \" " ;
59
59
fi
60
- eval " $_resteglob "
60
+ eval " $_Dbg_resteglob "
61
61
eval $set_Dbg_debug_cmd
62
62
63
63
if (( _Dbg_set_basename )) ; then
Original file line number Diff line number Diff line change @@ -48,13 +48,13 @@ _Dbg_do_delete() {
48
48
fi
49
49
fi
50
50
51
- eval " $_seteglob "
51
+ eval " $_Dbg_seteglob "
52
52
for del in $to_go ; do
53
53
case $del in
54
54
$_Dbg_watch_pat )
55
55
_Dbg_delete_watch_entry ${del: 0: ${# del} -1}
56
56
;;
57
- $int_pat )
57
+ $_Dbg_int_pat )
58
58
if _Dbg_delete_brkpt_entry $del ; then
59
59
_Dbg_msg " Deleted breakpoint ${del} "
60
60
(( tot_found++ ))
@@ -64,7 +64,7 @@ _Dbg_do_delete() {
64
64
_Dbg_errmsg " Invalid entry number skipped: $del "
65
65
esac
66
66
done
67
- eval " $_resteglob "
67
+ eval " $_Dbg_resteglob "
68
68
return $tot_found
69
69
}
70
70
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ _Dbg_do_handle() {
46
46
return 1
47
47
fi
48
48
49
- if [[ $sig == $int_pat ]]; then
49
+ if [[ $sig == $_Dbg_int_pat ]]; then
50
50
signame=$( _Dbg_signum2name $sig )
51
51
if (( $? != 0 )) ; then
52
52
_Dbg_errmsg " Bad signal number: $sig "
Original file line number Diff line number Diff line change @@ -52,13 +52,13 @@ _Dbg_do_history() {
52
52
# $2 is where to stop or 0 if not given.
53
53
_Dbg_do_history_list () {
54
54
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
57
57
_Dbg_msg " Invalid history number: $1 "
58
- eval " $_resteglob "
58
+ eval " $_Dbg_resteglob "
59
59
return 1
60
60
fi
61
- eval " $_resteglob "
61
+ eval " $_Dbg_resteglob "
62
62
63
63
_Dbg_hi=${# _Dbg_history[@]}
64
64
local -i n=${1:- $_Dbg_hi -1}
Original file line number Diff line number Diff line change @@ -36,32 +36,32 @@ _Dbg_complete_info() {
36
36
_Dbg_do_info () {
37
37
38
38
if (( $# > 0 )) ; then
39
- typeset subcmd =$1
39
+ typeset _Dbg_subcmd =$1
40
40
shift
41
41
42
- typeset -i found =0
42
+ typeset -i _Dbg_found =0
43
43
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 ]} " $@ "
46
46
return $?
47
47
else
48
48
# 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 ++ ))
55
55
fi
56
56
done
57
- (( found = (count == 1 )) )
57
+ (( _Dbg_found = (_Dbg_count == 1 )) )
58
58
fi
59
- if (( found )) ; then
60
- ${_Dbg_debugger_info_commands[$subcmd ]} " $@ "
59
+ if (( _Dbg_found )) ; then
60
+ ${_Dbg_debugger_info_commands[$_Dbg_subcmd ]} " $@ "
61
61
return $?
62
62
fi
63
63
64
- _Dbg_errmsg " Unknown info subcommand: $subcmd "
64
+ _Dbg_errmsg " Unknown info subcommand: $_Dbg_subcmd "
65
65
msg=_Dbg_errmsg
66
66
else
67
67
msg=_Dbg_msg
Original file line number Diff line number Diff line change @@ -46,10 +46,10 @@ _Dbg_do_info_args() {
46
46
47
47
typeset -r frame_start=${1:- 0}
48
48
49
- eval " $_seteglob "
50
- if [[ $frame_start != $int_pat ]] ; then
49
+ eval " $_Dbg_seteglob "
50
+ if [[ $frame_start != $_Dbg_int_pat ]] ; then
51
51
_Dbg_errmsg " Bad integer parameter: $frame_start "
52
- eval " $_resteglob "
52
+ eval " $_Dbg_resteglob "
53
53
return 1
54
54
fi
55
55
Original file line number Diff line number Diff line change @@ -46,15 +46,15 @@ _Dbg_do_reverse() {
46
46
typeset -i i
47
47
for (( i= _Dbg_listline- 1 ; i > 0 ; i-- )) ; do
48
48
_Dbg_get_source_line $i " $_Dbg_frame_last_filename "
49
- eval " $_seteglob "
49
+ eval " $_Dbg_seteglob "
50
50
if [[ $_Dbg_source_line == * $_Dbg_last_search_pat * ]] ; then
51
- eval " $_resteglob "
51
+ eval " $_Dbg_resteglob "
52
52
_Dbg_do_list $i 1
53
53
_Dbg_listline=$i
54
54
_Dbg_last_cmd=' search'
55
55
return 0
56
56
fi
57
- eval " $_resteglob "
57
+ eval " $_Dbg_resteglob "
58
58
done
59
59
_Dbg_msg " search pattern: $_Dbg_last_search_pat not found."
60
60
return 1
@@ -91,15 +91,15 @@ _Dbg_do_search() {
91
91
typeset -i i
92
92
for (( i= _Dbg_listline+ 1 ; i < max_line ; i++ )) ; do
93
93
_Dbg_get_source_line $i " $_Dbg_frame_last_filename "
94
- eval " $_seteglob "
94
+ eval " $_Dbg_seteglob "
95
95
if [[ $_Dbg_source_line == * $_Dbg_last_search_pat * ]] ; then
96
- eval " $_resteglob "
96
+ eval " $_Dbg_resteglob "
97
97
_Dbg_do_list $i 1
98
98
_Dbg_listline=$i
99
99
# _Dbg_last_cmd='/'
100
100
return 0
101
101
fi
102
- eval " $_resteglob "
102
+ eval " $_Dbg_resteglob "
103
103
done
104
104
_Dbg_errmsg " search pattern: $_Dbg_last_search_pat not found."
105
105
return 1
You can’t perform that action at this time.
0 commit comments