Skip to content
Newer
Older
100644 46 lines (38 sloc) 1.54 KB
fc2b06e @rocky First real progress at getting a program to trace correctly.
authored Aug 10, 2008
1 # -*- shell-script -*-
2 # Copyright (C) 2008 Rocky Bernstein rocky@gnu.org
3 #
4 # kshdb is free software; you can redistribute it and/or modify it under
5 # the terms of the GNU General Public License as published by the Free
6 # Software Foundation; either version 2, or (at your option) any later
7 # version.
8 #
9 # kshd is distributed in the hope that it will be useful, but WITHOUT ANY
10 # WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 # for more details.
13 #
14 # You should have received a copy of the GNU General Public License along
15 # with kshdb; see the file COPYING. If not, write to the Free Software
16 # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA.
17
b6db9cd @rocky Add test for compatible ksh. Infrastructure more generic and common w…
authored Aug 23, 2008
18 # Stuff common to kshdb and dbg-trace. Include the rest of options
fc2b06e @rocky First real progress at getting a program to trace correctly.
authored Aug 10, 2008
19 # processing. Also includes things which have to come before other includes
20 . ${_Dbg_libdir}/dbg-pre.sh
21
22 # All debugger lib code has to come before debugger command code.
23 typeset file
0eb28fb @rocky Explict calls to _Dbg_debugger works somewhat now.
authored Aug 23, 2008
24
fc2b06e @rocky First real progress at getting a program to trace correctly.
authored Aug 10, 2008
25 for file in ${_Dbg_libdir}/lib/*.sh ; do
26 source $file
27 done
28
de4e240 @rocky My first command works: quit! Added the framework to support this.
authored Aug 10, 2008
29 for file in ${_Dbg_libdir}/command/*.sh ; do
30 source $file
31 done
fc2b06e @rocky First real progress at getting a program to trace correctly.
authored Aug 10, 2008
32
63f5bd1 @rocky Debugger "source" command added. Remove hacks to workaround read bug.
authored Aug 23, 2008
33 # Have we already specified where to read debugger input from?
e687faa @rocky Rough cut at "set inferior-tty" and --tty option.
authored Dec 10, 2008
34 if [[ -n "$DBG_INPUT" ]] ; then
86f173d @rocky Small changes
authored Aug 24, 2008
35 _Dbg_do_source "$DBG_INPUT"
63f5bd1 @rocky Debugger "source" command added. Remove hacks to workaround read bug.
authored Aug 24, 2008
36 _Dbg_no_init=1
37 fi
fc2b06e @rocky First real progress at getting a program to trace correctly.
authored Aug 10, 2008
38
63f5bd1 @rocky Debugger "source" command added. Remove hacks to workaround read bug.
authored Aug 24, 2008
39 # Run the user's debugger startup file
1d1c7b2 @rocky Add "skip" command. Turn on journaling. Add "sort" command for future…
authored Sep 19, 2008
40 typeset _Dbg_startup_cmdfile=${HOME:-.}/.${_Dbg_debugger_name}rc
2f6abfd @rocky Redo columnize with nameref. DRY use some via do_list; Add set width.…
authored Sep 22, 2008
41 if [[ -z $_Dbg_no_init && -r $_Dbg_startup_cmdfile ]] ; then
1d1c7b2 @rocky Add "skip" command. Turn on journaling. Add "sort" command for future…
authored Sep 19, 2008
42 _Dbg_do_source $_Dbg_startup_cmdfile
63f5bd1 @rocky Debugger "source" command added. Remove hacks to workaround read bug.
authored Aug 24, 2008
43 fi
e687faa @rocky Rough cut at "set inferior-tty" and --tty option.
authored Dec 10, 2008
44
45 [[ -n "$_Dbg_tty" ]] && _Dbg_do_set inferior-tty $_Dbg_tty
Something went wrong with that request. Please try again.