File tree Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Expand file tree Collapse file tree 3 files changed +10
-11
lines changed Original file line number Diff line number Diff line change 2
2
# gdb-like "backtrace" debugger command
3
3
#
4
4
# Copyright (C) 2002-2006, 2008, 2010-2011, 2018-2019
5
- # Rocky Bernstein <rocky@gnu.org>
5
+ # 2024 Rocky Bernstein <rocky@gnu.org>
6
6
#
7
7
# This program is free software; you can redistribute it and/or
8
8
# modify it under the terms of the GNU General Public License as
@@ -153,8 +153,6 @@ function _Dbg_do_backtrace {
153
153
adjusted_pos=$( _Dbg_frame_adjusted_pos $i )
154
154
_Dbg_msg_nocr $( _Dbg_frame_prefix $i ) $i ${FUNCNAME[$adjusted_pos-1]}
155
155
156
- typeset parms=' '
157
-
158
156
# Print out parameter list.
159
157
if (( 0 != ${# BASH_ARGC[@]} )) ; then
160
158
_Dbg_frame_fn_param_str
Original file line number Diff line number Diff line change @@ -105,14 +105,14 @@ function _Dbg_resolve_expand_filename {
105
105
typeset -i n=${# _Dbg_dir[@]}
106
106
typeset -i i
107
107
for (( i= 0 ; i < n; i++ )) ; do
108
- typeset basename =" ${_Dbg_dir[i]} "
109
- if [[ " $basename " == ' \$cdir' ]] ; then
110
- basename =$_Dbg_cdir
111
- elif [[ " $basename " == ' \$cwd' ]] ; then
112
- basename =$( pwd)
108
+ typeset dirname =" ${_Dbg_dir[i]} "
109
+ if [[ " $dirname " == ' \$cdir' ]] ; then
110
+ dirname =$_Dbg_cdir
111
+ elif [[ " $dirname " == ' \$cwd' ]] ; then
112
+ dirname =$( pwd)
113
113
fi
114
- if [[ -f " $basename /$find_file " ]] ; then
115
- echo " $basename /$find_file "
114
+ if [[ -f " $dirname /$find_file " ]] ; then
115
+ echo " $dirname /$find_file "
116
116
return 0
117
117
fi
118
118
done
Original file line number Diff line number Diff line change 2
2
# hook.sh - Debugger trap hook
3
3
#
4
4
# Copyright (C) 2002-2011, 2014, 2017-2019
5
- # Rocky Bernstein <rocky@gnu.org>
5
+ # 2024 Rocky Bernstein <rocky@gnu.org>
6
6
#
7
7
# This program is free software; you can redistribute it and/or
8
8
# modify it under the terms of the GNU General Public License as
@@ -150,6 +150,7 @@ _Dbg_debug_trap_handler() {
150
150
_Dbg_full_filename=$( _Dbg_is_file " $_Dbg_frame_last_filename " )
151
151
if [[ -r " $_Dbg_full_filename " ]] ; then
152
152
_Dbg_file2canonic[" $_Dbg_frame_last_filename " ]=" $_Dbg_full_filename "
153
+ _Dbg_file2canonic[" ${BASH_SOURCE[1]} " ]=" $_Dbg_full_filename "
153
154
fi
154
155
155
156
# Run applicable action statement
You can’t perform that action at this time.
0 commit comments