Projects
Extra
bashdb
Sign Up
Log In
Username
Password
We truncated the diff of some files because they were too big. If you want to see the full diff for every file,
click here
.
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 3
View file
bashdb.changes
Changed
@@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Tue Jan 17 14:00:15 UTC 2017 - aloisio@gmx.com + +- Update to 4.4-0.92 (see included ChangeLog) +- Added bashdb-rpmlintrc +- Spec cleanup + +------------------------------------------------------------------- Fri Aug 17 16:06:13 UTC 2012 - seife+obs@b1-systems.com - update to 4.2-0.8 to fix build on 12.1/12.2
View file
bashdb.spec
Changed
@@ -1,34 +1,44 @@ -# Packmangroup: System -# Packmanpackagename: bashdb -# Packman: Manfred Tremmel +# +# spec file for package bashdb +# +# Copyright (c) 2017 Packman Team <packman@links2linux.de> +# Copyright (c) 2003 Manfred Tremmel <Manfred.Tremmel@iiv.de> +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. +# Please submit bugfixes or comments via http://bugs.links2linux.org/ +# + + +%define tarver 4.4-0.92 Name: bashdb +Version: 4.4_0.92 +Release: 0 Summary: BASH with Debugger and Improved Debug Support and Error Handling Summary(de): BASH mit Debugger und verbessertem Debugging Support und Fehlerbehandlung -Version: 4.2_0.8 -%define tarver 4.2-0.8 -Release: 1 -License: GPL +License: GPL-2.0 Group: System/Shells Url: http://bashdb.sourceforge.net/ - -Source0: %{name}-%{tarver}.tar.bz2 - -Vendor: Packman -Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root -#Requires: bash >= 4.0 -#BuildRequires: bash >= 4.0 -Requires: bash -Requires: info -BuildRequires: bash +Source0: https://sourceforge.net/projects/bashdb/files/bashdb/%{tarver}/%{name}-%{tarver}.tar.bz2 +Source1: %{name}-rpmlintrc +BuildRequires: bash >= 3.0 BuildRequires: gcc -%if 0 -# it seems like 4.2-0.8 has no emacs "support" anymore --seife 20120817 -BuildRequires: emacs -BuildRequires: emacs-x11 -BuildRequires: xemacs -%endif +Requires: bash >= 3.0 +Requires: info +Requires(post): info +Requires(postun): info +BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +# not completely sure about this... +%requires_eq bash + %description This is a complete rewrite of the Korn Shell debugger from Bill @@ -43,46 +53,31 @@ haben einige weitere Verbesserungen beigetragen. %prep -%setup -n %{name}-%{tarver} +%setup -q -n %{name}-%{tarver} %build -%if 0 -# no patch -> not needed --seife 20120817 -aclocal -autoconf -automake -%endif %configure -%__make +make %{?_smp_mflags} %install -%makeinstall -#%{__mkdir_p} %{buildroot}%{_datadir}/bash/ -#%{__install} -m 644 dbg-*.inc %{buildroot}%{_datadir}/bash/ -%{__rm} -f "%{buildroot}%{_infodir}/dir" +%make_install +#mkdir -p %%{buildroot}%%{_datadir}/bash/ +#install -m 644 dbg-*.inc %%{buildroot}%%{_datadir}/bash/ +rm -f "%{buildroot}%{_infodir}/dir" chmod 755 %{buildroot}%{_datadir}/bashdb/getopts_long.sh -%clean -[ "%{buildroot}" != "/" ] && %{__rm} -rf "%{buildroot}" - %post -if [ -x /sbin/install-info ] ; then - /sbin/install-info --info-dir=%{_infodir} \ - %{_infodir}/bashdb.info.gz -fi +%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %preun -if [ -x /sbin/install-info ] ; then - /sbin/install-info --info-dir=%{_infodir} --remove bashdb -fi +%install_info_delete --info-dir=%{_infodir} %{_infodir}%{name}.info.gz %files %defattr(-,root,root) -%doc doc/*.html AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO -%{_bindir}/* -%{_mandir}/man1/* -%{_infodir}/* -%{_datadir}/bashdb -#%%{_datadir}/emacs/site-lisp/bashdb.* +%doc doc/*.html AUTHORS ChangeLog COPYING NEWS README THANKS TODO +%{_bindir}/%{name} +%{_datadir}/%{name} +%{_infodir}/%{name}.info%{ext_man} +%{_mandir}/man1/%{name}.1%{ext_man} %changelog
View file
bashdb-4.2-0.8.tar.bz2/elisp-comp
Deleted
@@ -1,90 +0,0 @@ -#!/bin/sh -# Copyright (C) 1995, 2000, 2003, 2004, 2005, 2009 Free Software -# Foundation, Inc. - -scriptversion=2009-04-28.21; # UTC - -# Franc,ois Pinard <pinard@iro.umontreal.ca>, 1995. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2, or (at your option) -# any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see <http://www.gnu.org/licenses/>. - -# As a special exception to the GNU General Public License, if you -# distribute this file as part of a program that contains a -# configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - -# This file is maintained in Automake, please report -# bugs to <bug-automake@gnu.org> or send patches to -# <automake-patches@gnu.org>. - -case $1 in - '') - echo "$0: No files. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; - -h | --h*) - cat <<\EOF -Usage: elisp-comp [--help] [--version] FILES... - -This script byte-compiles all `.el' files listed as FILES using GNU -Emacs, and put the resulting `.elc' files into the current directory, -so disregarding the original directories used in `.el' arguments. - -This script manages in such a way that all Emacs LISP files to -be compiled are made visible between themselves, in the event -they require or load-library one another. - -Report bugs to <bug-automake@gnu.org>. -EOF - exit $? - ;; - -v | --v*) - echo "elisp-comp $scriptversion" - exit $? - ;; -esac - -if test -z "$EMACS" || test "$EMACS" = "t"; then - # Value of "t" means we are running in a shell under Emacs. - # Just assume Emacs is called "emacs". - EMACS=emacs -fi - -tempdir=elc.$$ - -# Cleanup the temporary directory on exit. -trap 'ret=$?; rm -rf "$tempdir" && exit $ret' 0 -trap '(exit $?); exit' 1 2 13 15 - -mkdir $tempdir -cp "$@" $tempdir - -( - cd $tempdir - echo "(setq load-path (cons nil load-path))" > script - $EMACS -batch -q -l script -f batch-byte-compile *.el || exit $? - mv *.elc .. -) || exit $? - -(exit 0); exit 0 - -# Local Variables: -# mode: shell-script -# sh-indentation: 2 -# eval: (add-hook 'write-file-hooks 'time-stamp) -# time-stamp-start: "scriptversion=" -# time-stamp-format: "%:y-%02m-%02d.%02H" -# time-stamp-time-zone: "UTC" -# time-stamp-end: "; # UTC" -# End:
View file
bashdb-4.2-0.8.tar.bz2/ChangeLog -> bashdb-4.4-0.92.tar.bz2/ChangeLog
Changed
@@ -1,3 +1,544 @@ +2016-05-30 rocky <rocky@gnu.org> + + * ChangeLog, NEWS, configure.ac: Get ready for release 4.3-0.92 + +2016-05-30 rocky <rocky@gnu.org> + + * ChangeLog, command/delete.sh, lib/break.sh, + test/data/brkpt1.right, test/data/brkpt3.right, + test/data/bug-break.right, test/data/delete.right, + test/data/watch1.right: Better breakpoint deletion status This helps frontends like realgud + +2016-03-13 rocky <rocky@gnu.org> + + * : commit 3c3c938a4f84b68e5b22453cf4bfca3ee43ce953 Author: rocky + <rocky@gnu.org> Date: Sun Mar 13 21:30:05 2016 -0400 + +2016-03-13 rocky <rocky@gnu.org> + + * .gitignore, Makefile.am, README-git.md, README.CVS, + htdocs/index.html~: Add instructions to install from git * gitignore ignore *~ * no longer use VCS * remove ~ file erroneously checked in + +2016-03-12 rocky <rocky@gnu.org> + + * configure.ac: Use patch from Teej Tj to set AC_CONFIG_AUX_DIR + +2016-03-12 rocky <rocky@gnu.org> + + * INSTALL: We don't do bash 3.0 anymore. + +2016-03-12 rocky <rocky@gnu.org> + + * autogen.sh, configure.ac: Build adminstrivia fixed bug [#38] * autogen.sh - autoreconf does much of the heavy lifting now * configure.ac - adding AC_CONFIG_AUX_DIR allows configure to find + config.sub + +2015-10-26 rocky <rocky@gnu.org> + + * configure.ac, test/data/complete.right, test/data/sig.cmd, + test/data/sig.right: Bash 4.4 compliance + +2015-10-26 rocky <rocky@gnu.org> + + * test/data/Makefile.am, test/data/sig-43.cmd, + test/data/sig-43.right, test/integration/check-common.sh.in, + test/integration/test-sig.in: work aroud bash 4.3 signal handling + http://lists.gnu.org/archive/html/bug-bash/2015-08/msg00060.html See + bug #36 https://sourceforge.net/p/bashdb/bugs/36/ Work on bash 4.4 + coming up... + +2015-10-15 rocky <rocky@gnu.org> + + * doc/bashdb-man.pod, test/data/misc-output-41.right, + test/data/setshow.right, test/data/sig-43.right, + test/integration/test-sig.in: Nicholas Bamber's from issues #35 and + #36 bashdb-man.pod: spelling mistake SIGXFSZ in some envionments. + Here rather than just filtering out the signal handler from the test + results we set a handler to make it reproducible. Debian got SIGSYS + signal on the kfreebsd platform so we just filtered it out. + +2015-07-11 rocky <rocky@gnu.org> + + * : commit 54ed9443a4c83145185c2485d4e4a6f3704a8176 Author: rocky + <rocky@gnu.org> Date: Sat Jul 11 09:31:53 2015 -0400 + +2015-05-05 rocky <rocky@gnu.org> + + * Makefile.am: Remove a trailing slash which might mess up rm path + +2015-04-27 rocky <rocky@gnu.org> + + * htdocs/remake/index.html: make 3.81 -> make 4.1 + +2015-04-27 rocky <rocky@gnu.org> + + * command/set_sub/tty.sh, command/show_sub/tty.sh: Add tty set/show + +2015-04-27 rocky <rocky@gnu.org> + + * htdocs/remake/download.html, htdocs/remake/features.html, + htdocs/remake/index.html, htdocs/remake/mdb-old.html, + htdocs/remake/mdb.html: Remake html (even though this isn't part of + bashdb per se) + +2015-04-13 rocky <rocky@gnu.org> + + * Makefile.am, test/data/brkpt2.right, test/data/bug-break.right, + test/data/bug-source.right, test/data/sig-43.right, + test/data/sig-Darwin.right, test/data/sig.right, + test/data/tbreak.right, test/data/watch1.right: Guard against + install-data running rm /. Also, Line numbers in tracebacks have + changed. + +2015-01-23 rocky <rocky@gnu.org> + + * command/eval.sh, command/set_sub/highlight.sh, + command/show_sub/highlight.sh, init/opts.sh, lib/filecache.sh, + lib/hist.sh, lib/msg.sh, lib/processor.sh, lib/term-highlight.py, + test/data/brkpt2.right, test/data/bug-break.right, + test/data/bug-source.right, test/data/sig-43.right, + test/data/sig-Darwin.right, test/data/sig.right, + test/data/tbreak.right, test/data/watch1.right, + test/integration/test-bug-loc, test/unit/test-filecache.sh.in, + test/unit/test-get-sourceline.sh.in, test/unit/test-msg.sh.in: + --highlight changed from taking no parameters to + --highlight=dark|light. And we now accomdate dark terminals more + properly. + +2015-01-16 rocky <rocky@gnu.org> + + * command/help.sh, test/data/misc-output-41.right, + test/data/misc.right: Add One more sectioning - to help: Available + commands + +2015-01-15 rocky <rocky@gnu.org> + + * command/break.sh, lib/action.sh, lib/break.sh, lib/msg.sh, + test/data/action.right, test/data/brkpt1.right, + test/data/brkpt2.right, test/data/bug-loc.right, + test/data/delete.right, test/data/enable.right, test/data/file with + spaces.right, test/data/tbreak.right, test/data/watch1.right: Add + more sectioning commands and add lines under sectioning when syntax + highlight off. + +2014-12-14 rocky <rocky@gnu.org> + + * ChangeLog, test/data/sig.right: Update sig right file for bash < + 4.3 + +2014-12-14 rocky <rocky@gnu.org> + + * ChangeLog, Makefile.am, README, README.md, doc/Makefile.am, + make-check-filter.pl, test/data/bug-clear.right, + test/example/Makefile.am, test/example/bug-clear.sh, + test/example/clearbug.sh, test/integration/check-common.sh.in, + test/integration/test-bug-clear, test/integration/test-bug-loc: Make + "make distcheck" work + +2014-12-14 rocky <rocky@gnu.org> + + * ChangeLog, Makefile.am, NEWS, command/info_sub/variables.sh, + command/set_sub/highlight.sh, configure.ac, init/opts.sh, + make-check-filter.rb, test/integration/check-common.sh.in, + test/unit/test-save-restore.sh.in: Get ready for 0.91 release. + test/unit: Correct save/restore test. highlight.sh: doc is not just + source listsing make-check-filter.rb: handle weirdly encoded files + too variables: document "info variables" listings. check-common: + Add explicit --no-highlight to be ready for when --highlight is the + default + +2014-12-11 rocky <rocky@gnu.org> + + * lib/break.sh: Sync with zshdb + +2014-12-11 rocky <rocky@gnu.org> + + * command/break.sh, lib/break.sh, test/data/Makefile.am, + test/data/bug-clear.cmd, test/data/bug-clear.right, + test/data/bug-loc.right, test/example/clearbug.sh, + test/integration/Makefile.am, test/integration/test-bug-clear: Fix a + bug where a "clear" command effectively disabled other breakpoints + in the same file at other lines. Bug reported by Alex. + test/data/bug-loc.right: Highight markup seems to have changed a + little which is probably pygments changing. If this causes a problem + in other setups, we may have to revise this test more. + +2014-11-06 rocky <rocky@gnu.org> + + * lib/filecache.sh, lib/list.sh, test/data/Makefile.am, + test/data/bug-loc.cmd, test/data/bug-loc.right, + test/example/Makefile.am, test/example/bug-loc.sh, + test/example/library.sh, test/integration/Makefile.am, + test/integration/test-bug-loc: Fix bug in source code filename not + updating when stepping changes filenames to a cached highlighted + file. + +2014-11-04 rocky <rocky@gnu.org> + + * command/set_sub/highlight.sh: Document "set highlight". + +2014-11-03 rocky <rockyb@sourceforge.net> + + * lib/save-restore.sh: _Dbg_restore_user_vars(): got restore of + nullglob backwards. Thanks to John Purnell. + +2014-11-03 rocky <rockyb@sourceforge.net> + + * lib/hook.sh, lib/save-restore.sh, test/data/sig-43.right, + test/data/sig-Darwin.right, test/integration/.gitignore: + Save/restore shell option nullglob. + +2014-11-03 rocky <rockyb@sourceforge.net> + + * test/integration/test-sig.in: Hook custom darwin sig test in + integration tests. + +2014-09-15 rocky <rocky@gnu.org> + + * ChangeLog, NEWS, configure.ac: Release 4.3-0.9 - this time, for + sure! +
View file
bashdb-4.2-0.8.tar.bz2/INSTALL -> bashdb-4.4-0.92.tar.bz2/INSTALL
Changed
@@ -1,9 +1,9 @@ SHORT INSTRUCTIONS: -0. download the latest bash debugger from: +0. download the latest bash debugger from: http://prdownloads.sourceforge.net/bashdb/?sort_by=date&sort=desc - The name should start out bashdb-3.x... + The name should start out bashdb-4.x... and ungzip/untar it. If you are reading this, you've probably done that already. @@ -13,13 +13,13 @@ large scripts than read step 3 of the long instructions especially down at the bottom. Basically to speed up the initialy debugger loading, you need the bash source headers and need to run - configure using --with-bash-src. + configure using --with-bash-src. configure, build, test, and install the debugger: - cd bashdb-3.x... # <-- put name of release for 3.x... + cd bashdb-4.x... # <-- put name of release for 4.x... ./configure # use --with-bash-src to speed up bash debugging - make && make check + make && make check su -c 'make install' On systems which don't install GNU Make by default you may have to use @@ -34,11 +34,11 @@ that umask, you may want to set the umask to something more permissive like 022, before running the "make install". -That's it! +That's it! -- - - - +- - - - -This debugger needs a debugger-enabled version of Bash 3.2 or greater. +This debugger needs a debugger-enabled version of Bash 4.1 or greater. It is possible to try out the debugger without installing it by using the bashdb script that is in this directory. To do so you would invoke @@ -47,7 +47,7 @@ $BASH -L . ./bashdb *script-to-be-debugged* *options-to-debugged-program* -where $BASH above is bash 3.0 with debugging enabled. +where $BASH above is bash 4 with debugging enabled. A downside to this approach is that $0 in will be ``bashdb'' (or more likely ``./bashdb'') rather than the name of the script to be @@ -59,7 +59,7 @@ (as shown by ``pwd''), then having this at the beginning of your script: -#!/some-location/bash --debugger +#!/some-location/bash --debugger might also work. @@ -70,38 +70,39 @@ Steps 0 and 1 you've probably already done if you are reading these instructions. -0. download the latest bash debugger from: +0. download the latest bash debugger from: http://prdownloads.sourceforge.net/bashdb/?sort_by=date&sort=desc - The name should start out bashdb-3.x... + The name should start out bashdb-4.x... 1. ungzip/untar the bashdb debugger package. - gzcat bashdb-3.x... | tar -xvpf - # <-- put name of release for 3.x... + gzcat bashdb-4.x... | tar -xvpf - # <-- put name of release for 4.x... - (There's a shorter way to do this GNU tar 1.15 or later) + (There's a shorter way to do this GNU tar 1.15 or later) 2. Make your current directory the debugger directory. - cd bashdb-3.x... + cd bashdb-4.x... 3. Look at configure help options and decide what you want: - ./configure --help + ./configure --help is your friend here. - On those OS's that support it, you will probably want the extension - which enables reading large arrays fast and makes loading of large - scripts (e.g. configure) much quicker. For this you need the bash - source or at least the headers since we need to compile against - that. And you need to tell configure where to use it via --with-bash-src. + On those OS's that support it, it is possible to create an + extension which allows bashdb to set $0 (from "bashdb") to the + program being debugged. For this you need the bash source or at + least the headers since we need to compile against that. And you + need to tell configure where to use it via --with-bash-src. It is important that the source match the bash that is going to be - used when debugger. For example using bash release 3.1 source for - an installed bash 3.0 binary will not work as there are incompatiblities. - Should you have several bash binaries around, you can tell configure - which one you want to use for the debugger via the option --with-bash. + used when debugger. For example using bash release 4.1 source for + an installed bash 4.0 binary will not work as there are + incompatiblities. Should you have several bash binaries around, + you can tell configure which one you want to use for the debugger + via the option --with-bash. - For --with-bash use absolute paths, not relative paths or the + For --with-bash use absolute paths, not relative paths or the regression tests will fail. 4. configure the debugger to suit your needs: @@ -115,19 +116,19 @@ make # make options, but I think none are generally needed Any old "make" should work, but if it doesn't, use GNU make (sometimes - installed as "gmake". Again, even though there is verbiage pay attention + installed as "gmake". Again, even though there is verbiage pay attention to errors. If you don't have texi2html you may see some errors in building HTML pages; these you can ignore. 6. Run the regression tests: - make check # or gmake check + make check # or gmake check 7. Install the debugger: su -c 'make install' As above, pay attention to errors. In particular here if you don't have - permission to fully install or overwrite existing files you may get a + permission to fully install or overwrite existing files you may get a message that you can't run "bash --debugger" but must use the "bashdb" script. See above for a larger discussion of the difference. - + No, really. that's it!
View file
bashdb-4.2-0.8.tar.bz2/Makefile.am -> bashdb-4.4-0.92.tar.bz2/Makefile.am
Changed
@@ -1,4 +1,4 @@ -# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008, 2011 Rocky Bernstein +# Copyright (C) 2002, 2004-2008, 2011-2012 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -10,7 +10,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -33,49 +33,65 @@ html: @( cd $(top_builddir)/doc ; $(MAKE) $(MFLAGS) html ) +dist: distdir + # Set up the install target. Can't figure out how to use @PACKAGE@ bin_SCRIPTS = bashdb MOSTLYCLEANFILES = *.orig *.rej EXTRA_DIST = bashdb.in bashdb-trace.in bashdb-main.inc.in \ + compute-prefix.sh \ $(pkgdata_DATA) acinclude.m4 THANKS \ - ChangeLog ChangeLog.0 + README-git.md README.md \ + make-check-filter.rb check-prefix.sh \ + ChangeLog ChangeLog.0 data_DATA = -# -# This is ugly. Bash 3.0 requires things to be different than where -# many OS's would want to put bash debugger scripts or where a user -# may have asked for this to be put. It's wrong in the directory -# names it uses and for the name of the main include. -# So... using the place that configure determined bash +# +# This is ugly. Bash 3.0 requires things to be different than where +# many OS's would want to put bash debugger scripts or where a user +# may have asked for this to be put. It's wrong in the directory +# names it uses and for the name of the main include. +# So... using the place that configure determined bash # wants this to be put, (BASHDB_MAIN), we try to remove any existing files -# before making a symbolic link to it. Also if was in a directory +# before making a symbolic link to it. Also if was in a directory # (containing perhaps old code), that gets removed and a symbolic link -# is added or relocated if there was another symbolic link. Finally +# is added or relocated if there was another symbolic link. Finally # the basename that bash wants to use is symlinked to the main name # that this distribution uses dbg-main.sh, unless those are the same. -# +# OLD_DIR = $(dir @DBGR_MAIN@) OLD_MAIN = $(notdir @DBGR_MAIN@) PARENT_DIR = $(dir $(OLD_DIR)) -install-data-hook: - @if test -d $(DESTDIR)$(OLD_DIR) ; then \ - $(RM) -f $(DESTDIR)$(OLD_DIR)/* || true; \ + +install-data-hook: + if [ "$(DESTDIR)$(OLD_DIR)" = "/" -o "$(DESTDIR)$(OLD_DIR)" = "" ]; then \ + echo "Woah - the destination directory (DESTDIR) is not set right" && false; \ + elif test -d $(DESTDIR)$(OLD_DIR) ; then \ + $(RM) -f $(DESTDIR)$(OLD_DIR:/=)/* || true; \ $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \ - else if test -L $(DESTDIR)$(OLD_DIR:/=) ; then \ + elif test -L $(DESTDIR)$(OLD_DIR:/=) ; then \ $(RM) -f $(DESTDIR)$(OLD_DIR:/=) || true; \ $(MAKE) $(AM_MAKEFLAGS) install-pkgdataDATA; \ - fi; fi + fi; test -d $(DESTDIR)$(PKGDATADIR) || $(mkdir_p) $(DESTDIR)$(PKGDATADIR) -# Unit testing +#: Run all tests without bloated output +check-short: + $(MAKE) check 2>&1 | ruby @abs_top_srcdir@/make-check-filter.rb + +#: Same as "check" - integration tests. +test: check + +#: Unit testing check-unit: test-unit test-unit: cd test/unit && make check +#: Integration testing test-integration: cd test/integration && make check @@ -83,7 +99,12 @@ if MAINTAINER_MODE -ChangeLog: +#: Remove change log: ChangeLog +rmChangeLog: + rm ChangeLog || true + +#: Create ChangeLog from version control +ChangeLog: rmChangeLog git log --pretty --numstat --summary | $(GIT2CL) > $@ ACLOCAL_AMFLAGS=-I .
View file
bashdb-4.2-0.8.tar.bz2/Makefile.in -> bashdb-4.4-0.92.tar.bz2/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,7 +14,7 @@ @SET_MAKE@ -# Copyright (C) 2002, 2004, 2005, 2006, 2007, 2008, 2011 Rocky Bernstein +# Copyright (C) 2002, 2004-2008, 2011-2012 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -27,7 +26,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -35,6 +34,51 @@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -54,15 +98,18 @@ build_triplet = @build@ host_triplet = @host@ subdir = . -DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/bashdb-main.inc.in \ - $(srcdir)/bashdb-trace.in $(srcdir)/bashdb.in \ - $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \ - ChangeLog INSTALL NEWS THANKS TODO compile config.guess \ - config.sub depcomp elisp-comp install-sh ltmain.sh missing +DIST_COMMON = INSTALL NEWS README AUTHORS ChangeLog \ + $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/configure $(am__configure_deps) \ + $(srcdir)/config.h.in $(srcdir)/bashdb.in \ + $(srcdir)/bashdb-main.inc.in $(srcdir)/bashdb-trace.in COPYING \ + THANKS TODO compile config.guess config.sub depcomp install-sh \ + missing ltmain.sh ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \ @@ -92,34 +139,83 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(bindir)" "$(DESTDIR)$(datadir)" \ "$(DESTDIR)$(pkgdatadir)" SCRIPTS = $(bin_SCRIPTS) +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac DATA = $(data_DATA) $(pkgdata_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ - distdir dist dist-all distcheck +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ + cscope distdir dist dist-all distcheck +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) \ + $(LISP)config.h.in +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags +CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) distdir = $(PACKAGE)-$(VERSION) top_distdir = $(distdir) am__remove_distdir = \ - { test ! -d "$(distdir)" \ - || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \ - && rm -fr "$(distdir)"; }; } + if test -d "$(distdir)"; then \ + find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
View file
bashdb-4.2-0.8.tar.bz2/NEWS -> bashdb-4.4-0.92.tar.bz2/NEWS
Changed
@@ -1,9 +1,48 @@ +Version 4.3-0.92 +May 30, 2016 Mom + +- Better breakpoint deletion status This helps frontends like realgud +- Nicholas Bamber's from issues #35 and #36 bashdb-man.pod: s +- Works on bash 4.4 + pelling mistake SIGXFSZ in some envionments. +- Guard againyst install-data running rm / ! +- --highlight changed from taking no parameters to + --highlight=dark|light. And we now accomdate dark terminals more + properly. + +- Add tty set/show +- Add sectioning in online help + +Version 4.3-0.91 +Dec 14, 2014 Late Gecko + +- Fix bug in clear command +- Fix bug in source code filename not updating +- Fix bug in saving/restoring nullglob +- Document set highlight better + +Version 4.3-0.9 +Sept 15, 2014 + +- Make this work on bash 4.3. + +- Incompatible change: make more like gdb. 'u' is no longer up and 'd' + is 'delete' not 'down' + +- Add completion for eval? and eval to be current source line. + +- Changes to tolerate more foreign OS's like FreeBSD or old Solaris + +- add set/show tty debugger commands + +- Misc bugs fixed + Version 4.2-0.9 -2011-4-18 +2011-4-18 - Add loadable module set0 to set $0. Used when bashdb is run initially - Add loadable module "readc" which is builtin read with command completion - To use Both of the above, you need to compile with bash source + To use Both of the above, you need to compile with bash source --with-bash-src= - Some tab command completion if "readc" is installed - Remove hard-wiring of "info", "set", and "show" commands. @@ -14,16 +53,16 @@ - Unit tests are faster and have less white space but more useful information - eval? evaluates the RHS of an assignment statement -Version 4.2-0.8 +Version 4.2-0.8 - Reinstate code to set $0 can makes running via bashdb more like running without debugger. Add "set dollar0" command. - Some code reorganization to improve modularity and testing - Show frame number and backtrace line when switching frames. For front-ends -- Better temp file cleanup before debugger "kill -9". +- Better temp file cleanup before debugger "kill -9". - Better test for pygmentize and replace tabs with blanks in source code. -Version 4.2-0.7 - Ides of March +Version 4.2-0.7 - Ides of March 2011-3-15 - Updates for bash 4.2 @@ -43,19 +82,19 @@ Version 4.2-0.6 - giant madagascar day gecko 2010-12-10 -- Debugger "list" command carries on where we last left off and +- Debugger "list" command carries on where we last left off and centers around a line unless given a start and end line number. l> added. - Fixed --no-init (--nx, -n) option - Fixed to work on bash version 4.2 - Reorganized command-processing code to simplify it, make it more dynamic, and allow for better expansion increasing DRYness. As a result - some short abbreviations of commands have been dropped. Use "alias" + some short abbreviations of commands have been dropped. Use "alias" to add back any that you want. - Make "display" command more like gdb. Note this is an incompatible change. Left to do is to start indexing from 1. - Emacs lisp code has been removed. Please multi-debugger code from http://github.com/rocky/emacs-dbgr instead. -- Numerous little bugs fixed. +- Numerous little bugs fixed. Version 4.1-0.5 2010-10-27 @@ -69,13 +108,13 @@ Version 4.1-0.4 2010-07-09 -- Rewrite to use bash associative arrays (first in 4.0) and automatic +- Rewrite to use bash associative arrays (first in 4.0) and automatic file descriptor selection for input (first in 4.1). As a result, we need bash 4.1 or greater. -- "info program" shows the command to be executed. +- "info program" shows the command to be executed. -- tests run clean on Solaris +- tests run clean on Solaris - many help corrections and improvements @@ -90,7 +129,7 @@ - Handle file names with embedded blanks. More parameters in calls are now quoted properly - Add "set force", "step+", and "step-" commands. -- Preface more variable names with _Dbg_. Missed a use with "i" which +- Preface more variable names with _Dbg_. Missed a use with "i" which wreaked havoc in debugging some programs which used variable i. - Use builtin readarray if bash 4 (or greater) detected. - Fix bug in stepping inside a subshell @@ -99,7 +138,7 @@ Version 4.0-0.3 2009-04-10 - + - Allow arbitrary number of aliases - Bug fix for bash 4.x don't try to return negative values in functions - Allow building on bash 3.1 @@ -116,9 +155,9 @@ - Major rewrite and reorganization of code. - compatible with bash 4.0 - - "alias" command added, short commands names are now aliases and not + - "alias" command added, short commands names are now aliases and not hard-coded in - - autoeval mode added: if set, commands that aren't debugger commands are + - autoeval mode added: if set, commands that aren't debugger commands are eval'd - Add step+, step-, and "set force": force stepping to go to another line. - Add builtin set0. Debugger will $0 (program name) if possible. @@ -130,7 +169,7 @@ - add trace/untrace to add xtrace to a function. - Portable long options support via Stéphane Chazelas - More (most?) debugger variables now start with _Dbg_. - - Greatly improve GNU Emacs support via gdba. + - Greatly improve GNU Emacs support via gdba. - Many bug fixes. Version 3.1 0.09 @@ -144,7 +183,7 @@ Working towards inserting "set -u". - variable and tilde expansion now occurs in cd command. Note gdb - does tilde expansion but not variable expansion like $HOME. + does tilde expansion but not variable expansion like $HOME. - add linetrace delay @@ -166,7 +205,7 @@ - add a gdb-like "load" command to force reading in a file. - - negative numbers allowed in "frame" (and "up" and "down") commands. + - negative numbers allowed in "frame" (and "up" and "down") commands. In particular "frame -1" refers to the oldest frame. Some refactoring of this code. @@ -182,7 +221,7 @@ - Add "kill" command for those cases where "quit" doesn't work. - Add mechanism to set up signal handlers so debugger is entered, - or we just print the signal. + or we just print the signal. - document how to do call line tracing from within a program, i.e. like the above signal handling setup, the debugger is not entered @@ -190,7 +229,7 @@ - Allow an optional line-spec on "continue" debugger command. -- Add --enable-getopt option to disable GNU getopt for systems that have +- Add --enable-getopt option to disable GNU getopt for systems that have non-GNU getopt like NetBSD - Fix bug in tracking parameters $1, $2, etc @@ -206,7 +245,7 @@ Version 3.1 0.06 2006-07-21 -- Add gdb 'commands' command: +- Add gdb 'commands' command: runs debugger commands at a specified breakpoint - Add gdb 'info program'. (Shows program status) @@ -215,7 +254,7 @@ at the outset (set_trace) - Add a better line tracing: - * shows bash nesting,
View file
bashdb-4.2-0.8.tar.bz2/README -> bashdb-4.4-0.92.tar.bz2/README
Changed
@@ -1,20 +1,29 @@ -Here we have a gdb-like debugger for Bash 3.0 and higher. +Here we have a debugger (*the* debugger?) for Bash 3.0 and higher. + +The command syntax generally follows that of the +[zsh debugger ](https://github.com/rocky/zshdb) trepanning debuggers +and, more generally, GNU debugger *gdb*. There are 3 ways to get into the debugger. If bash (with debugger support enabled which is the default) is installed and the debugger are *both* installed properly. Then: +``` bash --debugger -- bash-script-name script-arg1 script-arg2... +``` If bash isn't installed in a way that will find bashdb, then: +``` bashdb [bashdb-opts] -- bash-script-name script-arg1 script-arg2... +``` The downside here is that $0 will be "bashdb" not bash-script-name. Also call stack will show the invocation to bashdb. Finally, to invoke the debugger from the script +``` # my script # work, work, work, ... @@ -23,31 +32,41 @@ # work, work, work or not... _Dbg_debugger; : # Calls the debugger at the line below stop_here +``` An advantage of the above is that there is no overhead up until you invoke the debugger. Typically for large bash programs like configuration scripts, this is a big win. -IMPORTANT NOTE IF YOU USE THE ABOVE TO DEBUG CONFIGURE SCRIPTS... +*IMPORTANT NOTE IF YOU USE THE ABOVE TO DEBUG CONFIGURE SCRIPTS...* -stdin is closed by configure early on. This causes the debugger to quit. +stdin is closed by configure early on. This causes the debugger to quit. You can get around this invoking a command script that sets debugger up input and output. Run tty to figure out what the terminal tty is set to. + +``` $ tty /dev/pts/3 - $ + $ +``` -Above it came out to /dev/pts/3. Let's go with that. Put the folliwng -in a file say /tmp/bashdb-configure +Above it came out to */dev/pts/3*. Let's go with that. Put the folliwng +in a file say */tmp/bashdb-configure* +``` source /dev/pts/3 tty /dev/pts/3 +``` -Now arrange to read that configuration file using the -x or --eval-command +Now arrange to read that configuration file using the *-x* or *--eval-command* switch: +``` source <bashdb-installation>/bashdb-trace -L <bashdb-installation> -x /tmp/bashdb-configure +``` -- - - +* [manual page](http://bashdb.sourceforge.net/bashdb-man.html) +* [tree-structured reference manual](http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html) +* [tree-structured reference manual](http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html) -See INSTALL for generic GNU configure installation instructions. +See *INSTALL* for generic GNU configure installation instructions.
View file
bashdb-4.4-0.92.tar.bz2/README-git.md
Added
@@ -0,0 +1,44 @@ +# To install from the sourceforge git repository + +## Prerequisites + +You'll need autotools + +* autoconf +* automake +* autohheader + +You'll also need packages + +* textinfo + +## Get sources + +Sources are in git. + +``` + $ git clone git://git.code.sf.net/p/bashdb/code bashdb-code + $ cd bashdb-code +``` + +## Build configure + +``` + $ bash ./autogen.sh +``` + +## Make code + +``` + $ bash ./configure +``` + +## Make and test code + +``` + $ make # but I prefer remake better + $ make check +``` + +## Install + $ make install # may need sudo
View file
bashdb-4.4-0.92.tar.bz2/README.md
Added
@@ -0,0 +1,72 @@ +Here we have a debugger (*the* debugger?) for Bash 3.0 and higher. + +The command syntax generally follows that of the +[zsh debugger ](https://github.com/rocky/zshdb) trepanning debuggers +and, more generally, GNU debugger *gdb*. + +There are 3 ways to get into the debugger. If bash (with debugger +support enabled which is the default) is installed and the debugger +are *both* installed properly. Then: + +``` + bash --debugger -- bash-script-name script-arg1 script-arg2... +``` + +If bash isn't installed in a way that will find bashdb, then: + +``` + bashdb [bashdb-opts] -- bash-script-name script-arg1 script-arg2... +``` + +The downside here is that $0 will be "bashdb" not +bash-script-name. Also call stack will show the invocation to bashdb. + +Finally, to invoke the debugger from the script + +``` + # my script + # work, work, work, ... + + # Load debugger support + source <bashdb-installation>/bashdb-trace -L <bashdb-installation> + # work, work, work or not... + _Dbg_debugger; : # Calls the debugger at the line below + stop_here +``` + +An advantage of the above is that there is no overhead up until you +invoke the debugger. Typically for large bash programs like +configuration scripts, this is a big win. + +*IMPORTANT NOTE IF YOU USE THE ABOVE TO DEBUG CONFIGURE SCRIPTS...* + +stdin is closed by configure early on. This causes the debugger to quit. +You can get around this invoking a command script that sets debugger +up input and output. Run tty to figure out what the terminal tty is set to. + +``` + $ tty + /dev/pts/3 + $ +``` + +Above it came out to */dev/pts/3*. Let's go with that. Put the folliwng +in a file say */tmp/bashdb-configure* + +``` + source /dev/pts/3 + tty /dev/pts/3 +``` + +Now arrange to read that configuration file using the *-x* or *--eval-command* +switch: + +``` + source <bashdb-installation>/bashdb-trace -L <bashdb-installation> -x /tmp/bashdb-configure +``` + +* [manual page](http://bashdb.sourceforge.net/bashdb-man.html) +* [tree-structured reference manual](http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html) +* [tree-structured reference manual](http://www.rodericksmith.plus.com/outlines/manuals/bashdbOutline.html) + +See *INSTALL* for generic GNU configure installation instructions.
View file
bashdb-4.2-0.8.tar.bz2/aclocal.m4 -> bashdb-4.4-0.92.tar.bz2/aclocal.m4
Changed
@@ -1,7 +1,7 @@ -# generated automatically by aclocal 1.11.1 -*- Autoconf -*- +# generated automatically by aclocal 1.14.1 -*- Autoconf -*- + +# Copyright (C) 1996-2013 Free Software Foundation, Inc. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, -# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -11,7981 +11,16 @@ # even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. +m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])]) m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl -m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],, -[m4_warning([this file was generated for autoconf 2.65. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.69],, +[m4_warning([this file was generated for autoconf 2.69. You have another version of autoconf. It may work, but is not guaranteed to. If you have problems, you may need to regenerate the build system entirely. -To do so, use the procedure documented by the package, typically `autoreconf'.])]) - -# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- -# -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is free software; the Free Software Foundation gives -# unlimited permission to copy and/or distribute it, with or without -# modifications, as long as this notice is preserved. - -m4_define([_LT_COPYING], [dnl -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, -# 2006, 2007, 2008 Free Software Foundation, Inc. -# Written by Gordon Matzigkeit, 1996 -# -# This file is part of GNU Libtool. -# -# GNU Libtool is free software; you can redistribute it and/or -# modify it under the terms of the GNU General Public License as -# published by the Free Software Foundation; either version 2 of -# the License, or (at your option) any later version. -# -# As a special exception to the GNU General Public License, -# if you distribute this file as part of a program or library that -# is built using GNU Libtool, you may include this file under the -# same distribution terms that you use for the rest of that program. -# -# GNU Libtool is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with GNU Libtool; see the file COPYING. If not, a copy -# can be downloaded from http://www.gnu.org/licenses/gpl.html, or -# obtained by writing to the Free Software Foundation, Inc., -# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. -]) - -# serial 56 LT_INIT - - -# LT_PREREQ(VERSION) -# ------------------ -# Complain and exit if this libtool version is less that VERSION. -m4_defun([LT_PREREQ], -[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, - [m4_default([$3], - [m4_fatal([Libtool version $1 or higher is required], - 63)])], - [$2])]) - - -# _LT_CHECK_BUILDDIR -# ------------------ -# Complain if the absolute build directory name contains unusual characters -m4_defun([_LT_CHECK_BUILDDIR], -[case `pwd` in - *\ * | *\ *) - AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; -esac -]) - - -# LT_INIT([OPTIONS]) -# ------------------ -AC_DEFUN([LT_INIT], -[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT -AC_BEFORE([$0], [LT_LANG])dnl -AC_BEFORE([$0], [LT_OUTPUT])dnl -AC_BEFORE([$0], [LTDL_INIT])dnl -m4_require([_LT_CHECK_BUILDDIR])dnl - -dnl Autoconf doesn't catch unexpanded LT_ macros by default: -m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl -m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl -dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 -dnl unless we require an AC_DEFUNed macro: -AC_REQUIRE([LTOPTIONS_VERSION])dnl -AC_REQUIRE([LTSUGAR_VERSION])dnl -AC_REQUIRE([LTVERSION_VERSION])dnl -AC_REQUIRE([LTOBSOLETE_VERSION])dnl -m4_require([_LT_PROG_LTMAIN])dnl - -dnl Parse OPTIONS -_LT_SET_OPTIONS([$0], [$1]) - -# This can be used to rebuild libtool when needed -LIBTOOL_DEPS="$ltmain" - -# Always use our own libtool. -LIBTOOL='$(SHELL) $(top_builddir)/libtool' -AC_SUBST(LIBTOOL)dnl - -_LT_SETUP - -# Only expand once: -m4_define([LT_INIT]) -])# LT_INIT - -# Old names: -AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) -AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) -dnl aclocal-1.4 backwards compatibility: -dnl AC_DEFUN([AC_PROG_LIBTOOL], []) -dnl AC_DEFUN([AM_PROG_LIBTOOL], []) - - -# _LT_CC_BASENAME(CC) -# ------------------- -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. -m4_defun([_LT_CC_BASENAME], -[for cc_temp in $1""; do - case $cc_temp in - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; - \-*) ;; - *) break;; - esac -done -cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` -]) - - -# _LT_FILEUTILS_DEFAULTS -# ---------------------- -# It is okay to use these file commands and assume they have been set -# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. -m4_defun([_LT_FILEUTILS_DEFAULTS], -[: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} -])# _LT_FILEUTILS_DEFAULTS - - -# _LT_SETUP -# --------- -m4_defun([_LT_SETUP], -[AC_REQUIRE([AC_CANONICAL_HOST])dnl -AC_REQUIRE([AC_CANONICAL_BUILD])dnl -_LT_DECL([], [host_alias], [0], [The host system])dnl -_LT_DECL([], [host], [0])dnl -_LT_DECL([], [host_os], [0])dnl -dnl -_LT_DECL([], [build_alias], [0], [The build system])dnl -_LT_DECL([], [build], [0])dnl -_LT_DECL([], [build_os], [0])dnl -dnl -AC_REQUIRE([AC_PROG_CC])dnl -AC_REQUIRE([LT_PATH_LD])dnl -AC_REQUIRE([LT_PATH_NM])dnl -dnl -AC_REQUIRE([AC_PROG_LN_S])dnl -test -z "$LN_S" && LN_S="ln -s" -_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl -dnl -AC_REQUIRE([LT_CMD_MAX_LEN])dnl -_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl -_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl -dnl -m4_require([_LT_FILEUTILS_DEFAULTS])dnl -m4_require([_LT_CHECK_SHELL_FEATURES])dnl -m4_require([_LT_CMD_RELOAD])dnl -m4_require([_LT_CHECK_MAGIC_METHOD])dnl -m4_require([_LT_CMD_OLD_ARCHIVE])dnl -m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl - -_LT_CONFIG_LIBTOOL_INIT([ -# See if we are running on zsh, and set the options which allow our -# commands through without removal of \ escapes INIT. -if test -n "\${ZSH_VERSION+set}" ; then - setopt NO_GLOB_SUBST -fi -])
View file
bashdb-4.2-0.8.tar.bz2/bashdb-main.inc -> bashdb-4.4-0.92.tar.bz2/bashdb-main.inc
Changed
@@ -23,7 +23,7 @@ typeset _Dbg_shell='/bin/bash' # The release name we are configured to run under. -typeset _Dbg_release='4.2-0.8' +typeset _Dbg_release='4.4-0.92' # Wrapper for debugger called from within bash via bash --debugger typeset _Dbg_bashdb_main='@BASHDB_MAIN@' @@ -38,7 +38,7 @@ typeset _Dbg_pname=${0##*/} ## Stuff set by autoconf/configure ### -typeset prefix=/usr/local # ${prefix}/share/bashdb often uses $prefix +typeset prefix=/usr/share # ${prefix}/share/bashdb often uses $prefix typeset _Dbg_libdir=${prefix}/share/bashdb ###
View file
bashdb-4.2-0.8.tar.bz2/bashdb-trace -> bashdb-4.4-0.92.tar.bz2/bashdb-trace
Changed
@@ -2,7 +2,8 @@ # This program needs to be SOURCE'd and is not called as an executable # Note: bashdb-trace is created from bashdb-trace.in # -# Copyright (C) 2006, 2007, 2008, 2010 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2006, 2007, 2008, 2010, 2012 +# Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -28,6 +29,11 @@ typeset _Dbg_trace_old_set_opts _Dbg_trace_old_set_opts=$- set +u +if [[ ! $BASH_VERSION =~ ^4. ]] ; then + echo "This debugger needs bash version 4 or greater. You have ${BASH_VERSION} " >&2 + exit 1 +fi + # Name we refer to ourselves by typeset _Dbg_debugger_name='bashdb' @@ -48,7 +54,7 @@ typeset -i _Dbg_set_basename=${BASHDB_BASENAME_ONLY:-0} typeset _Dbg_main=dbg-main.sh -typeset prefix=/usr/local # cygwin gets PKGDATADIR wrong +typeset prefix=/usr/share # cygwin gets PKGDATADIR wrong typeset _Dbg_libdir=${prefix}/share/bashdb typeset _Dbg_bindir=$(dirname $0) typeset _Dbg_tmpdir=/tmp
View file
bashdb-4.2-0.8.tar.bz2/bashdb-trace.in -> bashdb-4.4-0.92.tar.bz2/bashdb-trace.in
Changed
@@ -2,7 +2,8 @@ # This program needs to be SOURCE'd and is not called as an executable # Note: bashdb-trace is created from bashdb-trace.in # -# Copyright (C) 2006, 2007, 2008, 2010 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2006, 2007, 2008, 2010, 2012 +# Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -28,6 +29,11 @@ typeset _Dbg_trace_old_set_opts _Dbg_trace_old_set_opts=$- set +u +if [[ ! $BASH_VERSION =~ ^4. ]] ; then + echo "This debugger needs bash version 4 or greater. You have ${BASH_VERSION} " >&2 + exit 1 +fi + # Name we refer to ourselves by typeset _Dbg_debugger_name='@PACKAGE@'
View file
bashdb-4.2-0.8.tar.bz2/builtin/Makefile.in -> bashdb-4.4-0.92.tar.bz2/builtin/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -17,6 +16,51 @@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -37,10 +81,13 @@ @BUILD_BUILTINS_TRUE@bin_PROGRAMS = set0$(EXEEXT) readc$(EXEEXT) @BUILD_BUILTINS_TRUE@noinst_PROGRAMS = set0$(EXEEXT) readc$(EXEEXT) subdir = builtin -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(top_srcdir)/depcomp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d @@ -53,31 +100,61 @@ @BUILD_BUILTINS_TRUE@am_readc_OBJECTS = readc-readc.$(OBJEXT) readc_OBJECTS = $(am_readc_OBJECTS) readc_LDADD = $(LDADD) -readc_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(readc_CFLAGS) $(CFLAGS) $(readc_LDFLAGS) \ - $(LDFLAGS) -o $@ +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = +readc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(readc_CFLAGS) $(CFLAGS) \ + $(readc_LDFLAGS) $(LDFLAGS) -o $@ am__set0_SOURCES_DIST = set0.c @BUILD_BUILTINS_TRUE@am_set0_OBJECTS = set0-set0.$(OBJEXT) set0_OBJECTS = $(am_set0_OBJECTS) set0_LDADD = $(LDADD) -set0_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(set0_CFLAGS) $(CFLAGS) $(set0_LDFLAGS) \ - $(LDFLAGS) -o $@ +set0_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(set0_CFLAGS) $(CFLAGS) \ + $(set0_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) depcomp = $(SHELL) $(top_srcdir)/depcomp am__depfiles_maybe = depfiles am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ - $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ + $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ + $(AM_CFLAGS) $(CFLAGS) +AM_V_CC = $(am__v_CC_@AM_V@) +am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@) +am__v_CC_0 = @echo " CC " $@; +am__v_CC_1 = CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ - --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ - $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ + $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ + $(AM_LDFLAGS) $(LDFLAGS) -o $@ +AM_V_CCLD = $(am__v_CCLD_@AM_V@) +am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@) +am__v_CCLD_0 = @echo " CCLD " $@; +am__v_CCLD_1 = SOURCES = $(readc_SOURCES) $(set0_SOURCES) DIST_SOURCES = $(am__readc_SOURCES_DIST) $(am__set0_SOURCES_DIST) +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -99,7 +176,30 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -107,6 +207,7 @@ ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -126,6 +227,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@
View file
bashdb-4.4-0.92.tar.bz2/check-prefix.sh
Added
@@ -0,0 +1,25 @@ +#!/bin/bash +if [[ $# != 2 ]]; then + echo >&2 "Usage $0 BASH_PROGRAM PREFIX" + exit 3 +fi +SH_PROG=$1 +PREFIX=$2 +typeset -i rc=0 +bash_loc=$($SH_PROG -c 'echo ${SHELL}') +rc=$? +if (( rc != 0 )) ; then + echo >&2 "Something went wrong in getting \$SHELL for $SH_PROG" + exit $rc +fi +if [[ -z $bash_loc ]] ; then + echo >&2 "Something went wrong in setting bash location from \$SHELL for $SH_PROG" + exit 3 +fi +bashdb_main=$(strings $SH_PROG | grep bashdb) +check_loc=$(dirname $(dirname $bashdb_main)) +if [[ $PREFIX != $check_loc ]] ; then + echo >&2 "bash says prefix should be $check_loc. You gave $PREFIX" + exit 4 +fi +exit 0
View file
bashdb-4.2-0.8.tar.bz2/command/Makefile.in -> bashdb-4.4-0.92.tar.bz2/command/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,25 +78,45 @@ build_triplet = @build@ host_triplet = @host@ subdir = command -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -74,13 +138,39 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -114,6 +204,7 @@ ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -133,6 +224,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -159,6 +251,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -174,6 +267,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -190,6 +284,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@
View file
bashdb-4.2-0.8.tar.bz2/command/break.sh -> bashdb-4.4-0.92.tar.bz2/command/break.sh
Changed
@@ -1,5 +1,5 @@ # -*- shell-script -*- -# Copyright (C) 2008, 2009, 2010, 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2008-2011, 2015 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -54,13 +54,13 @@ shift typeset linespec - if (( $# > 0 )) ; then + if (( $# > 0 )) ; then linespec="$1" else linespec="$_Dbg_frame_last_lineno" fi shift - + typeset condition=${1:-''} if [[ "$linespec" == 'if' ]]; then linespec=$_Dbg_frame_last_lineno @@ -71,21 +71,21 @@ fi if [[ -z $condition ]] ; then condition=1 - else + else condition="$*" fi - + typeset filename typeset -i line_number typeset full_filename - + _Dbg_linespec_setup "$linespec" - - if [[ -n "$full_filename" ]] ; then - if (( line_number == 0 )) ; then + + if [[ -n "$full_filename" ]] ; then + if (( line_number == 0 )) ; then _Dbg_errmsg 'There is no line 0 to break at.' return 1 - else + else _Dbg_check_line $line_number "$full_filename" (( $? == 0 )) && \ _Dbg_set_brkpt "$full_filename" "$line_number" $is_temp "$condition" @@ -101,23 +101,23 @@ # use the current file. _Dbg_do_clear_brkpt() { typeset -r n=${1:-$_Dbg_frame_lineno} - + typeset filename typeset -i line_number typeset full_filename - + _Dbg_linespec_setup $n - - if [[ -n $full_filename ]] ; then - if (( line_number == 0 )) ; then + + if [[ -n $full_filename ]] ; then + if (( line_number == 0 )) ; then _Dbg_msg "There is no line 0 to clear." return 0 - else + else _Dbg_check_line $line_number "$full_filename" if (( $? == 0 )) ; then _Dbg_unset_brkpt "$full_filename" "$line_number" typeset -r found=$? - if [[ $found != 0 ]] ; then + if [[ $found != 0 ]] ; then _Dbg_msg "Removed $found breakpoint(s)." return $found fi @@ -132,9 +132,9 @@ # list breakpoints and break condition. # If $1 is given just list those associated for that line. _Dbg_do_list_brkpt() { - + eval "$_seteglob" - if (( $# != 0 )) ; then + if (( $# != 0 )) ; then typeset brkpt_num="$1" if [[ $brkpt_num != $int_pat ]]; then _Dbg_errmsg "Bad breakpoint number $brkpt_num." @@ -144,7 +144,7 @@ typeset -r -i i=$brkpt_num typeset source_file=${_Dbg_brkpt_file[$i]} source_file=$(_Dbg_adjust_filename "$source_file") - _Dbg_msg "Num Type Disp Enb What" + _Dbg_section "Num Type Disp Enb What" _Dbg_printf "%-3d breakpoint %-4s %-3s %s:%s" $i \ ${_Dbg_keep[${_Dbg_brkpt_onetime[$i]}]} \ ${_Dbg_yn[${_Dbg_brkpt_enable[$i]}]} \ @@ -158,8 +158,8 @@ return 0 elif (( ${#_Dbg_brkpt_line[@]} != 0 )); then typeset -i i - - _Dbg_msg "Num Type Disp Enb What" + + _Dbg_section "Num Type Disp Enb What" for (( i=1; i <= _Dbg_brkpt_max; i++ )) ; do typeset source_file=${_Dbg_brkpt_file[$i]} if [[ -n ${_Dbg_brkpt_line[$i]} ]] ; then
View file
bashdb-4.2-0.8.tar.bz2/command/delete.sh -> bashdb-4.4-0.92.tar.bz2/command/delete.sh
Changed
@@ -1,7 +1,8 @@ # -*- shell-script -*- # delete.sh - gdb-like "delete" debugger command # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2011 Rocky Bernstein +# Copyright (C) 2002-2006, 2008, 2011, 2016 Rocky Bernstein + # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -20,7 +21,7 @@ # MA 02111 USA. _Dbg_help_add delete \ -"delete {BRKPT-NUM}... +"delete {BRKPT-NUM}... Delete the breakpoint entry or entries. With no BRKPT-NUM, delete all breakpoints." 1 _Dbg_complete_brkpt_range @@ -30,22 +31,23 @@ typeset to_go; to_go=$@ typeset -i i typeset -i tot_found=0 - + eval "$_seteglob" - for del in $to_go ; do + for del in $to_go ; do case $del in $_Dbg_watch_pat ) - _Dbg_delete_watch_entry ${del:0:${#del}-1} - ;; + _Dbg_delete_watch_entry ${del:0:${#del}-1} + ;; $int_pat ) - _Dbg_delete_brkpt_entry $del - ((tot_found += $?)) - ;; + if _Dbg_delete_brkpt_entry $del ; then + _Dbg_msg "Deleted breakpoint ${del}" + ((tot_found++)) + fi + ;; * ) _Dbg_errmsg "Invalid entry number skipped: $del" esac done eval "$_resteglob" - (( tot_found != 0 )) && _Dbg_msg "Removed $tot_found breakpoint(s)." return $tot_found }
View file
bashdb-4.2-0.8.tar.bz2/command/eval.sh -> bashdb-4.4-0.92.tar.bz2/command/eval.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # Eval and Print commands. # -# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2011 Rocky Bernstein +# Copyright (C) 2002, 2003-2004, 2006, 2008, 2011, 2015 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -38,22 +38,43 @@ this, use eval?. Actually, any alias that ends in ? which is aliased to eval will do thie same thing. -See also "print" and "set autoeval".' +See also "print" and "set autoeval".' 1 _Dbg_complete_eval typeset -i _Dbg_show_eval_rc; _Dbg_show_eval_rc=1 +# Command completion for a debugger "eval" command. +_Dbg_complete_eval() { + typeset -a words; + typeset subcmds + IFS=' ' words=( $COMP_LINE ) + # If no + if (( ${#words[@]} == 1 )); then + if [[ ${words[0]} == 'eval?' ]] ; then + typeset extracted + _Dbg_eval_extract_condition "$_Dbg_source_line" + COMPREPLY=("$extracted") + else + COMPREPLY=("$_Dbg_source_line") + fi + else + COMPREPLY=() + fi +} + +complete -F _Dbg_complete_eval 'eval?' + _Dbg_do_eval() { builtin echo ". ${_Dbg_libdir}/dbg-set-d-vars.inc" > $_Dbg_evalfile if (( $# == 0 )) ; then - # FIXME: add parameter to get unhighlighted line, or + # FIXME: add parameter to get unhighlighted line, or # always save a copy of that in _Dbg_get_source_line typeset source_line_save="$_Dbg_source_line" typeset highlight_save=$_Dbg_set_highlight - _Dbg_set_highlight=0 + _Dbg_set_highlight='' _Dbg_get_source_line - # Were we called via ? as the suffix? + # Were we called via ? as the suffix? typeset suffix suffix=${_Dbg_orig_cmd:${#_Dbg_orig_cmd}-1:1} typeset source_line
View file
bashdb-4.2-0.8.tar.bz2/command/file.sh -> bashdb-4.4-0.92.tar.bz2/command/file.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # gdb-like "file" debugger command # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2010 +# Copyright (C) 2002-2008, 2010, 2013 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -31,7 +31,7 @@ _Dbg_errmsg "Need to give a filename for the file command" return 1 fi - _Dbg_glob_filename "$1" + _Dbg_tilde_expand_filename "$1" if [[ ! -f "$filename" ]] && [[ ! -x "$filename" ]] ; then _Dbg_errmsg "Source file $filename does not exist as a readable regular file." return 1
View file
bashdb-4.2-0.8.tar.bz2/command/frame.sh -> bashdb-4.4-0.92.tar.bz2/command/frame.sh
Changed
@@ -31,7 +31,7 @@ least-recently-entered end. So "frame -1" moves to the oldest frame. ' 1 _Dbg_complete_frame -# Command completion for a frame command +# Command completion for a debugger "frame" command. _Dbg_complete_frame() { typeset -i start; ((start=-_Dbg_stack_size+1)) typeset -i end; ((end=_Dbg_stack_size-1))
View file
bashdb-4.2-0.8.tar.bz2/command/help.sh -> bashdb-4.4-0.92.tar.bz2/command/help.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # help.sh - gdb-like "help" debugger command # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2010, 2011 +# Copyright (C) 2002-2006, 2008, 2010-2011, 2015 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -19,7 +19,7 @@ # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. -if [[ $0 == ${BASH_SOURCE[0]} ]] ; then +if [[ $0 == ${BASH_SOURCE[0]} ]] ; then dirname=${BASH_SOURCE[0]%/*} [[ $dirname == $0 ]] && top_dir='..' || top_dir=${dirname}/.. for file in help alias ; do source $top_dir/lib/${file}.sh; done @@ -34,19 +34,19 @@ Examples: -help +help help up help set help set args' 1 _Dbg_complete_help _Dbg_complete_help() { - typeset -a words; + typeset -a words; IFS=' ' words=( $COMP_LINE ) typeset subcmds subcmds="${!_Dbg_command_help[@]}" - if (( ${#words[@]} == 1 )); then + if (( ${#words[@]} == 1 )); then COMPREPLY=( $subcmds ) - elif (( ${#words[@]} == 2 )) ; then + elif (( ${#words[@]} == 2 )) ; then typeset commands="${!_Dbg_command_help[@]}" COMPREPLY=( $(compgen -W "$subcmds" "${words[1]}") ) else @@ -54,7 +54,7 @@ fi } -# print help command +# print help command function _Dbg_do_help { # We have to use be careful to make sure globbing, e.g. * isn't @@ -65,7 +65,7 @@ if [[ '' == $_Dbg_args ]] ; then _Dbg_help_sort_command_names - _Dbg_msg 'Available commands:' + _Dbg_section 'Available commands:' typeset -a list=("${_Dbg_sorted_command_names[@]}") _Dbg_list_columns _Dbg_msg '' @@ -82,7 +82,7 @@ if [[ -n ${_Dbg_command_help[$dbg_cmd]} ]] ; then _Dbg_msg "${_Dbg_command_help[$dbg_cmd]}" else - case $dbg_cmd in + case $dbg_cmd in i | in | inf | info ) _Dbg_info_help $2 ;; @@ -97,7 +97,7 @@ typeset -i count=0 typeset found_cmd typeset list; list="${!_Dbg_command_help[@]}" - for try in $list ; do + for try in $list ; do if [[ $try =~ ^$dbg_cmd ]] ; then found_cmd=$try ((count++)) @@ -128,9 +128,9 @@ _Dbg_alias_add '?' help # Demo it. -if [[ $0 == ${BASH_SOURCE[0]} ]] ; then - for file in sort columnize list msg ; do - source $top_dir/lib/${file}.sh; +if [[ $0 == ${BASH_SOURCE[0]} ]] ; then + for file in sort columnize list msg ; do + source $top_dir/lib/${file}.sh; done # source /usr/local/share/bashdb/bashdb-trace # _Dbg_debugger
View file
bashdb-4.2-0.8.tar.bz2/command/info_sub/Makefile.am -> bashdb-4.4-0.92.tar.bz2/command/info_sub/Makefile.am
Changed
@@ -1,6 +1,5 @@ MOSTLYCLEANFILES = *.orig *.rej -pkgdatadir = ${datadir}/@PACKAGE@/command/info_sub pkgdata_DATA = $(wildcard *.sh) pkgdatadir = ${datadir}/@PACKAGE@/command/info_sub
View file
bashdb-4.2-0.8.tar.bz2/command/info_sub/Makefile.in -> bashdb-4.4-0.92.tar.bz2/command/info_sub/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = command/info_sub -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/command/info_sub ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -242,8 +316,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -257,14 +334,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/command/info_sub/breakpoints.sh -> bashdb-4.4-0.92.tar.bz2/command/info_sub/breakpoints.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # "info breakpoints" debugger command # -# Copyright (C) 2010, 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2010-2012 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -38,5 +38,6 @@ # list breakpoints and break condition. # If $1 is given just list those associated for that line. _Dbg_do_info_breakpoints() { - _Dbg_do_list_brkpt $* + _Dbg_do_list_brkpt $@ + return $? }
View file
bashdb-4.2-0.8.tar.bz2/command/info_sub/variables.sh -> bashdb-4.4-0.92.tar.bz2/command/info_sub/variables.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # "info variables" debugger command # -# Copyright (C) 2010 Rocky Bernstein rocky@gnu.org +# Copyright (C) 2010, 2014 Rocky Bernstein rocky@gnu.org # # bashdb is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -18,103 +18,109 @@ # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. -# V [![pat]] List variables and values for whose variables names which -# match pat $1. If ! is used, list variables that *don't* match. +# V [![pat]] List variables and values for whose variables names which +# match pat $1. If ! is used, list variables that *don't* match. # If pat ($1) is omitted, use * (everything) for the pattern. + +_Dbg_help_add_sub info program 'info variables + +info variables -- All global and static variable names +' 1 + _Dbg_do_info_variables() { - local _Dbg_old_glob="$GLOBIGNORE" - GLOBIGNORE="*" - - local _Dbg_match="$1" - _Dbg_match_inverted=no - case ${_Dbg_match} in - \!*) - _Dbg_match_inverted=yes - _Dbg_match=${_Dbg_match#\!} - ;; - "") - _Dbg_match='*' - ;; - esac - local _Dbg_list=`declare -p` - local _Dbg_old_ifs=${IFS} - IFS=" -" - local _Dbg_temp=${_Dbg_list} - _Dbg_list="" - local -i i=0 - local -a _Dbg_list + local _Dbg_old_glob="$GLOBIGNORE" + GLOBIGNORE="*" - # GLOBIGNORE protects us against using the result of - # a glob expansion, but it doesn't protect us from - # actually performing it, and this can bring bash down - # with a huge _Dbg_source_ variable being globbed. - # So here we disable globbing momentarily - set -o noglob - for _Dbg_item in ${_Dbg_temp}; do - _Dbg_list[${i}]="${_Dbg_item}" - i=${i}+1 - done - set +o noglob - IFS=${_Dbg_old_ifs} - local _Dbg_item="" - local _Dbg_skip=0 - local _Dbg_show_cmd="" - _Dbg_show_cmd=`echo -e "case \\${_Dbg_item} in \n${_Dbg_match})\n echo yes;;\n*)\necho no;; esac"` - - for (( i=0; (( i < ${#_Dbg_list[@]} )) ; i++ )) ; do - _Dbg_item=${_Dbg_list[$i]} - case ${_Dbg_item} in - *\ \(\)\ ) - _Dbg_skip=1 - ;; - \}) - _Dbg_skip=0 - continue + local _Dbg_match="$1" + _Dbg_match_inverted=no + case ${_Dbg_match} in + \!*) + _Dbg_match_inverted=yes + _Dbg_match=${_Dbg_match#\!} + ;; + "") + _Dbg_match='*' + ;; esac - if [[ _Dbg_skip -eq 1 ]]; then - continue - fi + local _Dbg_list=`declare -p` + local _Dbg_old_ifs=${IFS} + IFS=" +" + local _Dbg_temp=${_Dbg_list} + _Dbg_list="" + local -i i=0 + local -a _Dbg_list - # Ignore all _Dbg_ variables here because the following - # substitutions takes a long while when it encounters - # a big _Dbg_source_ - case ${_Dbg_item} in - _Dbg_*) # Hide/ignore debugger variables. - continue; - ;; - esac - - _Dbg_item=${_Dbg_item/=/==/} - _Dbg_item=${_Dbg_item%%=[^=]*} - case ${_Dbg_item} in - _=);; - *=) - _Dbg_item=${_Dbg_item%=} - local _Dbg_show=`eval $_Dbg_show_cmd` - if [[ "$_Dbg_show" != "$_Dbg_match_inverted" ]]; then - if [[ -n ${_Dbg_item} ]]; then - local _Dbg_var=`declare -p ${_Dbg_item} 2>/dev/null` - if [[ -n "$_Dbg_var" ]]; then - # Uncomment the following 3 lines to use literal - # linefeeds -# _Dbg_var=${_Dbg_var//\\\\n/\\n} -# _Dbg_var=${_Dbg_var// -#/\n} - # Comment the following 3 lines to use literal linefeeds - _Dbg_var=${_Dbg_var//\\\\n/\\\\\\n} - _Dbg_var=${_Dbg_var// -/\\n} - _Dbg_var=${_Dbg_var#* * } - _Dbg_msg ${_Dbg_var} - fi - fi - fi - ;; - *) - ;; - esac + # GLOBIGNORE protects us against using the result of + # a glob expansion, but it doesn't protect us from + # actually performing it, and this can bring bash down + # with a huge _Dbg_source_ variable being globbed. + # So here we disable globbing momentarily + set -o noglob + for _Dbg_item in ${_Dbg_temp}; do + _Dbg_list[${i}]="${_Dbg_item}" + i=${i}+1 + done + set +o noglob + IFS=${_Dbg_old_ifs} + local _Dbg_item="" + local _Dbg_skip=0 + local _Dbg_show_cmd="" + _Dbg_show_cmd=`echo -e "case \\${_Dbg_item} in \n${_Dbg_match})\n echo yes;;\n*)\necho no;; esac"` + + for (( i=0; (( i < ${#_Dbg_list[@]} )) ; i++ )) ; do + _Dbg_item=${_Dbg_list[$i]} + case ${_Dbg_item} in + *\ \(\)\ ) + _Dbg_skip=1 + ;; + \}) + _Dbg_skip=0 + continue + esac + if [[ _Dbg_skip -eq 1 ]]; then + continue + fi + + # Ignore all _Dbg_ variables here because the following + # substitutions takes a long while when it encounters + # a big _Dbg_source_ + case ${_Dbg_item} in + _Dbg_*) # Hide/ignore debugger variables. + continue; + ;; + esac + + _Dbg_item=${_Dbg_item/=/==/} + _Dbg_item=${_Dbg_item%%=[^=]*} + case ${_Dbg_item} in + _=);; + *=) + _Dbg_item=${_Dbg_item%=} + local _Dbg_show=`eval $_Dbg_show_cmd` + if [[ "$_Dbg_show" != "$_Dbg_match_inverted" ]]; then + if [[ -n ${_Dbg_item} ]]; then + local _Dbg_var=`declare -p ${_Dbg_item} 2>/dev/null` + if [[ -n "$_Dbg_var" ]]; then + # Uncomment the following 3 lines to use literal + # linefeeds + # _Dbg_var=${_Dbg_var//\\\\n/\\n} + # _Dbg_var=${_Dbg_var// + #/\n} + # Comment the following 3 lines to use literal linefeeds + _Dbg_var=${_Dbg_var//\\\\n/\\\\\\n} + _Dbg_var=${_Dbg_var// + /\\n} + _Dbg_var=${_Dbg_var#* * } + _Dbg_msg ${_Dbg_var} + fi
View file
bashdb-4.2-0.8.tar.bz2/command/next.sh -> bashdb-4.4-0.92.tar.bz2/command/next.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # gdb-like "next" (step through) commmand. # -# Copyright (C) 2008, 2010 Rocky Bernstein rocky@gnu.org +# Copyright (C) 2008, 2010, 2015 Rocky Bernstein rocky@gnu.org # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -25,14 +25,15 @@ _Dbg_help_add next \ "next [COUNT] -Single step an statement skipping functions. +Single step an statement skipping functions. This is sometimes called +'step over' or 'step through'. If COUNT is given, stepping occurs that many times before stopping. Otherwise COUNT is one. COUNT an be an arithmetic expression. -Functions and source'd files are not traced. This is in contrast to -\"step\". See also \"skip\"." +Functions and source'd files are not traced. This is in contrast to +\"step\". See also \"step\", \"finish\" and \"skip\"." # Next command # $1 is command next+, next-, or next
View file
bashdb-4.2-0.8.tar.bz2/command/set_sub/Makefile.in -> bashdb-4.4-0.92.tar.bz2/command/set_sub/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = command/set_sub -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/command/set_sub ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -242,8 +316,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -257,14 +334,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/command/set_sub/highlight.sh -> bashdb-4.4-0.92.tar.bz2/command/set_sub/highlight.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # "set highlight" debugger command # -# Copyright (C) 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2011, 2014, 2015 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -18,15 +18,30 @@ # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. +if [[ $0 == ${BASH_SOURCE[0]} ]] ; then + dirname=${BASH_SOURCE[0]%/*} + [[ $dirname == $0 ]] && top_dir='..' || top_dir=${dirname}/.. + for file in help alias ; do source $top_dir/lib/${file}.sh; done +fi + _Dbg_help_add_sub set highlight \ -'set highlight [on|off] +'set highlight [dark|light|off|reset] + +Set using terminal highlight. + +Use "reset" to set highlighting on and force a redo of syntax +highlighting of already cached files. This may be needed if the +debugger was started without syntax highlighting initially. -Set syntax highlighting of source listings.' 1 +"dark" sets sets for highlighting for a terminal with a dark background and +"light" set for highlighting for a terminal with a light background. -_Dbg_next_complete[set highlight]='_Dbg_complete_edit' +See also: show highlight.' 1 + +_Dbg_next_complete[set highlight]='_Dbg_complete_highlight' _Dbg_complete_highlight() { - COMPREPLY=(on off reset) + COMPREPLY=(dark light off reset) } _Dbg_do_set_highlight() { @@ -36,21 +51,24 @@ _Dbg_errmsg "Can't run pygmentize. Setting forced off" return 1 fi - typeset onoff=${1:-'on'} - case $onoff in - on | 1 ) - _Dbg_set_highlight=1 + typeset onoff=${1:-'light'} + case $onoff in + on | light ) + _Dbg_set_highlight='light' + ;; + dark ) + _Dbg_set_highlight='dark' ;; off | 0 ) - _Dbg_set_highlight=0 + _Dbg_set_highlight='' ;; - reset ) - _Dbg_set_highlight=1 + reset ) + [[ -z $_Dbg_set_highlight ]] && _Dbg_set_highlight='light' _Dbg_filecache_reset _Dbg_readin $_Dbg_frame_last_filename ;; * ) - _Dbg_errmsg '"on", "off", or "reset" expected.' + _Dbg_errmsg '"dark", "light", "off", or "reset" expected.' return 1 esac _Dbg_do_show highlight
View file
bashdb-4.4-0.92.tar.bz2/command/set_sub/tty.sh
Added
@@ -0,0 +1,66 @@ +# -*- shell-script -*- +# "set tty" debugger command +# +# Copyright (C) 2012 Rocky Bernstein <rocky@gnu.org> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING. If not, write to +# the Free Software Foundation, 59 Temple Place, Suite 330, Boston, +# MA 02111 USA. + +# -*- shell-script -*- +# tty command. +# +# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2012 Rocky Bernstein +# rocky@gnu.org +# +# bashdb is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2, or (at your option) any later +# version. +# +# bashdb is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License along +# with bashdb; see the file COPYING. If not, write to the Free Software +# Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. + +_Dbg_help_add_sub set tty \ +'set tty {pseudo-device|&1} + +Set the output device for debugger output. Use "\&1" if you want debugger +output to go to STDOUT. +' 1 + +# Set output tty +_Dbg_do_set_tty() { + _Dbg_do_tty $@ + return $? +} + +_Dbg_do_set_help_tty() { + typeset label + + [[ -n $1 ]] && label=$(builtin printf '%-16s-- ' 'set tty') || label='' + _Dbg_msg_nocr \ + "${label}Debugger output goes to " + if [[ -n $_Dbg_tty ]] ; then + _Dbg_msg $(tty) + else + _Dbg_msg $_Dbg_tty + fi + return 0 +}
View file
bashdb-4.2-0.8.tar.bz2/command/show.sh -> bashdb-4.4-0.92.tar.bz2/command/show.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # show.sh - Show debugger settings # -# Copyright (C) 2002, 2003, 2006, 2007, 2008, 2010 +# Copyright (C) 2002-2003, 2006-2008, 2010, 2012 # 2011 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -48,59 +48,63 @@ (($# >= 1)) && shift if [[ -z $subcmd ]] ; then - typeset thing - typeset list; list=("${!_Dbg_debugger_show_commands[@]}") - sort_list 0 ${#list[@]}-1 - for thing in ${list[@]} ; do - [[ -n ${_Dbg_show_nolist[$thing]} ]] || _Dbg_do_show $thing 1 - done - return 0 + typeset thing + typeset list; list=("${!_Dbg_debugger_show_commands[@]}") + sort_list 0 ${#list[@]}-1 + for thing in ${list[@]} ; do + [[ -n ${_Dbg_show_nolist[$thing]} ]] || _Dbg_do_show $thing 1 + done + return 0 elif [[ -n ${_Dbg_debugger_show_commands[$subcmd]} ]] ; then - ${_Dbg_debugger_show_commands[$subcmd]} "$label" "$@" - return 0 + ${_Dbg_debugger_show_commands[$subcmd]} "$label" "$@" + return 0 fi case $subcmd in - lin | line | linet | linetr | linetra | linetrac | linetrace ) - [[ -n $label ]] && label=$(_Dbg_printf_nocr "%-12s: " 'line tracing') - [[ -n $label ]] && label='line tracing: ' - typeset onoff="off." - (( _Dbg_set_linetrace != 0 )) && onoff='on.' - _Dbg_msg \ - "${label}Show line tracing is" $onoff - _Dbg_msg \ - "${label}Show line trace delay is ${_Dbg_linetrace_delay}." - ;; + lin | line | linet | linetr | linetra | linetrac | linetrace ) + [[ -n $label ]] && label=$(_Dbg_printf_nocr "%-12s: " 'line tracing') + [[ -n $label ]] && label='line tracing: ' + typeset onoff="off." + (( _Dbg_set_linetrace != 0 )) && onoff='on.' + _Dbg_msg \ + "${label}Show line tracing is" $onoff + _Dbg_msg \ + "${label}Show line trace delay is ${_Dbg_linetrace_delay}." + ;; - lo | log | logg | loggi | loggin | logging ) - shift - _Dbg_do_show_logging $* - ;; - sho|show|showc|showco|showcom|showcomm|showcomma|showcomman|showcommand ) - [[ -n $label ]] && label=$(_Dbg_printf_nocr "%-12s: " 'showcommmand') - _Dbg_msg \ - "${label}Show commands in debugger prompt is" \ - "$_Dbg_set_show_command." - ;; - t|tr|tra|trac|trace|trace-|tracec|trace-co|trace-com|trace-comm|trace-comma|trace-comman|trace-command|trace-commands ) - [[ -n $label ]] && label='trace-commands: ' - _Dbg_msg \ - "${label}State of command tracing is" \ - "$_Dbg_set_trace_commands." - ;; - *) - _Dbg_errmsg "Unknown show subcommand: $subcmd" - typeset -a list; list=("${!_Dbg_debugger_show_commands[@]}") - sort_list 0 ${#list[@]}-1 - typeset columnized='' - typeset -i width; ((width=_Dbg_set_linewidth-5)) - typeset -a columnized; columnize $width - typeset -i i - _Dbg_errmsg "Show subcommands are:" - for ((i=0; i<${#columnized[@]}; i++)) ; do - _Dbg_errmsg " ${columnized[i]}" - done - return 1 + lo | log | logg | loggi | loggin | logging ) + shift + _Dbg_do_show_logging $@ + ;; + sho|show|showc|showco|showcom|showcomm|showcomma|showcomman|showcommand ) + [[ -n $label ]] && label=$(_Dbg_printf_nocr "%-12s: " 'showcommmand') + _Dbg_msg \ + "${label}Show commands in debugger prompt is" \ + "$_Dbg_set_show_command." + ;; + t|tr|tra|trac|trace|trace-|tracec|trace-co|trace-com|trace-comm|trace-comma|trace-comman|trace-command|trace-commands ) + [[ -n $label ]] && label='trace-commands: ' + _Dbg_msg \ + "${label}State of command tracing is" \ + "$_Dbg_set_trace_commands." + ;; + tt | tty ) + shift + _Dbg_do_show_tty $@ + ;; + *) + _Dbg_errmsg "Unknown show subcommand: $subcmd" + typeset -a list; list=("${!_Dbg_debugger_show_commands[@]}") + sort_list 0 ${#list[@]}-1 + typeset columnized='' + typeset -i width; ((width=_Dbg_set_linewidth-5)) + typeset -a columnized; columnize $width + typeset -i i + _Dbg_errmsg "Show subcommands are:" + for ((i=0; i<${#columnized[@]}; i++)) ; do + _Dbg_errmsg " ${columnized[i]}" + done + return 1 esac return $? }
View file
bashdb-4.2-0.8.tar.bz2/command/show_sub/Makefile.in -> bashdb-4.4-0.92.tar.bz2/command/show_sub/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = command/show_sub -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/command/show_sub ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -242,8 +316,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -257,14 +334,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/command/show_sub/commands.sh -> bashdb-4.4-0.92.tar.bz2/command/show_sub/commands.sh
Changed
@@ -23,10 +23,11 @@ fi _Dbg_help_add_sub show commands \ -'show commands +'show commands [+NUM] -Print the argument list to given when debugged program restarts. -' 1 +Show the history of commands you typed. +You can supply a command number to start with, or a "+" to start after +the previous command number shown.' 1 _Dbg_show_nolist[commands]=1
View file
bashdb-4.2-0.8.tar.bz2/command/show_sub/highlight.sh -> bashdb-4.4-0.92.tar.bz2/command/show_sub/highlight.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # "show highlight" debugger command # -# Copyright (C) 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2011, 2015 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -26,10 +26,10 @@ [[ -n $1 ]] && label=$(_Dbg_printf_nocr "%-12s: " highlight) || label='' _Dbg_msg_nocr \ "${label}Syntax highlight in source listings is " - if (( $_Dbg_set_highlight == 0)) ; then - _Dbg_msg 'off.' + if [[ -n $_Dbg_set_highlight ]] ; then + _Dbg_msg "${_Dbg_set_highlight}." else - _Dbg_msg 'on.' + _Dbg_msg 'off.' fi return 0 }
View file
bashdb-4.4-0.92.tar.bz2/command/show_sub/tty.sh
Added
@@ -0,0 +1,35 @@ +# -*- shell-script -*- +# "show tty" debugger command +# +# Copyright (C) 2011-2012 Rocky Bernstein <rocky@gnu.org> +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, but WITHOUT ANY +# WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; see the file COPYING. If not, write to +# the Free Software Foundation, 59 Temple Place, Suite 330, Boston, +# MA 02111 USA. + +_Dbg_help_add_sub show tty \ +"Show tty used for debugger output" 1 + +_Dbg_do_show_tty() { + typeset label + [[ -n $1 ]] && label=$(builtin printf '%-12s: ' 'show tty') || label='' + _Dbg_msg_nocr \ + "${label}Debugger output goes to " + if [[ -n $_Dbg_tty ]] ; then + _Dbg_msg $(tty) + else + _Dbg_msg $_Dbg_tty + fi + return 0 +}
View file
bashdb-4.2-0.8.tar.bz2/command/source.sh -> bashdb-4.4-0.92.tar.bz2/command/source.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # gdb-like "source" command. # -# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2010 +# Copyright (C) 2002-2008, 2010, 2013 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -33,9 +33,9 @@ _Dbg_errmsg 'Need to give a filename for the "source" command.' return 1 fi - + typeset filename - _Dbg_glob_filename "$1" + _Dbg_tilde_expand_filename "$1" if [[ -r $filename ]] || [[ "$filename" == '/dev/stdin' ]] ; then # Open new input file descriptor and save number in _Dbg_fd. exec {_Dbg_fdi}<"$filename"
View file
bashdb-4.2-0.8.tar.bz2/command/step.sh -> bashdb-4.4-0.92.tar.bz2/command/step.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # step.sh - Debugger step ("step into") commmand. # -# Copyright (C) 2006, 2008, 2009, 2010 Rocky Bernstein rocky@gnu.org +# Copyright (C) 2006, 2008, 2009, 2010, 2015 Rocky Bernstein rocky@gnu.org # # bashdb is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -12,7 +12,7 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. -# +# # You should have received a copy of the GNU General Public License along # with bashdb; see the file COPYING. If not, write to the Free Software # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. @@ -21,13 +21,14 @@ # If yes, always show. If auto, show only if the same line is to be run # but the command is different. -# The default behavior of step_force. -typeset -i _Dbg_set_different=0 +# The default behavior of step_force. +typeset -i _Dbg_set_different=0 _Dbg_help_add step \ "step [COUNT] -Single step an statement. +Single step an statement. This is sometimes called 'step into'. + If COUNT is given, stepping occurs that many times before stopping. Otherwise COUNT is one. COUNT an be an arithmetic @@ -48,7 +49,7 @@ "step- -- Single step a statement without the \`step force' setting. Set step force may have been set on. step- ensures we turn that off for -this command. +this command. See also \"step\" and \"set force\"." @@ -81,7 +82,7 @@ return 2 fi _Dbg_old_set_opts="$_Dbg_old_set_opts -o functrace" - + _Dbg_write_journal "_Dbg_step_ignore=$_Dbg_step_ignore" _Dbg_write_journal "_Dbg_step_force=$_Dbg_step_force" _Dbg_write_journal "_Dbg_old_set_opts='$_Dbg_old_set_opts'"
View file
bashdb-4.2-0.8.tar.bz2/command/tty.sh -> bashdb-4.4-0.92.tar.bz2/command/tty.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # tty command. # -# Copyright (C) 2002, 2003, 2004, 2006, 2008 Rocky Bernstein +# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2012 Rocky Bernstein # rocky@gnu.org # # bashdb is free software; you can redistribute it and/or modify it under @@ -21,24 +21,22 @@ _Dbg_help_add tty \ 'tty -Set the output device for debugger output.' +Set the output device for debugger output. Use "&1" if you want debugger +output to go to STDOUT. +' # Set output tty _Dbg_do_tty() { typeset -i rc=0 if (( $# < 1 )) ; then - _Dbg_errmsg "Argument required (terminal name for running target process)." - return 1 + _Dbg_errmsg "Argument required (terminal name for running target process)." + return 1 fi - if ! $(touch $1 >/dev/null 2>/dev/null); then - _Dbg_msg "Can't access $1 for writing." - return 1 + typeset tty=$1 + if _Dbg_check_tty $tty ; then + _Dbg_tty=$tty + _Dbg_prompt_output=$_Dbg_tty + _Dbg_msg "Debugger output set to go to $_Dbg_tty" fi - if [[ ! -w $1 ]] ; then - _Dbg_errmsg "tty $1 needs to be writable" - return 1 - fi - _Dbg_tty=$1 - _Dbg_prompt_output=$_Dbg_tty - return 0 + return 0 }
View file
bashdb-4.2-0.8.tar.bz2/command/up.sh -> bashdb-4.4-0.92.tar.bz2/command/up.sh
Changed
@@ -58,8 +58,6 @@ return $rc } -_Dbg_alias_add 'u' up - # Demo it if [[ $0 == ${BASH_SOURCE[0]} ]] ; then for _Dbg_file in help msg sort columnize ; do
View file
bashdb-4.2-0.8.tar.bz2/compile -> bashdb-4.4-0.92.tar.bz2/compile
Changed
@@ -1,10 +1,9 @@ #! /bin/sh -# Wrapper for compilers which do not understand `-c -o'. +# Wrapper for compilers which do not understand '-c -o'. -scriptversion=2009-10-06.20; # UTC +scriptversion=2012-10-14.11; # UTC -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2009 Free Software -# Foundation, Inc. +# Copyright (C) 1999-2013 Free Software Foundation, Inc. # Written by Tom Tromey <tromey@cygnus.com>. # # This program is free software; you can redistribute it and/or modify @@ -29,21 +28,224 @@ # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>. +nl=' +' + +# We need space, tab and new line, in precisely that order. Quoting is +# there to prevent tools from complaining about whitespace usage. +IFS=" "" $nl" + +file_conv= + +# func_file_conv build_file lazy +# Convert a $build file to $host form and store it in $file +# Currently only supports Windows hosts. If the determined conversion +# type is listed in (the comma separated) LAZY, no conversion will +# take place. +func_file_conv () +{ + file=$1 + case $file in + / | /[!/]*) # absolute file, and not a UNC file + if test -z "$file_conv"; then + # lazily determine how to convert abs files + case `uname -s` in + MINGW*) + file_conv=mingw + ;; + CYGWIN*) + file_conv=cygwin + ;; + *) + file_conv=wine + ;; + esac + fi + case $file_conv/,$2, in + *,$file_conv,*) + ;; + mingw/*) + file=`cmd //C echo "$file " | sed -e 's/"\(.*\) " *$/\1/'` + ;; + cygwin/*) + file=`cygpath -m "$file" || echo "$file"` + ;; + wine/*) + file=`winepath -w "$file" || echo "$file"` + ;; + esac + ;; + esac +} + +# func_cl_dashL linkdir +# Make cl look for libraries in LINKDIR +func_cl_dashL () +{ + func_file_conv "$1" + if test -z "$lib_path"; then + lib_path=$file + else + lib_path="$lib_path;$file" + fi + linker_opts="$linker_opts -LIBPATH:$file" +} + +# func_cl_dashl library +# Do a library search-path lookup for cl +func_cl_dashl () +{ + lib=$1 + found=no + save_IFS=$IFS + IFS=';' + for dir in $lib_path $LIB + do + IFS=$save_IFS + if $shared && test -f "$dir/$lib.dll.lib"; then + found=yes + lib=$dir/$lib.dll.lib + break + fi + if test -f "$dir/$lib.lib"; then + found=yes + lib=$dir/$lib.lib + break + fi + if test -f "$dir/lib$lib.a"; then + found=yes + lib=$dir/lib$lib.a + break + fi + done + IFS=$save_IFS + + if test "$found" != yes; then + lib=$lib.lib + fi +} + +# func_cl_wrapper cl arg... +# Adjust compile command to suit cl +func_cl_wrapper () +{ + # Assume a capable shell + lib_path= + shared=: + linker_opts= + for arg + do + if test -n "$eat"; then + eat= + else + case $1 in + -o) + # configure might choose to run compile as 'compile cc -o foo foo.c'. + eat=1 + case $2 in + *.o | *.[oO][bB][jJ]) + func_file_conv "$2" + set x "$@" -Fo"$file" + shift + ;; + *) + func_file_conv "$2" + set x "$@" -Fe"$file" + shift + ;; + esac + ;; + -I) + eat=1 + func_file_conv "$2" mingw + set x "$@" -I"$file" + shift + ;; + -I*) + func_file_conv "${1#-I}" mingw + set x "$@" -I"$file" + shift + ;; + -l) + eat=1 + func_cl_dashl "$2" + set x "$@" "$lib" + shift + ;; + -l*) + func_cl_dashl "${1#-l}" + set x "$@" "$lib" + shift + ;; + -L) + eat=1 + func_cl_dashL "$2" + ;; + -L*) + func_cl_dashL "${1#-L}" + ;; + -static) + shared=false + ;; + -Wl,*) + arg=${1#-Wl,} + save_ifs="$IFS"; IFS=',' + for flag in $arg; do + IFS="$save_ifs" + linker_opts="$linker_opts $flag" + done + IFS="$save_ifs" + ;; + -Xlinker) + eat=1 + linker_opts="$linker_opts $2" + ;; + -*) + set x "$@" "$1" + shift + ;; + *.cc | *.CC | *.cxx | *.CXX | *.[cC]++) + func_file_conv "$1" + set x "$@" -Tp"$file" + shift + ;; + *.c | *.cpp | *.CPP | *.lib | *.LIB | *.Lib | *.OBJ | *.obj | *.[oO])
View file
bashdb-4.4-0.92.tar.bz2/compute-prefix.sh
Added
@@ -0,0 +1,19 @@ +#!/bin/bash +typeset -i rc=0 +SH_PROG=${SH_PROG:-$SHELL} +SH_PROG=${SH_PROG:-bash} +bash_loc=$($SH_PROG -c 'echo ${SHELL}') +rc=$? +if (( rc != 0 )) ; then + echo >&2 "Something went wrong in getting \$SHELL for $SH_PROG" + exit $rc +fi +if [[ -z $bash_loc ]] ; then + echo >&2 "Something went wrong in setting bash location from \$SHELL for $SH_PROG" + exit 3 +fi +# export PATH=/usr/bin:/bin:/sbin +bashdb_main=$(strings $bash_loc | grep bashdb) + +echo $(dirname $(dirname $bashdb_main)) +exit 0
View file
bashdb-4.2-0.8.tar.bz2/config.guess -> bashdb-4.4-0.92.tar.bz2/config.guess
Changed
@@ -1,14 +1,12 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2009-06-10' +timestamp='2013-06-10' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, but @@ -17,26 +15,22 @@ # General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. - - -# Originally written by Per Bothner <per@bothner.com>. -# Please send patches to <config-patches@gnu.org>. Submit a context -# diff and a properly formatted ChangeLog entry. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). # -# This script attempts to guess a canonical system name similar to -# config.sub. If it succeeds, it prints the system name on stdout, and -# exits with 0. Otherwise, it exits with 1. +# Originally written by Per Bothner. # -# The plan is that this can be called by configure scripts if you -# don't specify an explicit build system type. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD +# +# Please send patches with a ChangeLog entry to config-patches@gnu.org. + me=`echo "$0" | sed -e 's,.*/,,'` @@ -56,8 +50,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -139,12 +132,33 @@ UNAME_SYSTEM=`(uname -s) 2>/dev/null` || UNAME_SYSTEM=unknown UNAME_VERSION=`(uname -v) 2>/dev/null` || UNAME_VERSION=unknown +case "${UNAME_SYSTEM}" in +Linux|GNU|GNU/*) + # If the system lacks a compiler, then just pick glibc. + # We could probably try harder. + LIBC=gnu + + eval $set_cc_for_build + cat <<-EOF > $dummy.c + #include <features.h> + #if defined(__UCLIBC__) + LIBC=uclibc + #elif defined(__dietlibc__) + LIBC=dietlibc + #else + LIBC=gnu + #endif + EOF + eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` + ;; +esac + # Note: order is significant - the case branches are not exclusive. case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in *:NetBSD:*:*) # NetBSD (nbsd) targets should (where applicable) match one or - # more of the tupples: *-*-netbsdelf*, *-*-netbsdaout*, + # more of the tuples: *-*-netbsdelf*, *-*-netbsdaout*, # *-*-netbsdecoff* and *-*-netbsd*. For targets that recently # switched to ELF, *-*-netbsd* would select the old # object file format. This provides both forward @@ -180,7 +194,7 @@ fi ;; *) - os=netbsd + os=netbsd ;; esac # The OS release @@ -201,6 +215,10 @@ # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" exit ;; + *:Bitrig:*:*) + UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-bitrig${UNAME_RELEASE} + exit ;; *:OpenBSD:*:*) UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} @@ -223,7 +241,7 @@ UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` ;; esac # According to Compaq, /usr/sbin/psrinfo has been available on @@ -269,7 +287,10 @@ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` - exit ;; + # Reset EXIT trap before exiting to avoid spurious non-zero exit code. + exitcode=$? + trap '' 0 + exit $exitcode ;; Alpha\ *:Windows_NT*:*) # How do we know it's Interix rather than the generic POSIX subsystem? # Should we change UNAME_MACHINE based on the output of uname instead @@ -295,12 +316,12 @@ echo s390-ibm-zvmoe exit ;; *:OS400:*:*) - echo powerpc-ibm-os400 + echo powerpc-ibm-os400 exit ;; arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*) echo arm-acorn-riscix${UNAME_RELEASE} exit ;; - arm:riscos:*:*|arm:RISCOS:*:*) + arm*:riscos:*:*|arm*:RISCOS:*:*) echo arm-unknown-riscos exit ;; SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*) @@ -333,6 +354,9 @@ sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` exit ;; + i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) + echo i386-pc-auroraux${UNAME_RELEASE} + exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) eval $set_cc_for_build SUN_ARCH="i386" @@ -391,23 +415,23 @@ # MiNT. But MiNT is downward compatible to TOS, so this should # be no problem. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint${UNAME_RELEASE} exit ;; atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*) echo m68k-atari-mint${UNAME_RELEASE} - exit ;; + exit ;; *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*) - echo m68k-atari-mint${UNAME_RELEASE} + echo m68k-atari-mint${UNAME_RELEASE} exit ;; milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*) - echo m68k-milan-mint${UNAME_RELEASE} - exit ;; + echo m68k-milan-mint${UNAME_RELEASE} + exit ;; hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*) - echo m68k-hades-mint${UNAME_RELEASE} - exit ;; + echo m68k-hades-mint${UNAME_RELEASE} + exit ;; *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*) - echo m68k-unknown-mint${UNAME_RELEASE} - exit ;; + echo m68k-unknown-mint${UNAME_RELEASE} + exit ;; m68k:machten:*:*) echo m68k-apple-machten${UNAME_RELEASE} exit ;; @@ -477,8 +501,8 @@
View file
bashdb-4.2-0.8.tar.bz2/config.h.in -> bashdb-4.4-0.92.tar.bz2/config.h.in
Changed
@@ -34,9 +34,6 @@ */ #undef LT_OBJDIR -/* Define to 1 if your C compiler doesn't accept -c and -o together. */ -#undef NO_MINUS_C_MINUS_O - /* Bash Debugger */ #undef PACKAGE
View file
bashdb-4.2-0.8.tar.bz2/config.sub -> bashdb-4.4-0.92.tar.bz2/config.sub
Changed
@@ -1,44 +1,40 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 -# Free Software Foundation, Inc. +# Copyright 1992-2013 Free Software Foundation, Inc. -timestamp='2009-06-11' +timestamp='2013-08-10' -# This file is (in principle) common to ALL GNU software. -# The presence of a machine in this file suggests that SOME GNU software -# can handle that machine. It does not imply ALL GNU software can. -# -# This file is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or +# This file is free software; you can redistribute it and/or modify it +# under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 3 of the License, or # (at your option) any later version. # -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. # # You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA -# 02110-1301, USA. +# along with this program; if not, see <http://www.gnu.org/licenses/>. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under -# the same distribution terms that you use for the rest of that program. +# the same distribution terms that you use for the rest of that +# program. This Exception is an additional permission under section 7 +# of the GNU General Public License, version 3 ("GPLv3"). -# Please send patches to <config-patches@gnu.org>. Submit a context -# diff and a properly formatted ChangeLog entry. +# Please send patches with a ChangeLog entry to config-patches@gnu.org. # # Configuration subroutine to validate and canonicalize a configuration type. # Supply the specified configuration type as an argument. # If it is invalid, we print an error message on stderr and exit with code 1. # Otherwise, we print the canonical config type on stdout and succeed. +# You can get the latest version of this script from: +# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + # This file is supposed to be the same for all GNU packages # and recognize all the CPU types, system types and aliases # that are meaningful with *any* GNU software. @@ -72,8 +68,7 @@ version="\ GNU config.sub ($timestamp) -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, -2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. +Copyright 1992-2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." @@ -120,13 +115,18 @@ # Here we must recognize all the valid KERNEL-OS combinations. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'` case $maybe_os in - nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \ - uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \ + nto-qnx* | linux-gnu* | linux-android* | linux-dietlibc | linux-newlib* | \ + linux-musl* | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | \ + knetbsd*-gnu* | netbsd*-gnu* | \ kopensolaris*-gnu* | \ storm-chaos* | os2-emx* | rtmk-nova*) os=-$maybe_os basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'` ;; + android-linux) + os=-linux-android + basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`-unknown + ;; *) basic_machine=`echo $1 | sed 's/-[^-]*$//'` if [ $basic_machine != $1 ] @@ -149,12 +149,12 @@ -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\ -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \ -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \ - -apple | -axis | -knuth | -cray) + -apple | -axis | -knuth | -cray | -microblaze*) os= basic_machine=$1 ;; - -bluegene*) - os=-cnk + -bluegene*) + os=-cnk ;; -sim | -cisco | -oki | -wec | -winbond) os= @@ -170,10 +170,10 @@ os=-chorusos basic_machine=$1 ;; - -chorusrdb) - os=-chorusrdb + -chorusrdb) + os=-chorusrdb basic_machine=$1 - ;; + ;; -hiux*) os=-hiuxwe2 ;; @@ -218,6 +218,12 @@ -isc*) basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'` ;; + -lynx*178) + os=-lynxos178 + ;; + -lynx*5) + os=-lynxos5 + ;; -lynx*) os=-lynxos ;; @@ -242,20 +248,27 @@ # Some are omitted here because they have special meanings below. 1750a | 580 \ | a29k \ + | aarch64 | aarch64_be \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \ | am33_2.0 \ - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \ + | arc | arceb \ + | arm | arm[bl]e | arme[lb] | armv[2-8] | armv[3-8][lb] | armv7[arm] \ + | avr | avr32 \ + | be32 | be64 \ | bfin \ - | c4x | clipper \ + | c4x | c8051 | clipper \ | d10v | d30v | dlx | dsp16xx \ + | epiphany \ | fido | fr30 | frv \ | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \ + | hexagon \ | i370 | i860 | i960 | ia64 \ | ip2k | iq2000 \ + | le32 | le64 \ | lm32 \ | m32c | m32r | m32rle | m68000 | m68k | m88k \ - | maxq | mb | microblaze | mcore | mep | metag \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ | mips | mipsbe | mipseb | mipsel | mipsle \ | mips16 \ | mips64 | mips64el \ @@ -273,32 +286,45 @@ | mipsisa64r2 | mipsisa64r2el \ | mipsisa64sb1 | mipsisa64sb1el \ | mipsisa64sr71k | mipsisa64sr71kel \ + | mipsr5900 | mipsr5900el \ | mipstx39 | mipstx39el \ | mn10200 | mn10300 \ | moxie \ | mt \ | msp430 \ - | nios | nios2 \ + | nds32 | nds32le | nds32be \ + | nios | nios2 | nios2eb | nios2el \ | ns16k | ns32k \ - | or32 \ + | open8 \ + | or1k | or32 \ | pdp10 | pdp11 | pj | pjl \ - | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \ + | powerpc | powerpc64 | powerpc64le | powerpcle \ | pyramid \ + | rl78 | rx \ | score \ | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \ | sh64 | sh64le \ | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \ | sparcv8 | sparcv9 | sparcv9b | sparcv9v \ - | spu | strongarm \ - | tahoe | thumb | tic4x | tic80 | tron \ - | v850 | v850e \ + | spu \ + | tahoe | tic4x | tic54x | tic55x | tic6x | tic80 | tron \ + | ubicom32 \
View file
bashdb-4.2-0.8.tar.bz2/configure -> bashdb-4.4-0.92.tar.bz2/configure
Changed
@@ -1,13 +1,11 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.65 for bashdb 4.2-0.8. +# Generated by GNU Autoconf 2.69 for bashdb 4.4-0.92. # # Report bugs to <bashdb-devel@lists.sourceforge.net>. # # -# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, -# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. # # # This configure script is free software; the Free Software Foundation @@ -91,6 +89,7 @@ IFS=" "" $as_nl" # Find who we are. Look in the path if we contain no directory separator. +as_myself= case $0 in #(( *[\\/]* ) as_myself=$0 ;; *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR @@ -135,6 +134,31 @@ # CDPATH. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# Use a proper internal environment variable to ensure we don't fall + # into an infinite loop, continuously re-executing ourselves. + if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then + _as_can_reexec=no; export _as_can_reexec; + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +as_fn_exit 255 + fi + # We don't want this to propagate to other subprocesses. + { _as_can_reexec=; unset _as_can_reexec;} if test "x$CONFIG_SHELL" = x; then as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : emulate sh @@ -168,12 +192,21 @@ else exitcode=1; echo positional parameters were not saved. fi -test x\$exitcode = x0 || exit 1" +test x\$exitcode = x0 || exit 1 +test -x / || exit 1" as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 -test \$(( 1 + 1 )) = 2 || exit 1" +test \$(( 1 + 1 )) = 2 || exit 1 + + test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( + ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO + PATH=/empty FPATH=/empty; export PATH FPATH + test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ + || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" if (eval "$as_required") 2>/dev/null; then : as_have_required=yes else @@ -213,14 +246,25 @@ if test "x$CONFIG_SHELL" != x; then : - # We cannot yet assume a decent shell, so we have to provide a - # neutralization value for shells without unset; and this also - # works around shells that cannot unset nonexistent variables. - BASH_ENV=/dev/null - ENV=/dev/null - (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV - export CONFIG_SHELL - exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} + export CONFIG_SHELL + # We cannot yet assume a decent shell, so we have to provide a +# neutralization value for shells without unset; and this also +# works around shells that cannot unset nonexistent variables. +# Preserve -v and -x to the replacement shell. +BASH_ENV=/dev/null +ENV=/dev/null +(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV +case $- in # (((( + *v*x* | *x*v* ) as_opts=-vx ;; + *v* ) as_opts=-v ;; + *x* ) as_opts=-x ;; + * ) as_opts= ;; +esac +exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} +# Admittedly, this is quite paranoid, since all the known shells bail +# out after a failed `exec'. +$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 +exit 255 fi if test x$as_have_required = xno; then : @@ -319,10 +363,18 @@ test -d "$as_dir" && break done test -z "$as_dirs" || eval "mkdir $as_dirs" - } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" + } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" } # as_fn_mkdir_p + +# as_fn_executable_p FILE +# ----------------------- +# Test if FILE is an executable regular file. +as_fn_executable_p () +{ + test -f "$1" && test -x "$1" +} # as_fn_executable_p # as_fn_append VAR VALUE # ---------------------- # Append the text in VALUE to the end of the definition contained in VAR. Take @@ -359,19 +411,19 @@ fi # as_fn_arith -# as_fn_error ERROR [LINENO LOG_FD] -# --------------------------------- +# as_fn_error STATUS ERROR [LINENO LOG_FD] +# ---------------------------------------- # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are # provided, also output the error to LOG_FD, referencing LINENO. Then exit the -# script with status $?, using 1 if that was 0. +# script with STATUS, using 1 if that was 0. as_fn_error () { - as_status=$?; test $as_status -eq 0 && as_status=1 - if test "$3"; then - as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 + as_status=$1; test $as_status -eq 0 && as_status=1 + if test "$4"; then + as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 fi - $as_echo "$as_me: error: $1" >&2 + $as_echo "$as_me: error: $2" >&2 as_fn_exit $as_status } # as_fn_error @@ -444,6 +496,10 @@ chmod +x "$as_me.lineno" || { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } + # If we had to re-execute with $CONFIG_SHELL, we're ensured to have + # already done that, so ensure we don't try to do so again and fall + # in an infinite loop. This has already happened in practice. + _as_can_reexec=no; export _as_can_reexec # Don't try to exec as it changes $[0], causing all sort of problems # (the dirname of $[0] is not the place where we might find the # original and so on. Autoconf is especially sensitive to this). @@ -478,16 +534,16 @@ # ... but there are two gotchas: # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. - # In both cases, we have to default to `cp -p'. + # In both cases, we have to default to `cp -pR'. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || - as_ln_s='cp -p' + as_ln_s='cp -pR' elif ln conf$$.file conf$$ 2>/dev/null; then as_ln_s=ln else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi else - as_ln_s='cp -p' + as_ln_s='cp -pR' fi rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file rmdir conf$$.dir 2>/dev/null @@ -499,28 +555,8 @@ as_mkdir_p=false fi -if test -x / >/dev/null 2>&1; then - as_test_x='test -x'
View file
bashdb-4.2-0.8.tar.bz2/configure.ac -> bashdb-4.4-0.92.tar.bz2/configure.ac
Changed
@@ -1,8 +1,8 @@ # Configure script for bash debugger (bashdb) dnl Process this file with autoconf to produce a configure script. -# Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, 2011 -# Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2002-2012 +# 2014-2015 Rocky Bernstein <rocky@gnu.org> # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -23,10 +23,20 @@ dnl Use same version as in main bash configure.in define(DEBUGGER, bashdb) define(POSIXSHELL, bash) -define(OK_BASH_VERS, 4.2) -define(relstatus, 0.8) +define(OK_BASH_VERS, 4.4) +define(relstatus, 0.92) AC_INIT([bashdb],[OK_BASH_VERS-relstatus],[bashdb-devel@lists.sourceforge.net]) +# AC_CONFIG_MACRO_DIR([m4]) + +################################################################## +# See if --prefix was set. If not, set it to a reasonable default +# based on where bash thinks bashdb is supposed to be installed. +################################################################## +mydir=$(dirname $0) +if [[ "$prefix" = NONE ]]; then + prefix=$($SH_PROG $mydir/compute-prefix.sh) +fi # From fish's configure.ac # @@ -35,37 +45,38 @@ AC_SUBST(BASHVERS) AC_SUBST(RELSTATUS) -AC_ARG_WITH(bashdb-main, AC_HELP_STRING([--with-bashdb-main], +AC_ARG_WITH(bashdb-main, AC_HELP_STRING([--with-bashdb-main], [location of bashdb-main.inc]), BASHDB_MAIN=$withval) # See if we build set0.c -AC_ARG_WITH(bash-src, AC_HELP_STRING([--with-bash-src], - [location of bash OK_BASH_VERS source code]), +AC_ARG_WITH(bash-src, AC_HELP_STRING([--with-bash-src], + [location of bash OK_BASH_VERS source code]), BASH_SRC=$withval) AC_SUBST(BASH_SRC) -AC_PROG_CC if test x"$BASH_SRC" != x ; then + AC_PROG_CC if test ! -d $BASH_SRC ; then - AC_MSG_ERROR([bash source directory ($BASH_SRC) doesn't seem to be a directory]) - else + AC_MSG_ERROR([bash source directory ($BASH_SRC) does not seem to be a directory]) + else AM_PROG_CC_C_O dnl We run a C compiler to get macro EXEEXT set and possibly readarray.c. - PIC=$lt_prog_compiler_pic_CXX - WL=$lt_prog_compiler_wl_CXX build_set0=$BASH_SRC AC_CHECK_HEADERS(unistd.h string.h,, [AC_MSG_WARN([Missing some C headers. Disabling set0]) build_set0=]) - fi + fi fi AM_CONDITIONAL(BUILD_BUILTINS, test x"$build_set0" != x) AM_PROG_LIBTOOL -PIC=$lt_prog_compiler_pic_CXX -WL=$lt_prog_compiler_wl_CXX +PIC=$lt_prog_compiler_pic +WL=$lt_prog_compiler_wl AC_SUBST(PIC) AC_SUBST(WL) AC_SUBST(DIFF) AC_SUBST(DIFF_OPTS) +AC_PATH_PROG(PERL, perl, false) +AC_PROG_GREP +AC_PROG_SED CMDLINE_INVOKED='$0 == ${BASH_SOURCE}' AC_SUBST(CMDLINE_INVOKED) @@ -101,7 +112,7 @@ ## --with-bash can be used to tell the bashdb script and the regression ## test which bash to run. It can be omitted too in which case we'll ## look for a bash binary. -AC_ARG_WITH(POSIXSHELL, AC_HELP_STRING([--with-POSIXSHELL], +AC_ARG_WITH(POSIXSHELL, AC_HELP_STRING([--with-POSIXSHELL], [location of POSIXSHELL program]), SH_PROG=$withval) if test "$SH_PROG" = "yes" || test "$SH_PROG" = "no" || test -z "$SH_PROG" @@ -111,7 +122,7 @@ if test "$SH_PROG" = no; then AC_MSG_ERROR([I didn't find the DEBUGGER executable.\ - You might want to use the --with-DEBUGGER option.]) + You might want to use the --with-POSIXSHELL option.]) fi bash_version=`$SH_PROG --version` @@ -119,23 +130,23 @@ [bash_minor=`$SH_PROG -c 'echo ${BASH_VERSINFO[1]}'`] bash_4_or_greater=no case "${bash_major}.${bash_minor}" in - 'OK_BASH_VERS' | '4.1') + 'OK_BASH_VERS' | '4.1' | '4.2' | '4.3') bash_4_or_greater=yes ;; *) AC_MSG_WARN([You have Bash $bash_version installed.]) - AC_MSG_ERROR([This package is only known to work with Bash 4.1 or 4.2.]) - ;; + AC_MSG_ERROR([This package is only known to work with Bash 4.1-4.3.]) + ;; esac -AC_ARG_WITH(dbg-main, AC_HELP_STRING([--with-dbg-main], +AC_ARG_WITH(dbg-main, AC_HELP_STRING([--with-dbg-main], [location of dbg-main.sh]), DBGR_MAIN=$withval) AC_SUBST(DBGR_MAIN) if test -z "$DBGR_MAIN" ; then DBGR_MAIN=`strings $SH_PROG$EXEEXT | grep bashdb-main.inc` if test -z "$DBGR_MAIN" ; then - AC_MSG_ERROR([I didn't find bashdb-main.inc in your bash. If you have the + AC_MSG_ERROR([I didn't find bashdb-main.inc in your bash. If you have the right version of bash, set it with the --with-dbg-main option]) fi fi @@ -152,7 +163,7 @@ AC_SUBST_DIR(INTERPRETER_NAME,"${bindir}/"`echo bash | sed "$ac_transform"`) # WARNING: The configure-correct name for architecture-independent -# directory (the place for the bash source for the debugger) is +# directory (the place for the bash source for the debugger) is # datadir. The automake file seem to want to use pkgdatadir instead. # I'm not sure how to get these to agree. @@ -174,10 +185,10 @@ if test "$DIFF" = no ; then AC_PATH_PROG(DIFF, cmp, no) -else +else dnl Try for GNU diff options. # MSDOG output uses \r\n rather than \n in tests - for diff_opt in -w --unified -b ; do + for diff_opt in -w --unified -b ; do if $DIFF $diff_opt $0 $0 > /dev/null 2>&1; then AC_MSG_RESULT([adding $diff_opt to diff in regression tests]) DIFF_OPTS="$DIFF_OPTS $diff_opt" @@ -207,61 +218,71 @@ # Additional files needing substitution of values (not Makefiles). AC_CONFIG_FILES([bashdb], [chmod +x DEBUGGER]) -AC_CONFIG_FILES([test/example/bugIFS.sh], +AC_CONFIG_FILES([test/example/bugIFS.sh], [chmod +x test/example/bugIFS.sh]) -AC_CONFIG_FILES([test/example/hanoi.sh], +AC_CONFIG_FILES([test/example/hanoi.sh], [chmod +x test/example/hanoi.sh]) -AC_CONFIG_FILES([test/example/interrupt.sh], +AC_CONFIG_FILES([test/example/interrupt.sh], [chmod +x test/example/interrupt.sh]) -AC_CONFIG_FILES([test/example/bug-args.sh], +AC_CONFIG_FILES([test/example/bug-args.sh], [chmod +x test/example/bug-args.sh]) -AC_CONFIG_FILES([test/unit/test-action.sh], +AC_CONFIG_FILES([test/unit/test-action.sh], [chmod +x test/unit/test-action.sh]) -AC_CONFIG_FILES([test/unit/test-alias.sh], +AC_CONFIG_FILES([test/unit/test-alias.sh], [chmod +x test/unit/test-alias.sh]) -AC_CONFIG_FILES([test/unit/test-bashdb-trace.sh], +AC_CONFIG_FILES([test/unit/test-bashdb-trace.sh], [chmod +x test/unit/test-bashdb-trace.sh]) -AC_CONFIG_FILES([test/unit/test-break.sh], +AC_CONFIG_FILES([test/unit/test-break.sh], [chmod +x test/unit/test-break.sh]) -AC_CONFIG_FILES([test/unit/test-cmd-complete.sh], +AC_CONFIG_FILES([test/unit/test-cmd-complete.sh], [chmod +x test/unit/test-cmd-complete.sh]) -AC_CONFIG_FILES([test/unit/test-columns.sh], +AC_CONFIG_FILES([test/unit/test-cmd-eval.sh], + [chmod +x test/unit/test-cmd-eval.sh]) +AC_CONFIG_FILES([test/unit/test-columns.sh], [chmod +x test/unit/test-columns.sh]) -AC_CONFIG_FILES([test/unit/test-eval.sh], +AC_CONFIG_FILES([test/unit/test-eval.sh], [chmod +x test/unit/test-eval.sh]) -AC_CONFIG_FILES([test/unit/test-file.sh], +AC_CONFIG_FILES([test/unit/test-file.sh], [chmod +x test/unit/test-file.sh]) -AC_CONFIG_FILES([test/unit/test-filecache.sh], +AC_CONFIG_FILES([test/unit/test-filecache.sh], [chmod +x test/unit/test-filecache.sh]) -AC_CONFIG_FILES([test/unit/test-get-sourceline.sh], +AC_CONFIG_FILES([test/unit/test-get-sourceline.sh],
View file
bashdb-4.2-0.8.tar.bz2/data/Makefile.in -> bashdb-4.4-0.92.tar.bz2/data/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = data -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/data ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -244,8 +318,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -259,14 +336,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/depcomp -> bashdb-4.4-0.92.tar.bz2/depcomp
Changed
@@ -1,10 +1,9 @@ #! /bin/sh # depcomp - compile a program generating dependencies as side-effects -scriptversion=2009-04-28.21; # UTC +scriptversion=2013-05-30.07; # UTC -# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free -# Software Foundation, Inc. +# Copyright (C) 1999-2013 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -28,9 +27,9 @@ case $1 in '') - echo "$0: No command. Try \`$0 --help' for more information." 1>&2 - exit 1; - ;; + echo "$0: No command. Try '$0 --help' for more information." 1>&2 + exit 1; + ;; -h | --h*) cat <<\EOF Usage: depcomp [--help] [--version] PROGRAM [ARGS] @@ -40,11 +39,11 @@ Environment variables: depmode Dependency tracking mode. - source Source file read by `PROGRAMS ARGS'. - object Object file output by `PROGRAMS ARGS'. + source Source file read by 'PROGRAMS ARGS'. + object Object file output by 'PROGRAMS ARGS'. DEPDIR directory where to store dependencies. depfile Dependency file to output. - tmpdepfile Temporary file to use when outputing dependencies. + tmpdepfile Temporary file to use when outputting dependencies. libtool Whether libtool is used (yes/no). Report bugs to <bug-automake@gnu.org>. @@ -57,6 +56,66 @@ ;; esac +# Get the directory component of the given path, and save it in the +# global variables '$dir'. Note that this directory component will +# be either empty or ending with a '/' character. This is deliberate. +set_dir_from () +{ + case $1 in + */*) dir=`echo "$1" | sed -e 's|/[^/]*$|/|'`;; + *) dir=;; + esac +} + +# Get the suffix-stripped basename of the given path, and save it the +# global variable '$base'. +set_base_from () +{ + base=`echo "$1" | sed -e 's|^.*/||' -e 's/\.[^.]*$//'` +} + +# If no dependency file was actually created by the compiler invocation, +# we still have to create a dummy depfile, to avoid errors with the +# Makefile "include basename.Plo" scheme. +make_dummy_depfile () +{ + echo "#dummy" > "$depfile" +} + +# Factor out some common post-processing of the generated depfile. +# Requires the auxiliary global variable '$tmpdepfile' to be set. +aix_post_process_depfile () +{ + # If the compiler actually managed to produce a dependency file, + # post-process it. + if test -f "$tmpdepfile"; then + # Each line is of the form 'foo.o: dependency.h'. + # Do two passes, one to just change these to + # $object: dependency.h + # and one to simply output + # dependency.h: + # which is needed to avoid the deleted-header problem. + { sed -e "s,^.*\.[$lower]*:,$object:," < "$tmpdepfile" + sed -e "s,^.*\.[$lower]*:[$tab ]*,," -e 's,$,:,' < "$tmpdepfile" + } > "$depfile" + rm -f "$tmpdepfile" + else + make_dummy_depfile + fi +} + +# A tabulation character. +tab=' ' +# A newline character. +nl=' +' +# Character ranges might be problematic outside the C locale. +# These definitions help. +upper=ABCDEFGHIJKLMNOPQRSTUVWXYZ +lower=abcdefghijklmnopqrstuvwxyz +digits=0123456789 +alpha=${upper}${lower} + if test -z "$depmode" || test -z "$source" || test -z "$object"; then echo "depcomp: Variables source, object and depmode must be set" 1>&2 exit 1 @@ -69,6 +128,9 @@ rm -f "$tmpdepfile" +# Avoid interferences from the environment. +gccflag= dashmflag= + # Some modes work just like other modes, but use different flags. We # parameterize here, but still list the modes in the big case below, # to make depend.m4 easier to write. Note that we *cannot* use a case @@ -80,18 +142,32 @@ fi if test "$depmode" = dashXmstdout; then - # This is just like dashmstdout with a different argument. - dashmflag=-xM - depmode=dashmstdout + # This is just like dashmstdout with a different argument. + dashmflag=-xM + depmode=dashmstdout fi cygpath_u="cygpath -u -f -" if test "$depmode" = msvcmsys; then - # This is just like msvisualcpp but w/o cygpath translation. - # Just convert the backslash-escaped backslashes to single forward - # slashes to satisfy depend.m4 - cygpath_u="sed s,\\\\\\\\,/,g" - depmode=msvisualcpp + # This is just like msvisualcpp but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvisualcpp +fi + +if test "$depmode" = msvc7msys; then + # This is just like msvc7 but w/o cygpath translation. + # Just convert the backslash-escaped backslashes to single forward + # slashes to satisfy depend.m4 + cygpath_u='sed s,\\\\,/,g' + depmode=msvc7 +fi + +if test "$depmode" = xlc; then + # IBM C/C++ Compilers xlc/xlC can output gcc-like dependency information. + gccflag=-qmakedep=gcc,-MF + depmode=gcc fi case "$depmode" in @@ -114,8 +190,7 @@ done "$@" stat=$? - if test $stat -eq 0; then : - else + if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi @@ -123,13 +198,17 @@ ;; gcc) +## Note that this doesn't just cater to obsosete pre-3.x GCC compilers. +## but also to in-use compilers like IMB xlc/xlC and the HP C compiler. +## (see the conditional assignment to $gccflag above). ## There are various ways to get dependency output from gcc. Here's ## why we pick this rather obscure method: ## - Don't want to use -MD because we'd like the dependencies to end ## up in a subdir. Having to rename by hand is ugly. ## (We might end up doing this anyway to support other compilers.) ## - The DEPENDENCIES_OUTPUT environment variable makes gcc act like -## -MM, not -M (despite what the docs say). +## -MM, not -M (despite what the docs say). Also, it might not be +## supported by the other compilers which use the 'gcc' depmode. ## - Using -M directly means running the compiler twice (even worse ## than renaming). if test -z "$gccflag"; then @@ -137,31 +216,31 @@ fi "$@" -Wp,"$gccflag$tmpdepfile" stat=$? - if test $stat -eq 0; then : - else + if test $stat -ne 0; then rm -f "$tmpdepfile" exit $stat fi rm -f "$depfile" echo "$object : \\" > "$depfile"
View file
bashdb-4.2-0.8.tar.bz2/doc/Makefile.am -> bashdb-4.4-0.92.tar.bz2/doc/Makefile.am
Changed
@@ -24,10 +24,10 @@ EXTRA_DIST = $(man1_MANS) macros.texi \ @PACKAGE@.info @PACKAGE@-man.pod @PACKAGE@-man.html -info_TEXINFOS = bashdb.texi +info_TEXINFOS = bashdb.texi bashdb_TEXINFOS = fdl.texi gpl.texi copyright.texi -all: $(INFO_DEPS) $(man1_MANS) html +all: $(INFO_DEPS) $(man1_MANS) html man: $(man1_MANS) @@ -42,14 +42,14 @@ $(man1_MANS): @PACKAGE@-man.pod pod2man --release=$(PACKAGE_VERSION) --name=@PACKAGE@ --center="GNU Tools" --section=$(EXT) $(srcdir)/@PACKAGE@-man.pod >$@ -%.ps.gz: %.ps - gzip -9c $< > $@ +#%.ps.gz: %.ps +# gzip -9c $< > $@ .texi.pdf: - $(TEXI2PDF) -I $(srcdir) $< + $(TEXI2PDF) -I $(srcdir) $< || true .texi.dvi: - $(TEXI2DVI) -I $(srcdir) $< + $(TEXI2DVI) -I $(srcdir) $< || true .dvi.ps: test -d $(docdir) || mkdir $(docdir) @@ -63,4 +63,25 @@ all-formats: pdf dvi txt ps html -MOSTLYCLEANFILES = @PACKAGE@.tgs @PACKAGE@.ps.gz @PACKAGE@.pdf @PACKAGE@.html @PACKAGE@_toc.html @PACKAGE@_foot.html $(man1_MANS) @PACKAGE@-man.html +MOSTLYCLEANFILES = \ + @PACKAGE@.aux \ + @PACKAGE@.cp \ + @PACKAGE@.cps \ + @PACKAGE@.fn \ + @PACKAGE@.html \ + @PACKAGE@.ky \ + @PACKAGE@.kys \ + @PACKAGE@.log \ + @PACKAGE@.pdf \ + @PACKAGE@.pg \ + @PACKAGE@.ps.gz \ + @PACKAGE@.tgs \ + @PACKAGE@.toc \ + @PACKAGE@.tp \ + @PACKAGE@.vr \ + @PACKAGE@_foot.html \ + @PACKAGE@_toc.html \ + $(man1_MANS) \ + @PACKAGE@-man.html \ + pod2htm?.tmp \ + @PACKAGE@.info
View file
bashdb-4.2-0.8.tar.bz2/doc/Makefile.in -> bashdb-4.4-0.92.tar.bz2/doc/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -33,6 +32,51 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA ############################################################################## VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -52,21 +96,62 @@ build_triplet = @build@ host_triplet = @host@ subdir = doc -DIST_COMMON = $(bashdb_TEXINFOS) $(srcdir)/Makefile.am \ - $(srcdir)/Makefile.in $(srcdir)/macros.texi.in \ - $(srcdir)/stamp-vti $(srcdir)/version.texi mdate-sh \ - texinfo.tex +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/macros.texi.in $(bashdb_TEXINFOS) mdate-sh \ + $(srcdir)/version.texi $(srcdir)/stamp-vti texinfo.tex ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = macros.texi CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +AM_V_DVIPS = $(am__v_DVIPS_@AM_V@) +am__v_DVIPS_ = $(am__v_DVIPS_@AM_DEFAULT_V@) +am__v_DVIPS_0 = @echo " DVIPS " $@; +am__v_DVIPS_1 = +AM_V_MAKEINFO = $(am__v_MAKEINFO_@AM_V@) +am__v_MAKEINFO_ = $(am__v_MAKEINFO_@AM_DEFAULT_V@) +am__v_MAKEINFO_0 = @echo " MAKEINFO" $@; +am__v_MAKEINFO_1 = +AM_V_INFOHTML = $(am__v_INFOHTML_@AM_V@) +am__v_INFOHTML_ = $(am__v_INFOHTML_@AM_DEFAULT_V@) +am__v_INFOHTML_0 = @echo " INFOHTML" $@; +am__v_INFOHTML_1 = +AM_V_TEXI2DVI = $(am__v_TEXI2DVI_@AM_V@) +am__v_TEXI2DVI_ = $(am__v_TEXI2DVI_@AM_DEFAULT_V@) +am__v_TEXI2DVI_0 = @echo " TEXI2DVI" $@; +am__v_TEXI2DVI_1 = +AM_V_TEXI2PDF = $(am__v_TEXI2PDF_@AM_V@) +am__v_TEXI2PDF_ = $(am__v_TEXI2PDF_@AM_DEFAULT_V@) +am__v_TEXI2PDF_0 = @echo " TEXI2PDF" $@; +am__v_TEXI2PDF_1 = +AM_V_texinfo = $(am__v_texinfo_@AM_V@) +am__v_texinfo_ = $(am__v_texinfo_@AM_DEFAULT_V@) +am__v_texinfo_0 = -q +am__v_texinfo_1 = +AM_V_texidevnull = $(am__v_texidevnull_@AM_V@) +am__v_texidevnull_ = $(am__v_texidevnull_@AM_DEFAULT_V@) +am__v_texidevnull_0 = > /dev/null +am__v_texidevnull_1 = INFO_DEPS = $(srcdir)/bashdb.info am__TEXINFO_TEX_DIR = $(srcdir) DVIS = bashdb.dvi @@ -79,6 +164,11 @@ MAKEINFOHTML = $(MAKEINFO) --html AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS) DVIPS = dvips +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__installdirs = "$(DESTDIR)$(infodir)" "$(DESTDIR)$(man1dir)" am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ @@ -101,13 +191,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } man1dir = $(mandir)/man1 NROFF = nroff MANS = $(man1_MANS) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -127,6 +225,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -153,6 +252,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -168,6 +268,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -184,6 +285,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@
View file
bashdb-4.2-0.8.tar.bz2/doc/bashdb-man.html -> bashdb-4.4-0.92.tar.bz2/doc/bashdb-man.html
Changed
@@ -2,7 +2,7 @@ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> -<title>bashdb - bash debugger script</title> +<title></title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:root@localhost" /> </head> @@ -10,251 +10,220 @@ <body style="background-color: white"> -<!-- INDEX BEGIN --> -<div name="index"> -<p><a name="__index__"></a></p> -<ul> - - <li><a href="#name">NAME</a></li> - <li><a href="#synopsis">SYNOPSIS</a></li> - <li><a href="#description">DESCRIPTION</a></li> - <li><a href="#options">OPTIONS</a></li> - <li><a href="#bugs">BUGS</a></li> - <li><a href="#see_also">SEE ALSO</a></li> - <li><a href="#author">AUTHOR</a></li> - <li><a href="#copyright">COPYRIGHT</a></li> +<ul id="index"> + <li><a href="#NAME">NAME</a></li> + <li><a href="#SYNOPSIS">SYNOPSIS</a></li> + <li><a href="#DESCRIPTION">DESCRIPTION</a></li> + <li><a href="#OPTIONS">OPTIONS</a></li> + <li><a href="#BUGS">BUGS</a></li> + <li><a href="#SEE-ALSO">SEE ALSO</a></li> + <li><a href="#AUTHOR">AUTHOR</a></li> + <li><a href="#COPYRIGHT">COPYRIGHT</a></li> </ul> -<hr name="index" /> -</div> -<!-- INDEX END --> +<h1 id="NAME">NAME</h1> -<p> -</p> -<hr /> -<h1><a name="name">NAME</a></h1> <p>bashdb - bash debugger script</p> -<p> -</p> -<hr /> -<h1><a name="synopsis">SYNOPSIS</a></h1> -<p><strong>bashdb</strong> [<em>options</em>] [--] <em>script-name</em> [<em>script options</em>]</p> -<p><strong>bashdb</strong> [<em>options</em>] -c <em>execution-string</em></p> -<p><strong>bash --debugger</strong> [<em>bash-options</em>...] <em>script-name</em> [<em>script options</em>]</p> -<p> -</p> -<hr /> -<h1><a name="description">DESCRIPTION</a></h1> -<p><code>bashdb</code> is a bash script to which arranges for another bash script -to be debugged.</p> + +<h1 id="SYNOPSIS">SYNOPSIS</h1> + +<p><b>bashdb</b> [<i>options</i>] [--] <i>script-name</i> [<i>script options</i>]</p> + +<p><b>bashdb</b> [<i>options</i>] -c <i>execution-string</i></p> + +<p><b>bash --debugger</b> [<i>bash-options</i>...] <i>script-name</i> [<i>script options</i>]</p> + +<h1 id="DESCRIPTION">DESCRIPTION</h1> + +<p><code>bashdb</code> is a bash script to which arranges for another bash script to be debugged.</p> + + + The debugger has a similar command interface as <a -href="http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html">gdb</a>.<p>The way this script arranges debugging to occur is by including (or -actually "source"-ing) some debug-support code and then sourcing the -given script or command string.</p> -<p>One problem with sourcing a debugged script is that the program name -stored in $0 will be <code>bashdb</code> rather than the name of the script to -be debugged. The debugged script will appear in a call stack not as -the top item but as the item below <code>bashdb</code>. If this is of concern, -use the last form given above, <code>bash --debugger</code> <em>script-name</em> -[<em>script-options</em>].</p> -<p>If you used bashdb script and need to pass options to the script to be -debugged, add <code>--</code> before the script name. That will tell bashdb not -to try to process any further options.</p> -<p>See the reference manual <a href="http://bashdb.sourceforge.net/bashdb.html">http://bashdb.sourceforge.net/bashdb.html</a> -for how to to call the debugger from inside your program or arrange -for the debugger to get called when your program is sent a signal.</p> -<p> -</p> -<hr /> -<h1><a name="options">OPTIONS</a></h1> +href="http://sourceware.org/gdb/current/onlinedocs/gdb_toc.html">gdb</a>. + +<p>The way this script arranges debugging to occur is by including (or actually "source"-ing) some debug-support code and then sourcing the given script or command string.</p> + +<p>One problem with sourcing a debugged script is that the program name stored in $0 will be <code>bashdb</code> rather than the name of the script to be debugged. The debugged script will appear in a call stack not as the top item but as the item below <code>bashdb</code>. If this is of concern, use the last form given above, <code>bash --debugger</code> <i>script-name</i> [<i>script-options</i>].</p> + +<p>If you used bashdb script and need to pass options to the script to be debugged, add <code>--</code> before the script name. That will tell bashdb not to try to process any further options.</p> + +<p>See the reference manual <a href="http://bashdb.sourceforge.net/bashdb.html">http://bashdb.sourceforge.net/bashdb.html</a> for how to to call the debugger from inside your program or arrange for the debugger to get called when your program is sent a signal.</p> + +<h1 id="OPTIONS">OPTIONS</h1> + <dl> -<dt><strong><a name="h_help" class="item">-h | --help</a></strong></dt> +<dt id="h---help">-h | --help</dt> <dd> -<p>Print a usage message on standard error and exit with a return code -of 100.</p> + +<p>Print a usage message on standard error and exit with a return code of 100.</p> + <p></p> -</dd> -<dt><strong><a name="a_annotation_level" class="item">-A | --annotation <em>level</em></a></strong></dt> +</dd> +<dt id="A---annotation-level">-A | --annotation <i>level</i></dt> <dd> -<p>Sets to output additional stack and status information which allows -front-ends such as emacs to track what's going on without polling.</p> -<p>This is needed in for regression testing. Using this -option is equivalent to issuing:</p> -<pre> - set annotation LEVEL</pre> + +<p>Sets to output additional stack and status information which allows front-ends such as emacs to track what's going on without polling.</p> + +<p>This is needed in for regression testing. Using this option is equivalent to issuing:</p> + +<pre><code> set annotation LEVEL</code></pre> + <p>inside the debugger.</p> + <p></p> -</dd> -<dt><strong><a name="b_basename" class="item">-B | --basename</a></strong></dt> +</dd> +<dt id="B---basename">-B | --basename</dt> <dd> -<p>In places where a filename appears in debugger output give just the -basename only. This is needed in for regression testing. Using this -option is equivalent to issuing:</p> -<pre> - set basename on</pre> + +<p>In places where a filename appears in debugger output give just the basename only. This is needed in for regression testing. Using this option is equivalent to issuing:</p> + +<pre><code> set basename on </code></pre> + <p>inside the debugger.</p> + <p></p> -</dd> -<dt><strong><a name="n_nx" class="item">-n | nx</a></strong></dt> +</dd> +<dt id="n-nx">-n | nx</dt> <dd> -<p>Normally the debugger will read debugger commands in <code>~/.bashdbinit</code> -if that file exists before accepting user interaction. -<code>.bashdbinit</code> is analogus to Perl's <code>.perldb</code> or GNU gdb's -<code>.gdbinit</code>: a user might want to create such a debugger profile to -add various user-specific customizations.</p> -<p>Using the <code>-n</code> option this initialization file will not be read. This -is useful in regression testing or in tracking down a problem with -one's <code>.bashdbinit</code> profile.</p> + +<p>Normally the debugger will read debugger commands in <code>~/.bashdbinit</code> if that file exists before accepting user interaction. <code>.bashdbinit</code> is analogus to Perl's <code>.perldb</code> or GNU gdb's <code>.gdbinit</code>: a user might want to create such a debugger profile to add various user-specific customizations.</p> + +<p>Using the <code>-n</code> option this initialization file will not be read. This is useful in regression testing or in tracking down a problem with one's <code>.bashdbinit</code> profile.</p> + <p></p> -</dd> -<dt><strong><a name="c_command_string" class="item">-c <em>command-string</em></a></strong></dt> +</dd> +<dt id="c-command-string">-c <i>command-string</i></dt> <dd> -<p>Instead of specifying the name of a script file, one can give an -execution string that is to be debugged. Use this option to do that.</p> -<p>If you invoke the debugger via <code>bash --debugger</code>, the filename that will -appear in source listing or in a call stack trace will be the artifical name -*BOGUS*.</p> + +<p>Instead of specifying the name of a script file, one can give an execution string that is to be debugged. Use this option to do that.</p> + +<p>If you invoke the debugger via <code>bash --debugger</code>, the filename that will appear in source listing or in a call stack trace will be the artificial name *BOGUS*.</p> + <p></p> -</dd> -<dt><strong><a name="q_quiet" class="item">-q | --quiet</a></strong></dt>
View file
bashdb-4.2-0.8.tar.bz2/doc/bashdb-man.pod -> bashdb-4.4-0.92.tar.bz2/doc/bashdb-man.pod
Changed
@@ -106,7 +106,7 @@ execution string that is to be debugged. Use this option to do that. If you invoke the debugger via C<bash --debugger>, the filename that will -appear in source listing or in a call stack trace will be the artifical name +appear in source listing or in a call stack trace will be the artificial name *BOGUS*. Z<> @@ -148,11 +148,14 @@ =item -t | --tty I<tty-name> -Debugger output usually goes to a terminal rather than stdout or stdin +Debugger output usually goes to a terminal rather than STDOUT which the debugged program may use. Determination of the tty or pseudo-tty is normally done automatically. However if you want to control where the debugger output goes, use this option. +If you want output to go to STDOUT use &1. Note: the '&' may have to be +escaped or quoted to avoid shell interpretation with forking. + Z<> =item -V | --version
View file
bashdb-4.2-0.8.tar.bz2/doc/bashdb.1 -> bashdb-4.4-0.92.tar.bz2/doc/bashdb.1
Changed
@@ -1,4 +1,4 @@ -.\" Automatically generated by Pod::Man 2.22 (Pod::Simple 3.07) +.\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28) .\" .\" Standard preamble: .\" ======================================================================== @@ -38,6 +38,8 @@ . ds PI \(*p . ds L" `` . ds R" '' +. ds C` +. ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. @@ -48,17 +50,24 @@ .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. -.ie \nF \{\ -. de IX -. tm Index:\\$1\t\\n%\t"\\$2" +.\" +.\" Avoid warning from groff about undefined register 'F'. +.de IX .. -. nr % 0 -. rr F -.\} -.el \{\ -. de IX +.nr rF 0 +.if \n(.g .if rF .nr rF 1 +.if (\n(rF:(\n(.g==0)) \{ +. if \nF \{ +. de IX +. tm Index:\\$1\t\\n%\t"\\$2" .. +. if !\nF==2 \{ +. nr % 0 +. nr F 2 +. \} +. \} .\} +.rr rF .\" .\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2). .\" Fear. Run. Save yourself. No user-serviceable parts. @@ -124,7 +133,7 @@ .\" ======================================================================== .\" .IX Title "bashdb 1" -.TH bashdb 1 "2009-06-26" "4.2-0.8dev" "GNU Tools" +.TH bashdb 1 "2015-10-15" "4.3-0.91" "GNU Tools" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l @@ -217,7 +226,7 @@ execution string that is to be debugged. Use this option to do that. .Sp If you invoke the debugger via \f(CW\*(C`bash \-\-debugger\*(C'\fR, the filename that will -appear in source listing or in a call stack trace will be the artifical name +appear in source listing or in a call stack trace will be the artificial name *BOGUS*. .Sp @@ -254,11 +263,14 @@ .IP "\-t | \-\-tty \fItty-name\fR" 4 .IX Item "-t | --tty tty-name" -Debugger output usually goes to a terminal rather than stdout or stdin +Debugger output usually goes to a terminal rather than \s-1STDOUT\s0 which the debugged program may use. Determination of the tty or pseudo-tty is normally done automatically. However if you want to control where the debugger output goes, use this option. .Sp +If you want output to go to \s-1STDOUT\s0 use &1. Note: the '&' may have to be +escaped or quoted to avoid shell interpretation with forking. +.Sp .IP "\-V | \-\-version" 4 .IX Item "-V | --version"
View file
bashdb-4.2-0.8.tar.bz2/doc/bashdb.info -> bashdb-4.4-0.92.tar.bz2/doc/bashdb.info
Changed
@@ -1,16 +1,16 @@ -This is bashdb.info, produced by makeinfo version 4.13 from bashdb.texi. +This is bashdb.info, produced by makeinfo version 5.2 from bashdb.texi. INFO-DIR-SECTION Programming & development tools. START-INFO-DIR-ENTRY * Bashdb - the bash debugger: (bashdb). The BASH debugger END-INFO-DIR-ENTRY - This file documents the BASH debugger BASH. +This file documents the BASH debugger BASH. - This is the 4.2-0.8 Edition, 7 March 2011, of `Debugging with -BASHDB: the GNU Source-Level Debugger' for BASH + This is the 4.4-0.92 Edition, 7 July 2014, of 'Debugging with BASHDB: +the GNU Source-Level Debugger' for BASH - Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky + Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein for the Free Software Foundation. Permission is granted to copy, distribute and/or modify this document @@ -26,9 +26,9 @@ This file describes the BASH debugger, the BASH symbolic debugger. - This is the 4.2-0.8 Edition, 7 March 2011, for BASH. + This is the 4.4-0.92 Edition, 7 July 2014, for BASH. - Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky + Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein * Menu: @@ -39,8 +39,6 @@ * Running:: Script setup inside the BASH debugger * Debugger Command Reference:: BASH debugger command reference -* Front Ends:: Using the Debugger from a front-end user interface - * BASH Debugger Bugs:: Reporting bugs * History and Acknowledgments:: History and Acknowledgments @@ -50,21 +48,20 @@ * GNU Free Documentation License:: The license for this documentation Indexes (nodes containing large menus) -* Function Index:: An item for each function name. * Command Index:: An item for each command name. -* Variable Index:: An item for each documented variable. * General Index:: An item for each concept.  -File: bashdb.info, Node: Summary, Next: Invocation, Prev: Top, Up: Top +File: bashdb.info, Node: Summary, Next: Invocation, Up: Top 1 Summary of the BASH Debugger ****************************** -The purpose of a debugger such as the BASH debugger going on "inside" a -bash script while it executes. +The purpose of a debugger such as the BASH debugger is to allow you to +see what is going on "inside" a bash script while it executes. - the BASH debugger these) to help you catch bugs in the act: + the BASH debugger can do four main kinds of things (plus other things +in support of these) to help you catch bugs in the act: * Start your script, specifying anything that might affect its behavior. @@ -73,12 +70,12 @@ * Examine what has happened, when your script has stopped. - * Change things in your script, so you can experiment with - correcting the effects of one bug and go on to learn about another. + * Change things in your script, so you can experiment with correcting + the effects of one bug and go on to learn about another. Although you can use the BASH debugger to debug scripts written in BASH, it can also be used just as a front-end for learning more about -programming in BASH. As an additional aid, the debugger can be used +programming in BASH. As an additional aid, the debugger can be used within the context of an existing script with its functions and variables that have already been initialized; fragments of the existing can be experimented with by entering them inside the debugger. @@ -102,8 +99,8 @@ factorial of a number: fact(0) is 1 and fact(n) is n*fact(n-1). $ bashdb -L . /tmp/fact.sh - Bourne-Again Shell Debugger, release bash-4.2-0.8 - Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky Bernstein + Bourne-Again Shell Debugger, release bash-4.4-0.92 + Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein This is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. @@ -122,28 +119,23 @@ bashdb<1> list 10: echo fact 3 is: $(fact 3) -The command invocation uses the option "-L ." Here we assume that the -`bashdb' script and the debugger files are in the same location. If you -are running from the source code, this will be the case. However if -bashdb has been installed this probably won't be true and here you -probably don't need to use "-L ." Instead you would type simply `bashdb + The command invocation uses the option "-L ." Here we assume that +the 'bashdb' script and the debugger files are in the same location. If +you are running from the source code, this will be the case. However if +_bashdb_ has been installed this probably won't be true and here you +probably don't need to use "-L ." Instead you would type simply 'bashdb /tmp/fact.sh'. Position information consists of a filename and line number, e.g. -`(/tmp/fact.sh:9)' and is given parenthesis. This position format is -similar to that used by the Perl debugger and is also in the same -format used by my GNU make debugger -(`http://bashdb.sourceforge.net/remake') the Extended Python Debugger -`http://remake.sourceforge.net/pydb', and one for Ruby -(`http://bashdb.sorceforge.net/ruby-debug.html'). GNU Emacs and DDD -can parse this and in fact the same regular expression is used on the 3 -debuggers. - - The first debugger command we gave `-', we listed a window of lines -_before_ where we were executing. Because the window, 10 lines, is -larger than the number of lines to the top of the file we printed only -9 lines here. The next command, `list', starts from the current line -and again wants to print 10 lines but because there are only one +'(/tmp/fact.sh:9)' and is given parenthesis. This position format is +similar to that used in a dozen or so other debuggers; GNU Emacs and DDD +can parse this format. + + In the first debugger command we gave '-', we listed a window of +lines _before_ where we were executing. Because the window, 10 lines, +is larger than the number of lines to the top of the file we printed +only 9 lines here. The next command, 'list', starts from the current +line and again wants to print 10 lines but because there are only one remaining line, that is what is printed. bashdb<2> step @@ -158,38 +150,39 @@ bashdb<(6)> - Ooops... The variable `n' isn't initialized.(1) + Ooops... The variable 'n' isn't initialized.(1) - The first `step' command steps the script one instruction. It may -seem odd that the line printed is exactly the same one as before. What + The first 'step' command steps the script one instruction. It may +seem odd that the line printed is exactly the same one as before. What has happened though is that we've "stepped" into the subshell needed to -run ``fact 0`'; we haven't however started running anything inside that +run '`fact 0`'; we haven't however started running anything inside that subshell yet though. - To indicate that which piece of the multi-part line `echo fact 0 is: -`fact 0`' we show that part all by itself `fact 0'. If nothing is shown -then it means we are running the beginning statement or in this case -the outermost statement. + To indicate that which piece of the multi-part line 'echo fact 0 is: +`fact 0`' we show that part all by itself 'fact 0'. If nothing is shown +then it means we are running the beginning statement or in this case the +outermost statement. To indicate that we are now nested in a subshell, notice that the command number, starting with 3, or the third command entered, now -appears in parenthesis. Each subshell nesting adds a set of parenthesis. +appears in parenthesis. Each subshell nesting adds a set of +parenthesis. - The first `step' command steps the script one instruction; it didn't -advance the line number, 9, at all. That is because we were stopping -before the command substitution or backtick is to take place. The -second command we entered was just hitting the return key; bashdb -remembers that you entered `step' previously, so it runs the step -rather than `next', the other alternative when you hit <RET>. Step one -more instruction and we are just before running the first statement of -the function. - - Next, we print the value of the variable `n'. Notice we need to add -a preceding dollar simple to get the substitution or value of n. As we -will see later, if the `pe' command were used this would not be + The first 'step' command steps the script one instruction; it didn't +advance the line number, 9, at all. That is because we were stopping +before the command substitution or backtick is to take place. The +second command we entered was just hitting the return key; _bashdb_ +remembers that you entered 'step' previously, so it runs the step rather +than 'next', the other alternative when you hit <RET>. Step one more +instruction and we are just before running the first statement of the +function. + + Next, we print the value of the variable 'n'. Notice we need to add +a preceding dollar simple to get the substitution or value of n. As we +will see later, if the 'pe' command were used this would not be necessary. - We now modify the file to add an assignment to local variable `n' and + We now modify the file to add an assignment to local variable 'n' and restart.
View file
bashdb-4.2-0.8.tar.bz2/doc/bashdb.texi -> bashdb-4.4-0.92.tar.bz2/doc/bashdb.texi
Changed
@@ -1,12 +1,12 @@ \input texinfo @c -*-texinfo-*- -@c Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009 +@c Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 @c Rocky Bernstein for the Free Software Foundation @c -@c TODO: +@c TODO: @c - add examples for commands @c - clean up/improve sample session @c - help text is inaccurate and formatted too much to right. -@c +@c @c Sets version and release names and dates. Frees us from changing @c this file when a new release comes along. @@ -15,7 +15,7 @@ @c makeinfo ignores cmds prev to setfilename, so its arg cannot make use @c of @set vars. However, you can override filename with makeinfo -o. @setfilename bashdb.info -@c +@c @c Name of Bash program. Used in running text. @c @@ -33,7 +33,7 @@ @include version.texi @include macros.texi -@c Karl Berry informs me that this will add straight quotes in +@c Karl Berry informs me that this will add straight quotes in @c typewriter text. @c See the "Inserting Quote Characters" node in the Texinfo manual @set txicodequoteundirected @@ -68,7 +68,8 @@ of @cite{Debugging with BASHDB: the @sc{gnu} Source-Level Debugger} for BASH -Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky Bernstein for the Free Software Foundation. +Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 +Rocky Bernstein for the Free Software Foundation. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or @@ -115,16 +116,16 @@ @subtitle @value{UPDATED-MONTH} @author Rocky Bernstein @page -@tex -{\parskip=0pt -\hfill (Send bugs and comments on bashdb to bug-bashdb\@sourceforge.net.)\par -\hfill {\it Debugging with BASH}\par -\hfill \TeX{}info \texinfoversion\par -} -@end tex +@c @tex +@c {\parskip=0pt +@c \hfill (Send bugs and comments on @emph{bashdb} to bug-bashdb\@sourceforge.net.)\par +@c \hfill {\it Debugging with BASH}\par +@c \hfill \TeX{}info \texinfoversion\par +@c } +@c @end tex @vskip 0pt plus 1filll -Copyright @copyright{} 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky Bernstein for the Free Software +Copyright @copyright{} 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein for the Free Software Foundation. Permission is granted to copy, distribute and/or modify this document @@ -176,7 +177,7 @@ This is the @value{EDITION} Edition, @value{UPDATED}, for BASH. -Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky Bernstein +Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein @menu * Summary:: Overview of Debugger with a sample session @@ -185,8 +186,6 @@ * Running:: Script setup inside the BASH debugger * Debugger Command Reference:: BASH debugger command reference -* Front Ends:: Using the Debugger from a front-end user interface - * BASH Debugger Bugs:: Reporting bugs * History and Acknowledgments:: History and Acknowledgments @@ -196,9 +195,7 @@ * GNU Free Documentation License:: The license for this documentation Indexes (nodes containing large menus) -* Function Index:: An item for each function name. * Command Index:: An item for each command name. -* Variable Index:: An item for each documented variable. * General Index:: An item for each concept. @end menu @@ -261,7 +258,7 @@ @smallexample $ @b{bashdb -L . /tmp/fact.sh} Bourne-Again Shell Debugger, release bash-@value{VERSION} -Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009 Rocky Bernstein +Copyright 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2011 Rocky Bernstein This is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. @@ -275,32 +272,27 @@ 5: ((result=n*`fact $nm1`)) 6: echo $result 7: @} - 8: + 8: 9:==> echo fact 0 is: `fact 0` bashdb<1> @b{list} 10: echo fact 3 is: $(fact 3) -@end smallexample +@end smallexample @noindent The command invocation uses the option ``-L .'' Here we assume that the @command{bashdb} script and the debugger files are in the same location. If you are running from the source code, this will be the -case. However if bashdb has been installed this probably won't be true +case. However if @emph{bashdb} has been installed this probably won't be true and here you probably don't need to use ``-L .'' Instead you would type simply @code{bashdb /tmp/fact.sh}. Position information consists of a filename and line number, e.g. @code{(/tmp/fact.sh:9)} and is given parenthesis. This position -format is similar to that used by the Perl debugger and is also in the -same format used by my GNU make debugger -(@url{http://bashdb.sourceforge.net/remake}) the Extended Python -Debugger @url{http://remake.sourceforge.net/pydb}, and one for Ruby -(@url{http://bashdb.sorceforge.net/ruby-debug.html}). GNU Emacs and -DDD can parse this and in fact the same regular expression is used on -the 3 debuggers. +format is similar to that used in a dozen or so other debuggers; GNU +Emacs and DDD can parse this format. -The first debugger command we gave @kbd{-}, we listed a window of +In the first debugger command we gave @kbd{-}, we listed a window of lines @emph{before} where we were executing. Because the window, 10 lines, is larger than the number of lines to the top of the file we printed only 9 lines here. The next command, @code{list}, starts from @@ -348,7 +340,7 @@ didn't advance the line number, 9, at all. That is because we were stopping before the command substitution or backtick is to take place. The second command we entered was just hitting the return key; -bashdb remembers that you entered @code{step} previously, so it runs +@emph{bashdb} remembers that you entered @code{step} previously, so it runs the step rather than @kbd{next}, the other alternative when you hit @key{RET}. Step one more instruction and we are just before running the first statement of the function. @@ -356,7 +348,7 @@ Next, we print the value of the variable @kbd{n}. Notice we need to add a preceding dollar simple to get the substitution or value of n. As we will see later, if the @kbd{pe} command were used this would not be -necessary. +necessary. We now modify the file to add an assignment to local variable @kbd{n} and restart. @@ -376,7 +368,7 @@ 6: ((result=n*`fact $nm1`)) 7: echo $result 8: @} - 9: + 9: 10:==> echo fact 0 is: `fact 0` bashdb<1> @b{s 3} (/tmp/fact.sh:3): @@ -388,7 +380,7 @@ print $n 0 @end cartouche -@end smallexample +@end smallexample @noindent This time we use the @code{list} debugger command to list the lines in @@ -404,11 +396,11 @@ 4: ((n==0)) && echo 1 && return echo 1 bashdb<(5)> @b{@key{RET}} -(/tmp/fact.sh:4): +(/tmp/fact.sh:4): 4: ((n==0)) && echo 1 && return return @end cartouche -@end smallexample +@end smallexample @noindent Again we just use @key{RET} to repeat the last @code{step} @@ -423,13 +415,13 @@ @cartouche bashdb<(6)> @b{@key{RET}} fact 0 is: 1 -(/tmp/fact.sh:12):
View file
bashdb-4.2-0.8.tar.bz2/doc/gpl.texi -> bashdb-4.4-0.92.tar.bz2/doc/gpl.texi
Changed
@@ -301,12 +301,7 @@ of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. -@iftex -@heading NO WARRANTY -@end iftex -@ifnottex @center NO WARRANTY -@end ifnottex @item BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
View file
bashdb-4.2-0.8.tar.bz2/doc/macros.texi -> bashdb-4.4-0.92.tar.bz2/doc/macros.texi
Changed
@@ -15,6 +15,6 @@ @value{DBG} @end macro -@set libdir /usr/local/lib -@set bindir /usr/local/bin +@set libdir /usr/share/lib +@set bindir /usr/share/bin
View file
bashdb-4.2-0.8.tar.bz2/doc/mdate-sh -> bashdb-4.4-0.92.tar.bz2/doc/mdate-sh
Changed
@@ -1,10 +1,9 @@ #!/bin/sh # Get modification time of a file or directory and pretty-print it. -scriptversion=2009-04-28.21; # UTC +scriptversion=2010-08-21.06; # UTC -# Copyright (C) 1995, 1996, 1997, 2003, 2004, 2005, 2007, 2009 Free -# Software Foundation, Inc. +# Copyright (C) 1995-2013 Free Software Foundation, Inc. # written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, June 1995 # # This program is free software; you can redistribute it and/or modify @@ -29,16 +28,26 @@ # bugs to <bug-automake@gnu.org> or send patches to # <automake-patches@gnu.org>. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +fi + case $1 in '') - echo "$0: No file. Try \`$0 --help' for more information." 1>&2 + echo "$0: No file. Try '$0 --help' for more information." 1>&2 exit 1; ;; -h | --h*) cat <<\EOF Usage: mdate-sh [--help] [--version] FILE -Pretty-print the modification time of FILE. +Pretty-print the modification day of FILE, in the format: +1 January 1970 Report bugs to <bug-automake@gnu.org>. EOF @@ -50,6 +59,13 @@ ;; esac +error () +{ + echo "$0: $1" >&2 + exit 1 +} + + # Prevent date giving response in another language. LANG=C export LANG @@ -59,7 +75,7 @@ export LC_TIME # GNU ls changes its time format in response to the TIME_STYLE -# variable. Since we cannot assume `unset' works, revert this +# variable. Since we cannot assume 'unset' works, revert this # variable to its documented default. if test "${TIME_STYLE+set}" = set; then TIME_STYLE=posix-long-iso @@ -79,14 +95,14 @@ ls_command="$ls_command -n" fi -# A `ls -l' line looks as follows on OS/2. +# A 'ls -l' line looks as follows on OS/2. # drwxrwx--- 0 Aug 11 2001 foo # This differs from Unix, which adds ownership information. # drwxrwx--- 2 root root 4096 Aug 11 2001 foo # # To find the date, we split the line on spaces and iterate on words # until we find a month. This cannot work with files whose owner is a -# user named `Jan', or `Feb', etc. However, it's unlikely that `/' +# user named "Jan", or "Feb", etc. However, it's unlikely that '/' # will be owned by a user whose name is a month. So we first look at # the extended ls output of the root directory to decide how many # words should be skipped to get the date. @@ -99,6 +115,7 @@ command= until test $month do + test $# -gt 0 || error "failed parsing '$ls_command /' output" shift # Add another shift to the command. command="$command shift;" @@ -118,8 +135,10 @@ esac done +test -n "$month" || error "failed parsing '$ls_command /' output" + # Get the extended ls output of the file or directory. -set dummy x`eval "$ls_command \"\$save_arg1\""` +set dummy x`eval "$ls_command \"\\\$save_arg1\""` # Remove all preceding arguments eval $command
View file
bashdb-4.2-0.8.tar.bz2/doc/stamp-vti -> bashdb-4.4-0.92.tar.bz2/doc/stamp-vti
Changed
@@ -1,4 +1,4 @@ -@set UPDATED 7 March 2011 -@set UPDATED-MONTH March 2011 -@set EDITION 4.2-0.8 -@set VERSION 4.2-0.8 +@set UPDATED 7 July 2014 +@set UPDATED-MONTH July 2014 +@set EDITION 4.4-0.92 +@set VERSION 4.4-0.92
View file
bashdb-4.2-0.8.tar.bz2/doc/texinfo.tex -> bashdb-4.4-0.92.tar.bz2/doc/texinfo.tex
Changed
@@ -3,11 +3,11 @@ % Load plain if necessary, i.e., if running under initex. \expandafter\ifx\csname fmtname\endcsname\relax\input plain\fi % -\def\texinfoversion{2009-08-14.15} +\def\texinfoversion{2013-02-01.11} % % Copyright 1985, 1986, 1988, 1990, 1991, 1992, 1993, 1994, 1995, % 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, -% 2007, 2008, 2009 Free Software Foundation, Inc. +% 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. % % This texinfo.tex file is free software: you can redistribute it and/or % modify it under the terms of the GNU General Public License as @@ -24,13 +24,14 @@ % % As a special exception, when this file is read by TeX when processing % a Texinfo source document, you may use the result without -% restriction. (This has been our intent since Texinfo was invented.) +% restriction. This Exception is an additional permission under section 7 +% of the GNU General Public License, version 3 ("GPLv3"). % % Please try the latest version of texinfo.tex before submitting bug % reports; you can get the latest version from: -% http://www.gnu.org/software/texinfo/ (the Texinfo home page), or -% ftp://tug.org/tex/texinfo.tex -% (and all CTAN mirrors, see http://www.ctan.org). +% http://ftp.gnu.org/gnu/texinfo/ (the Texinfo release area), or +% http://ftpmirror.gnu.org/texinfo/ (same, via a mirror), or +% http://www.gnu.org/software/texinfo/ (the Texinfo home page) % The texinfo.tex in any given distribution could well be out % of date, so if that's what you're using, please check. % @@ -65,7 +66,6 @@ \everyjob{\message{[Texinfo version \texinfoversion]}% \catcode`+=\active \catcode`\_=\active} - \chardef\other=12 % We never want plain's \outer definition of \+ in Texinfo. @@ -93,14 +93,13 @@ \let\ptexnewwrite\newwrite \let\ptexnoindent=\noindent \let\ptexplus=+ +\let\ptexraggedright=\raggedright \let\ptexrbrace=\} \let\ptexslash=\/ \let\ptexstar=\* \let\ptext=\t \let\ptextop=\top -{\catcode`\'=\active -\global\let\ptexquoteright'}% Math-mode def from plain.tex. -\let\ptexraggedright=\raggedright +{\catcode`\'=\active \global\let\ptexquoteright'}% active in plain's math mode % If this character appears in an error message or help string, it % starts a new line in the output. @@ -118,10 +117,11 @@ % Set up fixed words for English if not already set. \ifx\putwordAppendix\undefined \gdef\putwordAppendix{Appendix}\fi \ifx\putwordChapter\undefined \gdef\putwordChapter{Chapter}\fi +\ifx\putworderror\undefined \gdef\putworderror{error}\fi \ifx\putwordfile\undefined \gdef\putwordfile{file}\fi \ifx\putwordin\undefined \gdef\putwordin{in}\fi -\ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi -\ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi +\ifx\putwordIndexIsEmpty\undefined \gdef\putwordIndexIsEmpty{(Index is empty)}\fi +\ifx\putwordIndexNonexistent\undefined \gdef\putwordIndexNonexistent{(Index is nonexistent)}\fi \ifx\putwordInfo\undefined \gdef\putwordInfo{Info}\fi \ifx\putwordInstanceVariableof\undefined \gdef\putwordInstanceVariableof{Instance Variable of}\fi \ifx\putwordMethodon\undefined \gdef\putwordMethodon{Method on}\fi @@ -160,15 +160,18 @@ \def\spaceisspace{\catcode`\ =\spacecat} % sometimes characters are active, so we need control sequences. +\chardef\ampChar = `\& \chardef\colonChar = `\: \chardef\commaChar = `\, \chardef\dashChar = `\- \chardef\dotChar = `\. \chardef\exclamChar= `\! +\chardef\hashChar = `\# \chardef\lquoteChar= `\` \chardef\questChar = `\? \chardef\rquoteChar= `\' \chardef\semiChar = `\; +\chardef\slashChar = `\/ \chardef\underChar = `\_ % Ignore a token. @@ -199,36 +202,7 @@ % that mark overfull boxes (in case you have decided % that the text looks ok even though it passes the margin). % -\def\finalout{\overfullrule=0pt} - -% @| inserts a changebar to the left of the current line. It should -% surround any changed text. This approach does *not* work if the -% change spans more than two lines of output. To handle that, we would -% have adopt a much more difficult approach (putting marks into the main -% vertical list for the beginning and end of each change). -% -\def\|{% - % \vadjust can only be used in horizontal mode. - \leavevmode - % - % Append this vertical mode material after the current line in the output. - \vadjust{% - % We want to insert a rule with the height and depth of the current - % leading; that is exactly what \strutbox is supposed to record. - \vskip-\baselineskip - % - % \vadjust-items are inserted at the left edge of the type. So - % the \llap here moves out into the left-hand margin. - \llap{% - % - % For a thicker or thinner bar, change the `1pt'. - \vrule height\baselineskip width1pt - % - % This is the space between the bar and the text. - \hskip 12pt - }% - }% -} +\def\finalout{\overfullrule=0pt } % Sometimes it is convenient to have everything in the transcript file % and nothing on the terminal. We don't just call \tracingall here, @@ -246,7 +220,7 @@ \tracingmacros2 \tracingrestores1 \showboxbreadth\maxdimen \showboxdepth\maxdimen - \ifx\eTeXversion\undefined\else % etex gives us more logging + \ifx\eTeXversion\thisisundefined\else % etex gives us more logging \tracingscantokens1 \tracingifs1 \tracinggroups1 @@ -257,6 +231,13 @@ \errorcontextlines16 }% +% @errormsg{MSG}. Do the index-like expansions on MSG, but if things +% aren't perfect, it's not the end of the world, being an error message, +% after all. +% +\def\errormsg{\begingroup \indexnofonts \doerrormsg} +\def\doerrormsg#1{\errmessage{#1}} + % add check for \lastpenalty to plain's definitions. If the last thing % we did was a \nobreak, we don't want to insert more space. % @@ -267,7 +248,6 @@ \def\bigbreak{\ifnum\lastpenalty<10000\par\ifdim\lastskip<\bigskipamount \removelastskip\penalty-200\bigskip\fi\fi} -% For @cropmarks command. % Do @cropmarks to get crop marks. % \newif\ifcropmarks @@ -577,7 +557,7 @@ } \def\inenvironment#1{% \ifx#1\empty - out of any environment% + outside of any environment% \else in environment \expandafter\string#1% \fi @@ -589,7 +569,7 @@ \parseargdef\end{% \if 1\csname iscond.#1\endcsname \else - % The general wording of \badenverr may not be ideal, but... --kasal, 06nov03 + % The general wording of \badenverr may not be ideal. \expandafter\checkenv\csname#1\endcsname \csname E#1\endcsname \endgroup @@ -599,85 +579,6 @@ \newhelp\EMsimple{Press RETURN to continue.} -%% Simple single-character @ commands - -% @@ prints an @ -% Kludge this until the fonts are right (grr). -\def\@{{\tt\char64}} - -% This is turned off because it was never documented -% and you can use @w{...} around a quote to suppress ligatures. -%% Define @` and @' to be the same as ` and ' -%% but suppressing ligatures. -%\def\`{{`}} -%\def\'{{'}} - -% Used to generate quoted braces. -\def\mylbrace {{\tt\char123}} -\def\myrbrace {{\tt\char125}} -\let\{=\mylbrace -\let\}=\myrbrace
View file
bashdb-4.2-0.8.tar.bz2/doc/version.texi -> bashdb-4.4-0.92.tar.bz2/doc/version.texi
Changed
@@ -1,4 +1,4 @@ -@set UPDATED 7 March 2011 -@set UPDATED-MONTH March 2011 -@set EDITION 4.2-0.8 -@set VERSION 4.2-0.8 +@set UPDATED 7 July 2014 +@set UPDATED-MONTH July 2014 +@set EDITION 4.4-0.92 +@set VERSION 4.4-0.92
View file
bashdb-4.2-0.8.tar.bz2/init/Makefile.in -> bashdb-4.4-0.92.tar.bz2/init/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = init -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/init ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -242,8 +316,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -257,14 +334,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/init/opts.sh -> bashdb-4.4-0.92.tar.bz2/init/opts.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # debugger command options processing. The bane of programming. # -# Copyright (C) 2008, 2009, 2010, 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2008-2012, 2014-2015 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -12,41 +12,47 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. _Dbg_usage() { - printf "Usage: + printf "Usage: ${_Dbg_pname} [OPTIONS] <script_file> Runs $_Dbg_shell_name <script_file> under a debugger. options: - -h | --help Print this help. - -q | --quiet Do not print introductory and quiet messages. - -A | --annotate LEVEL Set the annotation level. - -B | --basename Show basename only on source file listings. - (Needed in regression tests) - --highlight | --no-highlight - Use or don't use ANSI terminal sequences for syntax - highlight - --init-file FILE Source script file FILE. Similar to bash's - corresponding option. This option can be given - several times with different files. + -h | --help Print this help. + -q | --quiet Do not print introductory and quiet messages. + -A | --annotate LEVEL Set the annotation level. + -B | --basename Show basename only on source file listings. + (Needed in regression tests) + --highlight {dark|light} Use dark or light background ANSI terminal sequence + syntax highlighting + | --no-highlight + Don't use ANSI terminal sequences for syntax + highlight + --highlight | --no-highlight + Use or don't use ANSI terminal sequences for syntax + highlight + --init-file FILE Source script file FILE. Similar to bash's + corresponding option. This option can be given + several times with different files. -L | --library DIRECTORY - Set the directory location of library helper file: $_Dbg_main - -c | --command STRING Run STRING instead of a script file - -n | --nx | --no-init Don't run initialization files. - --tty | --terminal DEV Set to terminal in debugger output - -T | --tempdir DIRECTORY - Use DIRECTORY to store temporary files - -V | --version Print the debugger version number. - -X | --trace Set line tracing similar to set -x + Set the directory location of library helper file: $_Dbg_main + -c | --command STRING Run STRING instead of a script file + -n | --nx | --no-init Don't run initialization files. + --tty | --terminal DEV Set to terminal in debugger output to DEV + DEV can also be &1 for STDOUT + -T | --tempdir DIRECTORY + Use DIRECTORY to store temporary files + -V | --version Print the debugger version number. + -X | --trace Set line tracing similar to set -x -x | --eval-command CMDFILE - Execute debugger commands from CMDFILE. + Execute debugger commands from CMDFILE. " exit 100 } @@ -66,7 +72,7 @@ # easier way to copy an array in bash. eval "_Dbg_orig_script_args=(\"\$@\")" -# The following globals are set by _Dbg_parse_opts. Any values set are +# The following globals are set by _Dbg_parse_opts. Any values set are # the default values. typeset -xa _Dbg_script_args @@ -76,14 +82,31 @@ # Simulate set -x? typeset -i _Dbg_set_linetrace=0 typeset -i _Dbg_set_basename=0 -typeset -i _Dbg_set_highlight=0 +typeset _Dbg_set_highlight='' # Initialized below typeset -a _Dbg_o_init_files; _Dbg_o_init_files=() typeset -i _Dbg_o_nx=0 -typeset -i _Dbg_set_read_completion=0 # $_Dbg_tmpdir could have been set by the top-level debugger script. [[ -z $_Dbg_tmpdir ]] && typeset _Dbg_tmpdir=/tmp +_Dbg_check_tty() { + (( $# < 1 )) && return 1 + typeset tty=$1 + if [[ $tty != '&1' ]] ; then + if ! $(touch $tty >/dev/null 2>/dev/null); then + _Dbg_errmsg "Can't access $tty for writing." + return 1 + fi + if [[ ! -w $tty ]] ; then + _Dbg_errmsg "tty $tty needs to be writable" + return 1 + fi + _Dbg_tty=$tty + _Dbg_prompt_output=$_Dbg_tty + fi + return 0 +} + _Dbg_parse_options() { . ${_Dbg_libdir}/getopts_long.sh @@ -92,91 +115,98 @@ typeset -i _Dbg_o_version=0 while getopts_long A:Bc:x:hL:nqTt:VX opt \ - annotate required_argument \ - basename no_argument \ - command required_argument \ - debugger no_argument \ - eval-command required_argument \ - help no_argument \ - highlight no_argument \ - init-file required_argument \ - library required_argument \ - no-highlight no_argument \ - no-init no_argument \ - nx no_argument \ - quiet no_argument \ + annotate required_argument \ + basename no_argument \ + command required_argument \ + debugger no_argument \ + eval-command required_argument \ + help no_argument \ + highlight required_argument \ + init-file required_argument \ + library required_argument \ + no-highlight no_argument \ + no-init no_argument \ + nx no_argument \ + quiet no_argument \ tempdir required_argument \ tty required_argument \ terminal required_argument \ - version no_argument \ - '' "$@" + version no_argument \ + '' "$@" do - case "$opt" in - A | annotate ) - _Dbg_o_annotate=$OPTLARG;; - B | basename ) - _Dbg_set_basename=1 ;; - c | command ) - _Dbg_EXECUTION_STRING="$OPTLARG" ;; - debugger ) - # This option is for compatibility with bash --debugger - ;; - h | help ) - _Dbg_usage ;; - highlight ) - if ( pygmentize --version || pygmentize -V ) 2>/dev/null 1>/dev/null ; then - _Dbg_set_highlight=1 - else - print "Can't run pygmentize. --highight forced off" >&2 - fi - ;; - no-highlight ) - _Dbg_set_highlight=0 ;; - init-file ) - set -x - _Dbg_o_init_files+="$OPTLARG" - set +x - ;; - L | library ) ;; - V | version ) - _Dbg_o_version=1 ;; - n | nx | no-init ) - _Dbg_o_nx=1 ;; - q | quiet ) - _Dbg_o_quiet=1 ;; - tempdir) - _Dbg_tmpdir=$OPTLARG ;; - terminal | tty ) - if ! $(touch $OPTLARG >/dev/null 2>/dev/null); then - echo "${_Dbg_pname}: Can't access $OPTLARG for writing." - elif [[ ! -w $OPTLARG ]] ; then - echo "${_Dbg_pname}: terminal $OPTLARG needs to be writable."
View file
bashdb-4.2-0.8.tar.bz2/init/pre.sh -> bashdb-4.4-0.92.tar.bz2/init/pre.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # pre.sh - Code common to bashdb and bashdb-trace that has to run first # -# Copyright (C) 2002, 2003, 2004, 2008, 2009, 2010, 2011 +# Copyright (C) 2002-2004, 2008-2012 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -30,7 +30,13 @@ # This function is overwritten by when lib/fns.sh gets loaded _Dbg_msg() { - echo $* + echo >&2 $@ +} + +# This function is overwritten by when lib/fns.sh gets loaded +_Dbg_errmsg() +{ + echo >&2 "${_Dbg_pname}: $@" } # Used by "show version" as well as --version @@ -109,7 +115,7 @@ typeset _Dbg_set_trace_commands='off' # Known normal IFS consisting of a space, tab and newline -typeset -x _Dbg_space_IFS=' +typeset -x _Dbg_space_IFS=' ' # Number of statements to run before entering the debugger. Is used
View file
bashdb-4.2-0.8.tar.bz2/init/require.sh -> bashdb-4.4-0.92.tar.bz2/init/require.sh
Changed
@@ -9,30 +9,30 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. -if [[ -z $_Dbg_requires ]] ; then +if [[ -z $_Dbg_requires ]] ; then function _Dbg_expand_filename { typeset -r filename="$1" - + # Break out basename and dirname typeset basename="${filename##*/}" typeset -x dirname="${filename%/*}" - + # No slash given in filename? Then use . for dirname [[ $dirname == $basename ]] && [[ $filename != '/' ]] && dirname='.' - + # Dirname is ''? Then use / for dirname dirname=${dirname:-/} - + # Handle tilde expansion in dirname dirname=$(echo $dirname) - + typeset long_path - + if long_path=$( (cd "$dirname" ; pwd) 2>/dev/null ) ; then if [[ "$long_path" == '/' ]] ; then echo "/$basename" @@ -48,7 +48,7 @@ typeset -A _Dbg_requires require() { - typeset file + typeset file typeset expanded_file typeset source_dir typeset orig_dir @@ -69,4 +69,3 @@ [[ -n $orig_dir ]] && builtin cd $orig_dir } fi -
View file
bashdb-4.2-0.8.tar.bz2/install-sh -> bashdb-4.4-0.92.tar.bz2/install-sh
Changed
@@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2009-04-28.21; # UTC +scriptversion=2011-11-20.07; # UTC # This originates from X11R5 (mit/util/scripts/install.sh), which was # later released in X11R6 (xc/config/util/install.sh) with the @@ -35,7 +35,7 @@ # FSF changes to this file are in the public domain. # # Calling this script install-sh is preferred over install.sh, to prevent -# `make' implicit rules from creating a file called install from it +# 'make' implicit rules from creating a file called install from it # when there is no Makefile. # # This script is compatible with the BSD install script, but was written @@ -156,6 +156,10 @@ -s) stripcmd=$stripprog;; -t) dst_arg=$2 + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac shift;; -T) no_target_directory=true;; @@ -186,6 +190,10 @@ fi shift # arg dst_arg=$arg + # Protect names problematic for 'test' and other utilities. + case $dst_arg in + -* | [=\(\)!]) dst_arg=./$dst_arg;; + esac done fi @@ -194,13 +202,17 @@ echo "$0: no input file specified." >&2 exit 1 fi - # It's OK to call `install-sh -d' without argument. + # It's OK to call 'install-sh -d' without argument. # This can happen when creating conditional directories. exit 0 fi if test -z "$dir_arg"; then - trap '(exit $?); exit' 1 2 13 15 + do_exit='(exit $ret); exit $ret' + trap "ret=129; $do_exit" 1 + trap "ret=130; $do_exit" 2 + trap "ret=141; $do_exit" 13 + trap "ret=143; $do_exit" 15 # Set umask so as not to create temps with too-generous modes. # However, 'strip' requires both read and write access to temps. @@ -228,9 +240,9 @@ for src do - # Protect names starting with `-'. + # Protect names problematic for 'test' and other utilities. case $src in - -*) src=./$src;; + -* | [=\(\)!]) src=./$src;; esac if test -n "$dir_arg"; then @@ -252,12 +264,7 @@ echo "$0: no destination specified." >&2 exit 1 fi - dst=$dst_arg - # Protect names starting with `-'. - case $dst in - -*) dst=./$dst;; - esac # If destination is a directory, append the input filename; won't work # if double slashes aren't ignored. @@ -347,7 +354,7 @@ if test -z "$dir_arg" || { # Check for POSIX incompatibilities with -m. # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or - # other-writeable bit of parent directory when it shouldn't. + # other-writable bit of parent directory when it shouldn't. # FreeBSD 6.1 mkdir -m -p sets mode of existing directory. ls_ld_tmpdir=`ls -ld "$tmpdir"` case $ls_ld_tmpdir in @@ -385,7 +392,7 @@ case $dstdir in /*) prefix='/';; - -*) prefix='./';; + [-=\(\)!]*) prefix='./';; *) prefix='';; esac @@ -403,7 +410,7 @@ for d do - test -z "$d" && continue + test X"$d" = X && continue prefix=$prefix$d if test -d "$prefix"; then
View file
bashdb-4.2-0.8.tar.bz2/lib/Makefile.in -> bashdb-4.4-0.92.tar.bz2/lib/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -16,6 +15,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkglibexecdir = $(libexecdir)/@PACKAGE@ @@ -34,18 +78,37 @@ build_triplet = @build@ host_triplet = @host@ subdir = lib -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; am__vpath_adj = case $$p in \ $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ @@ -67,13 +130,21 @@ am__base_list = \ sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } am__installdirs = "$(DESTDIR)$(pkgdatadir)" DATA = $(pkgdata_DATA) +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) pkgdatadir = ${datadir}/@PACKAGE@/lib ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -93,6 +164,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -119,6 +191,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -134,6 +207,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -150,6 +224,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -182,7 +257,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -242,8 +316,11 @@ -rm -rf .libs _libs install-pkgdataDATA: $(pkgdata_DATA) @$(NORMAL_INSTALL) - test -z "$(pkgdatadir)" || $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ + if test -n "$$list"; then \ + echo " $(MKDIR_P) '$(DESTDIR)$(pkgdatadir)'"; \ + $(MKDIR_P) "$(DESTDIR)$(pkgdatadir)" || exit 1; \ + fi; \ for p in $$list; do \ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \ echo "$$d$$p"; \ @@ -257,14 +334,12 @@ @$(NORMAL_UNINSTALL) @list='$(pkgdata_DATA)'; test -n "$(pkgdatadir)" || list=; \ files=`for p in $$list; do echo $$p; done | sed -e 's|^.*/||'`; \ - test -n "$$files" || exit 0; \ - echo " ( cd '$(DESTDIR)$(pkgdatadir)' && rm -f" $$files ")"; \ - cd "$(DESTDIR)$(pkgdatadir)" && rm -f $$files -tags: TAGS -TAGS: + dir='$(DESTDIR)$(pkgdatadir)'; $(am__uninstall_files_from_dir) +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/lib/action.sh -> bashdb-4.4-0.92.tar.bz2/lib/action.sh
Changed
@@ -1,6 +1,6 @@ # -*- shell-script -*- # -# Copyright (C) 2010, 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2010-2011, 2015 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -11,7 +11,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -40,12 +40,12 @@ # Maps a resolved filename to a list of action entries. typeset -A _Dbg_action_file2action; _Dbg_action_file2action=() - + # Maps a resolved filename to a list of action line numbers in that file typeset -A _Dbg_action_file2linenos; _Dbg_action_file2linenos=() # Note: we loop over possibly sparse arrays with _Dbg_brkpt_max by adding one -# and testing for an entry. Could add yet another array to list only +# and testing for an entry. Could add yet another array to list only # used indices. Zsh is kind of primitive. #========================= FUNCTIONS ============================# @@ -67,7 +67,7 @@ _Dbg_msg "Actions at following places:" typeset -i i - _Dbg_msg "Num Enb Stmt file:line" + _Dbg_section "Num Enb Stmt file:line" for (( i=1; (( i <= _Dbg_action_max )) ; i++ )) ; do if [[ -n ${_Dbg_action_line[$i]} ]] ; then typeset source_file=${_Dbg_action_file[$i]} @@ -82,7 +82,7 @@ fi } -# Internal routine to a set action unconditonally. +# Internal routine to a set action unconditonally. _Dbg_set_action() { (( $# != 3 )) && return 1 @@ -101,7 +101,7 @@ _Dbg_action_file[$_Dbg_action_max]="$source_file" _Dbg_action_stmt[$_Dbg_action_max]="$stmt" _Dbg_action_enable[$_Dbg_action_max]=1 - + typeset dq_source_file typeset dq_source_file=$(_Dbg_esc_dq "$source_file") typeset dq_stmt=$(_Dbg_esc_dq "$stmt") @@ -140,7 +140,7 @@ eval "action_nos=(${_Dbg_action_file2action[$fullname]})" typeset -i i - for ((i=0; i < ${#linenos[@]}; i++)); do + for ((i=0; i < ${#linenos[@]}; i++)); do if (( linenos[i] == lineno )) ; then # Got a match, find action entry number typeset -i action_num
View file
bashdb-4.2-0.8.tar.bz2/lib/break.sh -> bashdb-4.4-0.92.tar.bz2/lib/break.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # break.sh - Debugger Break and Watch routines # -# Copyright (C) 2002, 2003, 2006, 2007, 2008, 2009, 2010, 2011 Rocky Bernstein +# Copyright (C) 2002-2003, 2006-2011, 2014-2016 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -22,12 +22,14 @@ #================ VARIABLE INITIALIZATIONS ====================# typeset -a _Dbg_keep -_Dbg_keep=('keep' 'del') +_Dbg_keep=('keep' 'del') # Note: we loop over possibly sparse arrays with _Dbg_brkpt_max by adding one -# and testing for an entry. Could add yet another array to list only +# and testing for an entry. Could add yet another array to list only # used indices. Bash is kind of primitive. +# Breakpoint data structures + # Line number of breakpoint $i typeset -a _Dbg_brkpt_line; _Dbg_brkpt_line=() @@ -51,7 +53,7 @@ # Needed because we can't figure out what the max index is and arrays # can be sparse. -typeset -i _Dbg_brkpt_max=0 +typeset -i _Dbg_brkpt_max=0 # Maps a resolved filename to a list of beakpoint line numbers in that file typeset -A _Dbg_brkpt_file2linenos; _Dbg_brkpt_file2linenos=() @@ -60,7 +62,7 @@ typeset -A _Dbg_brkpt_file2brkpt; _Dbg_brkpt_file2brkpt=() # Note: we loop over possibly sparse arrays with _Dbg_brkpt_max by adding one -# and testing for an entry. Could add yet another array to list only +# and testing for an entry. Could add yet another array to list only # used indices. Bash is kind of primitive. # Watchpoint data structures @@ -79,9 +81,9 @@ _Dbg_save_breakpoints() { typeset file typeset -p _Dbg_brkpt_line >> $_Dbg_statefile - typeset -p _Dbg_brkpt_file >> $_Dbg_statefile - typeset -p _Dbg_brkpt_cond >> $_Dbg_statefile - typeset -p _Dbg_brkpt_count >> $_Dbg_statefile + typeset -p _Dbg_brkpt_file >> $_Dbg_statefile + typeset -p _Dbg_brkpt_cond >> $_Dbg_statefile + typeset -p _Dbg_brkpt_count >> $_Dbg_statefile typeset -p _Dbg_brkpt_enable >> $_Dbg_statefile typeset -p _Dbg_brkpt_onetime >> $_Dbg_statefile typeset -p _Dbg_brkpt_max >> $_Dbg_statefile @@ -116,7 +118,7 @@ typeset to_go="$@" typeset i eval "$_seteglob" - for i in $to_go ; do + for i in $to_go ; do case $i in $int_pat ) _Dbg_enable_disable_display $on $en_dis $i @@ -132,7 +134,7 @@ typeset to_go="$@" typeset i eval "$_seteglob" - for i in $to_go ; do + for i in $to_go ; do case $i in $int_pat ) _Dbg_enable_disable_action $on $en_dis $i @@ -145,10 +147,10 @@ return 0 fi - typeset to_go="$@" + typeset to_go; to_go="$@" typeset i eval "$_seteglob" - for i in $to_go ; do + for i in $to_go ; do case $i in $_Dbg_watch_pat ) _Dbg_enable_disable_watch $on $en_dis ${del:0:${#del}-1} @@ -170,8 +172,8 @@ function _Dbg_print_brkpt_count { typeset -i i; i=$1 if (( _Dbg_brkpt_counts[i] != 0 )) ; then - if (( _Dbg_brkpt_counts[i] == 1 )) ; then - _Dbg_printf "\tbreakpoint already hit 1 time" + if (( _Dbg_brkpt_counts[i] == 1 )) ; then + _Dbg_printf "\tbreakpoint already hit 1 time" else _Dbg_printf "\tbreakpoint already hit %d times" ${_Dbg_brkpt_counts[$i]} fi @@ -193,7 +195,7 @@ _Dbg_write_journal_eval "_Dbg_brkpt_count=0" } -# Internal routine to a set breakpoint unconditonally. +# Internal routine to a set breakpoint unconditonally. _Dbg_set_brkpt() { (( $# < 3 || $# > 4 )) && return 1 @@ -202,45 +204,49 @@ typeset -ri lineno=$2 typeset -ri is_temp=$3 typeset -r condition=${4:-1} - + # Increment brkpt_max here because we are 1-origin ((_Dbg_brkpt_max++)) ((_Dbg_brkpt_count++)) - - + _Dbg_brkpt_line[$_Dbg_brkpt_max]=$lineno _Dbg_brkpt_file[$_Dbg_brkpt_max]="$source_file" _Dbg_brkpt_cond[$_Dbg_brkpt_max]="$condition" _Dbg_brkpt_onetime[$_Dbg_brkpt_max]=$is_temp _Dbg_brkpt_counts[$_Dbg_brkpt_max]=0 _Dbg_brkpt_enable[$_Dbg_brkpt_max]=1 - + typeset dq_source_file dq_source_file=$(_Dbg_esc_dq "$source_file") typeset dq_condition=$(_Dbg_esc_dq "$condition") + + # Make sure we are not skipping over functions. + _Dbg_old_set_opts="$_Dbg_old_set_opts -o functrace" + _Dbg_write_journal_eval "_Dbg_old_set_opts='$_Dbg_old_set_opts'" + _Dbg_write_journal_eval "_Dbg_brkpt_line[$_Dbg_brkpt_max]=$lineno" _Dbg_write_journal_eval "_Dbg_brkpt_file[$_Dbg_brkpt_max]=\"$dq_source_file\"" _Dbg_write_journal "_Dbg_brkpt_cond[$_Dbg_brkpt_max]=\"$dq_condition\"" _Dbg_write_journal "_Dbg_brkpt_onetime[$_Dbg_brkpt_max]=$is_temp" _Dbg_write_journal "_Dbg_brkpt_counts[$_Dbg_brkpt_max]=\"0\"" _Dbg_write_journal "_Dbg_brkpt_enable[$_Dbg_brkpt_max]=1" - + # Add line number with a leading and trailing space. Delimiting the # number with space helps do a string search for the line number. _Dbg_write_journal_eval "_Dbg_brkpt_file2linenos[$source_file]+=\" $lineno \"" _Dbg_write_journal_eval "_Dbg_brkpt_file2brkpt[$source_file]+=\" $_Dbg_brkpt_max \"" - + source_file=$(_Dbg_adjust_filename "$source_file") - if (( is_temp == 0 )) ; then + if (( is_temp == 0 )) ; then _Dbg_msg "Breakpoint $_Dbg_brkpt_max set in file ${source_file}, line $lineno." - else + else _Dbg_msg "One-time breakpoint $_Dbg_brkpt_max set in file ${source_file}, line $lineno." fi _Dbg_write_journal "_Dbg_brkpt_max=$_Dbg_brkpt_max" return 0 } -# Internal routine to unset the actual breakpoint arrays +# Internal routine to unset the actual breakpoint arrays. # 0 is returned if successful _Dbg_unset_brkpt_arrays() { (( $# != 1 )) && return 1 @@ -256,7 +262,7 @@ } # Internal routine to delete a breakpoint by file/line. -# We return the number of breakponts found or zer if we didn't find +# We return the number of breakpoints found or zero if we didn't find # a breakpoint function _Dbg_unset_brkpt { (( $# != 2 )) && return 0 @@ -266,7 +272,7 @@ typeset -i found=0 typeset fullname fullname=$(_Dbg_expand_filename "$filename") - + # FIXME: combine with _Dbg_hook_breakpoint_hit typeset -a linenos eval "linenos=(${_Dbg_brkpt_file2linenos[$fullname]})" @@ -274,7 +280,8 @@ eval "brkpt_nos=(${_Dbg_brkpt_file2brkpt[$fullname]})" typeset -i i - for ((i=0; i <= ${#linenos[@]}; i++)); do + # Note: <= rather than < looks funny below, but that is correct.
View file
bashdb-4.2-0.8.tar.bz2/lib/commands.sh -> bashdb-4.4-0.92.tar.bz2/lib/commands.sh
Changed
@@ -1,6 +1,6 @@ # -*- shell-script -*- # -# Copyright (C) 2006, 2008, 2010 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2006, 2008, 2010, 2016 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -11,7 +11,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -24,21 +24,21 @@ typeset -ai _Dbg_brkpt_commands_start=() typeset -ai _Dbg_brkpt_commands_end=() -# The text strings for the *all* breakpoints. To get breakpoints for +# The text strings for the *all* breakpoints. To get breakpoints for # breakpoint i, this goies from _Dbg_brkpt_commands_start[i] to # _Dbg_brkpt_commands_end[i] -# +# typeset -a _Dbg_brkpt_commands=() # For each breakpoint number, tells if the prompt must be displayed after # execing the command list -typeset -ai _Dbg_brkpt_commands_doprompt=() +typeset -ai _Dbg_brkpt_commands_doprompt=() # For each breakpoint number, tells if the stack trace must be # displayed after execing the cmd list -typeset -ai _Dbg_brkpt_commands_silent=() +typeset -ai _Dbg_brkpt_commands_silent=() typeset -i _Dbg_brkpt_commands_current=-1 @@ -59,15 +59,15 @@ local -i i local -i start=${_Dbg_brkpt_commands_start[$currentbp]} local -i end=${_Dbg_brkpt_commands_end[$currentbp]} - for (( i=start ; (( i < end )) ; i++ )) ; do + for (( i=start ; (( i < end )) ; i++ )) ; do local -a line=(${_Dbg_brkpt_commands[$i]}) _Dbg_onecmd ${line[*]} _Dbg_brkpt_lastcmd=$lastcmd_back if (( _Dbg_brkpt_commands_doprompt[$currentbp] )) ; then - ###??? What's this + ###??? What's this _Dbg_process_commands return 0 fi done return 1 -} +}
View file
bashdb-4.2-0.8.tar.bz2/lib/complete.sh -> bashdb-4.4-0.92.tar.bz2/lib/complete.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # complete.sh - gdb-like command completion handling # -# Copyright (C) 2006, 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2006, 2011-2012 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -20,7 +20,7 @@ typeset -a _Dbg_matches; _Dbg_matches=() -# Print a list of completions in global variable _Dbg_matches +# Print a list of completions in global variable _Dbg_matches # for 'subcmd' that start with 'text'. # We get the list of completions from _Dbg._*subcmd*_cmds. # If no completion, we return the empty list. @@ -29,22 +29,27 @@ text=$2 _Dbg_matches=() typeset list='' - if [[ $subcmd == 'set' ]] ; then - # Newer style - list=${!_Dbg_command_help_set[@]} - elif [[ $subcmd == 'show' ]] ; then - # Newer style - list=${!_Dbg_command_help_show[@]} + if [[ $subcmd == 'set' ]] ; then + # Newer style + list_str=${!_Dbg_command_help_set[@]} + elif [[ $subcmd == 'show' ]] ; then + # Newer style + list_str=${!_Dbg_command_help_show[@]} else - # FIXME: Older style - eventually update these. - cmd="list=\$_Dbg_${subcmd}_cmds" - eval $cmd + # FIXME: Older style - eventually update these. + cmd="list=\$_Dbg_${subcmd}_cmds" + eval $cmd fi + + typeset -a list + list=($list_str) + sort_list 0 ${#list[@]}-1 + typeset sorted_list=${list[@]} local -i last=0 - for word in $list ; do + for word in $sorted_list ; do # See if $word contains $text at the beginning. We use the string - # strip operatior '#' and check that some part of $word was stripped - if [[ ${word#$text} != $word ]] ; then + # strip operatior '#' and check that some part of $word was stripped + if [[ ${word#$text} != $word ]] ; then _Dbg_matches[$last]="$subcmd $word" ((last++)) fi @@ -53,7 +58,6 @@ } if enable -f ${_Dbg_libdir}/builtin/readc readc 2>/dev/null ; then - _Dbg_set_read_completion=1 # Turn on programmable completion shopt -s progcomp set -o emacs @@ -70,10 +74,10 @@ typeset -i i typeset -i j=0 for (( i=1; i <= _Dbg_brkpt_max; i++ )) ; do - if [[ -n ${_Dbg_brkpt_line[$i]} ]] ; then - ((COMPREPLY[j]+=i)) - ((j++)) - fi + if [[ -n ${_Dbg_brkpt_line[$i]} ]] ; then + ((COMPREPLY[j]+=i)) + ((j++)) + fi done } @@ -82,18 +86,18 @@ typeset -i i typeset -i j=0 for ((i=$1; i<=$2; i++)) ; do - ((COMPREPLY[j]+=i)) - ((j++)) + ((COMPREPLY[j]+=i)) + ((j++)) done } _Dbg_complete_level0() { # echo "level 0 called with comp_line: $COMP_LINE , comp_point: $COMP_POINT" - if (( COMP_POINT > 0)) ; then - typeset commands="${!_Dbg_command_help[@]}" - COMPREPLY=( $(compgen -W "$commands" "$COMP_LINE") ) + if (( COMP_POINT > 0)) ; then + typeset commands="${!_Dbg_command_help[@]}" + COMPREPLY=( $(compgen -W "$commands" "$COMP_LINE") ) else - COMPREPLY=( ${!_Dbg_command_help[@]} ) + COMPREPLY=( ${!_Dbg_command_help[@]} ) fi }
View file
bashdb-4.2-0.8.tar.bz2/lib/display.sh -> bashdb-4.4-0.92.tar.bz2/lib/display.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # display.sh - Bourne Again Shell Debugger display routines # -# Copyright (C) 2010 Rocky Bernstein +# Copyright (C) 2010 Rocky Bernstein # rocky@gnu.org # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this Program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -22,8 +22,8 @@ #================ VARIABLE INITIALIZATIONS ====================# # Display data structures -typeset -a _Dbg_disp_exp; _Dbg_display_exp=() # Watchpoint expressions -typeset -ia _Dbg_disp_enable; _Dbg_display_enable=() # 1/0 if enabled or not +typeset -a _Dbg_disp_exp; _Dbg_disp_exp=() # Watchpoint expressions +typeset -ia _Dbg_disp_enable; _Dbg_disp_enable=() # 1/0 if enabled or not typeset -i _Dbg_disp_max=0 # Needed because we can't figure out what # the max index is and arrays can be sparse @@ -38,18 +38,18 @@ # Enable/disable display by entry numbers. _Dbg_disp_enable_disable() { - if (($# < 2)) ; then + if (($# < 2)) ; then _Dbg_errmsg "Expecting at least two parameters. Got: ${#}." return 1 fi typeset -i on=$1 typeset en_dis=$2 shift; shift - + typeset to_go="$@" typeset i eval "$_seteglob" - for i in $to_go ; do + for i in $to_go ; do case $i in $int_pat ) _Dbg_enable_disable_display $on $en_dis $i @@ -73,7 +73,7 @@ _Dbg_do_eval "_Dbg_msg ${_Dbg_disp_exp[i]}" fi done -} +} # Enable/disable display(s) by entry numbers. _Dbg_enable_disable_display() {
View file
bashdb-4.2-0.8.tar.bz2/lib/file.sh -> bashdb-4.4-0.92.tar.bz2/lib/file.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # Things related to file handling. # -# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2009, 2010 Rocky Bernstein +# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2009, 2010, 2014 Rocky Bernstein # rocky@gnu.org # # bashdb is free software; you can redistribute it and/or modify it under @@ -13,7 +13,7 @@ # WARRANTY; without even the implied warranty of MERCHANTABILITY or # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License # for more details. -# +# # You should have received a copy of the GNU General Public License along # with bashdb; see the file COPYING. If not, write to the Free Software # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. @@ -54,12 +54,11 @@ } # $1 contains the name you want to glob. return 0 if exists and is -# readable or 1 if not. -# The result will be in variable $filename which is assumed to be +# readable or 1 if not. +# The result will be in variable $filename which is assumed to be # local'd by the caller -_Dbg_glob_filename() { - printf -v filename "%q" "$1" - typeset cmd="filename=$filename" +_Dbg_tilde_expand_filename() { + typeset cmd="filename=\$(builtin echo $1)" eval $cmd [[ -r $filename ]] } @@ -88,7 +87,7 @@ return 0 fi - if [[ ${find_file:0:1} == '/' ]] ; then + if [[ ${find_file:0:1} == '/' ]] ; then # Absolute file name full_find_file=$(_Dbg_expand_filename "$find_file") echo "$full_find_file"
View file
bashdb-4.2-0.8.tar.bz2/lib/filecache.sh -> bashdb-4.4-0.92.tar.bz2/lib/filecache.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # filecache.sh - cache file information # -# Copyright (C) 2008, 2009, 2010, 2011 Rocky Bernstein +# Copyright (C) 2008-2011, 2013-2015 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License along # with this program; see the file COPYING. If not, write to the Free Software # Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. @@ -38,7 +38,7 @@ } _Dbg_filecache_reset -# Check that line $2 is not greater than the number of lines in +# Check that line $2 is not greater than the number of lines in # file $1 _Dbg_check_line() { (( $# != 2 )) && return 1 @@ -51,7 +51,7 @@ return 1 fi - if (( line_number > max_line )) ; then + if (( line_number > max_line )) ; then (( _Dbg_set_basename )) && filename=${filename##*/} _Dbg_errmsg "Line $line_number is too large." \ "File $filename has only $max_line lines." @@ -87,9 +87,9 @@ } # Return text for source line for line $1 of filename $2 in variable -# $_Dbg_source_line. +# $_Dbg_source_line. -# If $2 is omitted, use _Dbg_frame_filename, if $1 is omitted use +# If $2 is omitted, use _Dbg_frame_filename, if $1 is omitted use # _Dbg_frame_last_lineno. The return value is put in _Dbg_source_line. _Dbg_get_source_line() { typeset -i lineno @@ -106,8 +106,13 @@ filename="$1" fi _Dbg_readin_if_new "$filename" - if (( _Dbg_set_highlight )) ; then - eval "_Dbg_source_line=\${$_Dbg_highlight_array_var[lineno]}" + if [[ -n $_Dbg_set_highlight ]] && [[ -n $_Dbg_highlight_array_var ]]; then + eval "typeset -i count=\${#$_Dbg_highlight_array_var[@]}" + if (( count )) ; then + eval "_Dbg_source_line=\${$_Dbg_highlight_array_var[lineno]}" + else + eval "_Dbg_source_line=\${$_Dbg_source_array_var[$lineno]}" + fi else eval "_Dbg_source_line=\${$_Dbg_source_array_var[$lineno]}" fi @@ -130,7 +135,7 @@ return 1 fi - if [[ ${find_file:0:1} == '/' ]] ; then + if [[ ${find_file:0:1} == '/' ]] ; then # Absolute file name try_find_file=$(_Dbg_expand_filename "$find_file") if [[ -n ${_Dbg_filenames[$try_find_file]} ]] ; then @@ -174,7 +179,7 @@ # 0 is returned if everything went ok. function _Dbg_readin { typeset filename - if (($# != 0)) ; then + if (($# != 0)) ; then filename="$1" else _Dbg_frame_file @@ -186,7 +191,7 @@ typeset -i next; next=${#_Dbg_filenames[@]} _Dbg_source_array_var="_Dbg_source_${next}" - if (( _Dbg_set_highlight )) ; then + if [[ -n $_Dbg_set_highlight ]] ; then _Dbg_highlight_array_var="_Dbg_highlight_${next}" fi @@ -194,9 +199,9 @@ typeset source_array typeset -ri NOT_SMALLFILE=1000 - if [[ -z $filename ]] || [[ $filename == "$_Dbg_bogus_file" ]] ; then + if [[ -z $filename ]] || [[ $filename == "$_Dbg_bogus_file" ]] ; then eval "${_Dbg_source_array_var}[0]=\"$Dbg_EXECUTION_STRING\"" - else + else fullname=$(_Dbg_resolve_expand_filename "$filename") if [[ -r $fullname ]] ; then typeset -r progress_prefix="Reading $filename" @@ -204,36 +209,36 @@ _Dbg_file2canonic[$fullname]="$fullname" # Use readarray which speeds up reading greatly. typeset -ri BIGFILE=30000 - if wc -l < /dev/null >/dev/null 2>&1 ; then + if wc -l < /dev/null >/dev/null 2>&1 ; then line_count=$(wc -l < "${fullname}") - if (( line_count >= NOT_SMALLFILE )) ; then + if (( line_count >= NOT_SMALLFILE )) ; then _Dbg_msg_nocr "${progress_prefix} " fi fi builtin readarray -t -O 1 -c $BIGFILE \ -C "_Dbg_progess_show \"${progress_prefix}\" ${line_count}" \ $_Dbg_source_array_var < "$fullname" - if (( _Dbg_set_highlight )) ; then - highlight_cmd="${_Dbg_libdir}/lib/term-highlight.py $fullname" + if [[ -n $_Dbg_set_highlight ]] ; then + highlight_cmd="${_Dbg_libdir}/lib/term-highlight.py --bg=${_Dbg_set_highlight} $fullname" tempfile=$($highlight_cmd 2>/dev/null) - if (( 0 == $? )) ; then + if (( 0 == $? )) ; then builtin readarray -t -O 1 -c $BIGFILE \ -C "_Dbg_progess_show \"${progress_prefix}\" ${line_count}" \ $_Dbg_highlight_array_var < "$tempfile" fi - [[ -r $tempfile ]] && rm $tempfile + [[ -r $tempfile ]] && rm $tempfile fi (( line_count > BIGFILE)) && _Dbg_progess_done else return 1 fi fi - + typeset -r line_count_cmd="line_count=\${#${_Dbg_source_array_var[@]}}" eval $line_count_cmd - + (( line_count >= NOT_SMALLFILE )) && _Dbg_msg "done." - + # Add $filename to list of all filenames _Dbg_filenames[$fullname]=$_Dbg_source_array_var; return 0 @@ -245,7 +250,7 @@ (( $# != 1 )) && return 1 typeset filename="$1" _Dbg_set_source_array_var "$filename" - if [[ -z "$fullname" ]] ; then + if [[ -z "$fullname" ]] ; then _Dbg_readin "$filename" typeset rc=$? set +xv @@ -269,6 +274,10 @@ } [[ -z $fullname ]] && return 2 _Dbg_source_array_var=${_Dbg_filenames[$fullname]} + if [[ -n $_Dbg_set_highlight ]] ; then + _Dbg_highlight_array_var="${_Dbg_source_array_var/_Dbg_source_/_Dbg_highlight_}" + fi + _Dbg_source_array_var=${_Dbg_filenames[$fullname]} [[ -z $_Dbg_source_array_var ]] && return 2 return 0 }
View file
bashdb-4.2-0.8.tar.bz2/lib/fns.sh -> bashdb-4.4-0.92.tar.bz2/lib/fns.sh
Changed
@@ -13,17 +13,17 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. -typeset -a _Dbg_yn; _Dbg_yn=("n" "y") +typeset -a _Dbg_yn; _Dbg_yn=("n" "y") # Return $2 copies of $1. If successful, $? is 0 and the return value # is in result. Otherwise $? is 1 and result '' -function _Dbg_copies { +function _Dbg_copies { result='' (( $# < 2 )) && return 1 typeset -r string="$1" @@ -34,7 +34,7 @@ return 0 } -# _Dbg_defined returns 0 if $1 is a defined variable or nonzero otherwise. +# _Dbg_defined returns 0 if $1 is a defined variable or nonzero otherwise. _Dbg_defined() { (( 0 == $# )) && return 1 typeset -p "$1" &> /dev/null @@ -53,7 +53,8 @@ '^[ \t]*(if|elif)[ \t]+([^;]*)((;[ \t]*then?)?|$)' '^[ \t]*return[ \t]+(.*)$' '^[ \t]*while[ \t]+([^;]*)((;[ \t]*do?)?|$)' - '^[ \t]*[A-Za-z_][A-Za-z_0-9[]*[]-+]?=(.*$)' + '^[ \t]*[A-Za-z_][A-Za-z_0-9_]*[+-]?=(.*$)' + "^[ \t]*[A-Za-z_][A-Za-z_0-9_]*\[[0-9]+\][+-]?=(.*\$)" ) # Removes "[el]if" .. "; then" or "while" .. "; do" or "return .." @@ -71,6 +72,8 @@ extracted=${BASH_REMATCH[1]} elif [[ $orig =~ ${_Dbg_eval_re[3]} ]] ; then extracted="echo ${BASH_REMATCH[1]}" + elif [[ $orig =~ ${_Dbg_eval_re[4]} ]] ; then + extracted="echo ${BASH_REMATCH[1]}" else extracted=$orig fi @@ -84,7 +87,7 @@ builtin echo $onoff } -# Set $? to $1 if supplied or the saved entry value of $?. +# Set $? to $1 if supplied or the saved entry value of $?. function _Dbg_set_dol_q { return ${1:-$_Dbg_debugged_exit_code} } @@ -121,17 +124,17 @@ typeset -i i typeset -i invert=0; - if [[ $pat == !* ]] ; then + if [[ $pat == !* ]] ; then # Remove leading ! pat=#{$pat#!} invert=1 - fi + fi # Iterate skipping over consecutive single tokens "declare" and "-F" for (( i=2; (( i < ${#fns_a[@]} )) ; i += 3 )) ; do typeset fn="${fns_a[$i]}" [[ $fn == _* ]] && (( ! include_system )) && continue - if [[ $fn =~ $pat ]] ; then + if [[ $fn =~ $pat ]] ; then [[ $invert == 0 ]] && ret_fns[${#ret_fns[@]}]=$fn else [[ $invert != 0 ]] && ret_fns[${#ret_fns[@]}]=$fn @@ -141,7 +144,7 @@ echo ${ret_fns[@]} } -# _Dbg_is_function returns 0 if $1 is a defined function or nonzero otherwise. +# _Dbg_is_function returns 0 if $1 is a defined function or nonzero otherwise. # if $2 is nonzero, system functions, i.e. those whose name starts with # an underscore (_), are included in the search. _Dbg_is_function() { @@ -157,7 +160,7 @@ # Return 0 if set -x tracing is on _Dbg_is_traced() { - # Is "x" in set options? + # Is "x" in set options? if [[ $- == *x* ]] ; then return 0 else @@ -166,7 +169,7 @@ } # Common routine for setup of commands that take a single -# linespec argument. We assume the following variables +# linespec argument. We assume the following variables # which we store into: # filename, line_number, full_filename @@ -181,14 +184,14 @@ _Dbg_errmsg "Invalid line specification: $linespec" return fi - + filename="${word[2]}" typeset -ri is_function=${word[1]} line_number=${word[0]} full_filename=$(_Dbg_is_file "$filename") if (( is_function )) ; then - if [[ -z $full_filename ]] ; then + if [[ -z $full_filename ]] ; then _Dbg_readin "$filename" full_filename=$(_Dbg_is_file "$filename") fi @@ -207,10 +210,10 @@ case "$linespec" in # line number only - use _Dbg_frame_last_filename for filename - $int_pat ) + $int_pat ) echo "$linespec 0 \"$_Dbg_frame_last_filename\"" ;; - + # file:line [^:][^:]*[:]$int_pat ) # Split the POSIX way @@ -222,14 +225,14 @@ # Function name or error * ) - if _Dbg_is_function $linespec $_Dbg_set_debug ; then + if _Dbg_is_function $linespec $_Dbg_set_debug ; then local -a word=( $(declare -F $linespec) ) - if [[ 0 == $? && ${#word[@]} > 2 ]]; then + if [[ 0 == $? && ${#word[@]} > 2 ]]; then builtin echo "${word[1]} 1 ${word[2]}" else builtin echo '' fi - else + else builtin echo '' fi ;; @@ -237,11 +240,11 @@ } # usage _Dbg_set_ftrace [-u] funcname [funcname...] -# Sets or unsets a function for stopping by setting +# Sets or unsets a function for stopping by setting # the -t or +t property to the function declaration. # function _Dbg_set_ftrace { - typeset opt=-t tmsg="enabled" func + typeset opt=-t tmsg="enabled" func if [[ $1 == -u ]]; then opt=+t tmsg="disabled"
View file
bashdb-4.2-0.8.tar.bz2/lib/frame.sh -> bashdb-4.4-0.92.tar.bz2/lib/frame.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # Call Stack routines # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010 +# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2014 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -23,7 +23,7 @@ # _Dbg_stack_size: the number of entries on the call stack at the time # the hook was entered. Note that bash updates the stack inside the -# debugger so it is important to save this value on entry. Also +# debugger so it is important to save this value on entry. Also # note that the most recent entries are pushed or at position 0. # Thus to get position 0 of the debugged program we need to ignore leading # any debugger frames. @@ -34,7 +34,7 @@ # to the debugged program and _Dbg_stack_size is the # least-recent. Note that inside the debugger the stack is still # updated. On debugger entry, the value is set to 0 -typeset -i _Dbg_stack_pos +typeset -i _Dbg_stack_pos # Save the last-entered frame for to determine stopping when # "set force" or step+ is in effect. @@ -51,7 +51,7 @@ typeset -i retval _Dbg_frame_int_setup $count || return 2 - + typeset -i pos if (( signum==0 )) ; then if (( count < 0 )) ; then @@ -63,11 +63,11 @@ ((pos=_Dbg_stack_pos+(count*signum))) fi - if (( pos < 0 )) ; then + if (( pos < 0 )) ; then _Dbg_errmsg 'Would be beyond bottom-most (most recent) entry.' return 1 - elif (( pos >= _Dbg_stack_size - 1 )) ; then + elif (( pos >= _Dbg_stack_size - 1 )) ; then _Dbg_errmsg 'Would be beyond top-most (least recent) entry.' return 1 fi @@ -90,13 +90,28 @@ return 0 } +# Set $_Dbg_frame_filename to be frame file for the call stack at +# given position $1 or _Dbg_stack_pos if $1 is omitted. If $2 is +# given, it indicates if we want the basename only. Otherwise the +# $_Dbg_set_basename setting is used. 0 is returned if no error, +# nonzero means some sort of error. +_Dbg_frame_file() { + (($# > 2)) && return 2 + # FIXME check to see that $1 doesn't run off the end. + typeset -i pos=${1:-$_Dbg_stack_pos} + typeset -i basename_only=${2:-$_Dbg_set_basename} + _Dbg_frame_filename=${BASH_SOURCE[pos]} + (( basename_only )) && _Dbg_frame_filename=${_Dbg_frame_filename##*/} + return 0 +} + # Tests for a signed integer parameter and set global retval # if everything is okay. Retval is set to 1 on error _Dbg_frame_int_setup() { _Dbg_not_running && return 1 eval "$_seteglob" - if [[ $1 != '' && $1 != $_Dbg_signed_int_pat ]] ; then + if [[ $1 != '' && $1 != $_Dbg_signed_int_pat ]] ; then _Dbg_errmsg "Bad integer parameter: $1" eval "$_resteglob" return 1 @@ -107,7 +122,7 @@ # Turn position $1 which uses 0 to represent the most-recent stack entry # into which may have additional internal debugger frames pushed on. -function _Dbg_frame_adjusted_pos +function _Dbg_frame_adjusted_pos { if (($# != 1)) ; then echo -n '-1' @@ -124,8 +139,8 @@ # entry, _Dbg_next_argc, and _Dbg_next_argv should be set. These # variables and _Dbg_parm_str are updated on exit. _Dbg_next_argc is # and integer index into BASH_ARGC and _Dbg_next_argv is and index -# into BASH_ARGV. On return -_Dbg_frame_fn_param_str() { +# into BASH_ARGV. On return +_Dbg_frame_fn_param_str() { (($# == 0)) || return 1 _Dbg_is_int "$_Dbg_next_argc" || return 2 _Dbg_is_int "$_Dbg_next_argv" || return 3 @@ -133,7 +148,7 @@ # add 1 to argument count to compensate for this call (of zero # parameters) and at the same time we update _Dbg_next_argc for the # next call. - # + # ((_Dbg_next_argc++)) typeset -i arg_count=BASH_ARGC[$_Dbg_next_argc] if ((arg_count == 0)) ; then @@ -149,7 +164,7 @@ return 0 } -_Dbg_frame_set_fn_param() { +_Dbg_frame_set_fn_param() { (($# == 1)) || return 1 typeset -i skip_count=$1 # Set to ignore this call in computation
View file
bashdb-4.2-0.8.tar.bz2/lib/help.sh -> bashdb-4.4-0.92.tar.bz2/lib/help.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # help.sh - Debugger Help Routines # -# Copyright (C) 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2011 +# Copyright (C) 2002-2008, 2010-2012 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -199,7 +199,6 @@ return 0 ;; sho|show|showc|showco|showcom|showcomm|showcomma|showcomman|showcommand ) - [[ -n $label ]] && label='set showcommand -- ' _Dbg_msg \ "${label}Set showing the command to execute is $_Dbg_set_show_command." return 0 @@ -209,6 +208,13 @@ "${label}Set showing debugger commands is $_Dbg_set_trace_commands." return 0 ;; + tt|tty ) + typeset dbg_tty=$_Dbg_tty + [[ -n $dbg_tty ]] && dbg_tty=$(tty) + _Dbg_msg \ + "${label}Debugger output goes to $dbg_tty." + return 0 + ;; wi|wid|widt|width ) _Dbg_msg \ "${label}Set maximum width of lines is $_Dbg_set_linewidth." @@ -227,7 +233,7 @@ sort_list 0 ${#list[@]}-1 typeset subcmd for subcmd in ${list[@]}; do - _Dbg_help_show $subcmd 1 + [[ $subcmd != 'version' ]] && _Dbg_help_show $subcmd 1 done return 0 fi @@ -329,7 +335,12 @@ ;; t|tr|tra|trac|trace|trace-|trace-c|trace-co|trace-com|trace-comm|trace-comma|trace-comman|trace-command|trace-commands ) _Dbg_msg \ - 'show trace-commands -- Show if we are echoing debugger commands' + 'show trace-commands -- Show if we are echoing debugger commands.' + return 0 + ;; + tt | tty ) + _Dbg_msg \ + "${label}Where debugger output goes to." return 0 ;; wa | war | warr | warra | warran | warrant | warranty )
View file
bashdb-4.2-0.8.tar.bz2/lib/hist.sh -> bashdb-4.4-0.92.tar.bz2/lib/hist.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # hist.sh - Bourne Again Shell Debugger history routines # -# Copyright (C) 2002, 2003, 2006, 2007, 2008, 2011 Rocky Bernstein +# Copyright (C) 2002-2003, 2006-2008, 2011, 2015 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -25,33 +25,33 @@ typeset -i _Dbg_set_history=1 typeset -i _Dbg_history_length=${HISTSIZE:-256} # gdb's default value -typeset _Dbg_histfile=${HOME:-.}/.kshdb_hist +typeset _Dbg_histfile=${HOME:-.}/.bashdb_hist # Set to rerun history item, or print history if command is of the form -# !n:p. If command is "history" then $1 is number of history item. -# the history command index to run is returned or $_Dbg_hi if +# !n:p. If command is "history" then $1 is number of history item. +# the history command index to run is returned or $_Dbg_hi if # there's nothing to run. # Return value in $history_num _Dbg_history_parse() { history_num=$1 ((history_num < 0)) && ((history_num=${#_Dbg_history[@]}-1+$1)) - + _Dbg_hi=${#_Dbg_history[@]} [[ -z $history_num ]] && let history_num=$_Dbg_hi-1 if [[ $_Dbg_cmd == h* ]] ; then - if [[ $history_num != $int_pat ]] ; then - if [[ $history_num == -$int_pat ]] ; then + if [[ $history_num != $int_pat ]] ; then + if [[ $history_num == -$int_pat ]] ; then history_num=$_Dbg_hi+$history_num else - _Dbg_msg "Invalid history number skipped: $history_num" + _Dbg_errmsg "Invalid history number skipped: $history_num" history_num=-1 fi fi else # Handle ! form. May need to parse number out number and modifier - # case $_Dbg_cmd in + # case $_Dbg_cmd in # \!\-${int_pat}:p ) # typeset -a word1 # word1=($(_Dbg_split '!' $_Dbg_cmd)) @@ -69,36 +69,36 @@ # _Dbg_do_history_list ${word2[0]} ${word2[0]} # history_num=-1 # ;; - # \!\-$int_pat ) + # \!\-$int_pat ) # local -a word # word=($(_Dbg_split '!' $_Dbg_cmd)) # history_num=$_Dbg_hi+${word[0]} # ;; - # \!$int_pat ) + # \!$int_pat ) # local -a word # word=($(_Dbg_split '!' $_Dbg_cmd)) # history_num=${word[0]} # ;; - # '!' ) - # if [[ $history_num != $int_pat ]] ; then - # if [[ $history_num == -$int_pat ]] ; then + # '!' ) + # if [[ $history_num != $int_pat ]] ; then + # if [[ $history_num == -$int_pat ]] ; then # history_num=$_Dbg_hi+$history_num # else # _Dbg_msg "Invalid history number skipped: $history_num" # history_num=-1 # fi # fi - # ;; - # * ) - # _Dbg_msg "Invalid history number skipped: $_Dbg_cmd" - # history_num=-1 + # ;; + # * ) + # _Dbg_errmsg "Invalid history number skipped: $_Dbg_cmd" + # history_num=-1 # esac : fi } _Dbg_history_read() { - if [[ -r $_Dbg_histfile ]] ; then + if [[ -r $_Dbg_histfile ]] ; then history -r $_Dbg_histfile typeset -a last_history; last_history=($(history 1)) typeset -i max_history=${last_history[0]}
View file
bashdb-4.2-0.8.tar.bz2/lib/hook.sh -> bashdb-4.4-0.92.tar.bz2/lib/hook.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # hook.sh - Debugger trap hook # -# Copyright (C) 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 +# Copyright (C) 2002-2011, 2014 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -42,7 +42,7 @@ # - A return code 2 is special and means return from a function or # "source" command immediately # -# - A nonzero return indicate the next statement should not be run. +# - A nonzero return indicate the next statement should not be run. # Typically we use 1 for that value. # - A set return code 0 continues execution. typeset -i _Dbg_continue_rc=-1 @@ -61,17 +61,20 @@ ### The below is also copied below in _Dbg_sig_handler... ### Should put common stuff into a function. - + # Consider putting the following line(s) in a routine. # Ditto for the restore environment typeset -i _Dbg_debugged_exit_code=$? _Dbg_old_set_opts=$- + shopt nullglob > /dev/null + typeset -i _Dbg_old_set_nullglob=$? + shopt -u nullglob shopt -s extdebug - + # Turn off line and variable trace listing if were not in our own debug # mode, and set our own PS4 for debugging inside the debugger (( !_Dbg_set_debug )) && set +x +v +u - + # If we are in our own routines -- these start with _bashdb -- then # return. if [[ ${FUNCNAME[1]} == _Dbg_* ]] && (( !_Dbg_set_debug )); then @@ -82,11 +85,11 @@ # Sets _Dbg_frame_last_lineno and _Dbg_frame_last_filename among # other things. _Dbg_set_debugger_entry - + _Dbg_continue_rc=_Dbg_inside_skip - + # Shift off "RETURN"; we do not need that any more. - shift + shift _Dbg_bash_command=$1 shift @@ -94,13 +97,13 @@ _Dbg_save_args "$@" # if in step mode, decrement counter - if ((_Dbg_step_ignore > 0)) ; then + if ((_Dbg_step_ignore > 0)) ; then ((_Dbg_step_ignore--)) _Dbg_write_journal "_Dbg_step_ignore=$_Dbg_step_ignore" # Can't return here because we may want to stop for another # reason. fi - + # look for watchpoints. typeset -i _Dbg_i for (( _Dbg_i=0; _Dbg_i < _Dbg_watch_max ; _Dbg_i++ )) ; do @@ -122,20 +125,20 @@ typeset full_filename full_filename=$(_Dbg_is_file "$_Dbg_frame_last_filename") - if [[ -r $full_filename ]] ; then + if [[ -r $full_filename ]] ; then _Dbg_file2canonic[$_Dbg_frame_last_filename]="$full_filename" fi # Run applicable action statement - if ((_Dbg_action_count > 0)) ; then + if ((_Dbg_action_count > 0)) ; then _Dbg_hook_action_hit "$full_filename" fi - # Determine if we stop or not. + # Determine if we stop or not. # Check breakpoints. - if ((_Dbg_brkpt_count > 0)) ; then - if _Dbg_hook_breakpoint_hit "$full_filename"; then + if ((_Dbg_brkpt_count > 0)) ; then + if _Dbg_hook_breakpoint_hit "$full_filename"; then if ((_Dbg_step_force)) ; then typeset _Dbg_frame_previous_file="$_Dbg_frame_last_filename" typeset -i _Dbg_frame_previous_lineno="$_Dbg_frame_last_lineno" @@ -153,7 +156,7 @@ "Breakpoint $_Dbg_brkpt_num hit (${_Dbg_brkpt_counts[_Dbg_brkpt_num]} times)." _Dbg_stop_reason="at breakpoint $_Dbg_brkpt_num" fi - # We're sneaky and check commands_end because start could + # We're sneaky and check commands_end because start could # legitimately be 0. if (( _Dbg_brkpt_commands_end[$_Dbg_brkpt_num] )) ; then # Run any commands associated with this breakpoint @@ -164,18 +167,18 @@ return $_Dbg_continue_rc fi fi - + # Check if step mode and number steps to ignore. if ((_Dbg_step_ignore == 0)); then if ((_Dbg_step_force)) ; then if (( _Dbg_last_lineno == _Dbg_frame_last_lineno )) \ - && [[ $_Dbg_last_source_file == $_Dbg_frame_last_filename ]] ; then + && [[ $_Dbg_last_source_file == $_Dbg_frame_last_filename ]] ; then _Dbg_set_to_return_from_debugger 1 return $_Dbg_continue_rc fi fi - + _Dbg_hook_enter_debugger 'after being stepped' return $_Dbg_continue_rc elif (( ${#FUNCNAME[@]} == _Dbg_return_level )) ; then @@ -187,7 +190,7 @@ # here because we are fielding a signal. _Dbg_hook_enter_debugger 'on fielding signal' return $_Dbg_continue_rc - elif ((_Dbg_set_linetrace==1)) ; then + elif ((_Dbg_set_linetrace==1)) ; then if ((_Dbg_set_linetrace_delay)) ; then sleep $_Dbg_linetrace_delay fi @@ -214,7 +217,7 @@ typeset -i _Dbg_i # Check action within full_filename - for ((_Dbg_i=0; _Dbg_i < ${#linenos[@]}; _Dbg_i++)); do + for ((_Dbg_i=0; _Dbg_i < ${#linenos[@]}; _Dbg_i++)); do if (( linenos[_Dbg_i] == lineno )) ; then (( _Dbg_action_num = action_nos[_Dbg_i] )) stmt="${_Dbg_action_stmt[$_Dbg_action_num]}" @@ -244,9 +247,9 @@ eval "brkpt_nos=(${_Dbg_brkpt_file2brkpt[$full_filename]})" typeset -i i # Check breakpoints within full_filename - for ((i=0; i < ${#linenos[@]}; i++)); do + for ((i=0; i < ${#linenos[@]}; i++)); do if (( linenos[i] == lineno )) ; then - # Got a match, but is the breakpoint enabled? + # Got a match, but is the breakpoint enabled? (( _Dbg_brkpt_num = brkpt_nos[i] )) if ((_Dbg_brkpt_enable[_Dbg_brkpt_num] )) ; then return 0
View file
bashdb-4.2-0.8.tar.bz2/lib/list.sh -> bashdb-4.4-0.92.tar.bz2/lib/list.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # debugger source-code listing routines # -# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2009, 2010, 2011 +# Copyright (C) 2002-2004, 2006, 2008-2011, 2014 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -61,11 +61,11 @@ typeset filename=${2:-"$_Dbg_frame_last_filename"} # Remove main + sig-handler + print_lintrace FUNCNAMES. - typeset -i depth=${#FUNCNAME[@]}-3 + typeset -i depth=${#FUNCNAME[@]}-3 - # If called from bashdb script rather than via "bash --debugger", + # If called from bashdb script rather than via "bash --debugger", # we are artificially nested one deeper because of the bashdb call. - if [[ -n $_Dbg_script ]] ; then + if [[ -n $_Dbg_script ]] ; then ((depth--)) fi @@ -78,7 +78,7 @@ # if (( _Dbg_linetrace_expand )) ; then # # typeset expanded_source_line # # # Replace all double quotes (") with and an escape (\") -# # typeset esc_source_line="${_Dbg_source_line//\"/\\\"}" +# # typeset esc_source_line="${_Dbg_source_line//\"/\\\"}" # _Dbg_do_eval "expanded_source_line=\"$esc_source_line\"" 2>/dev/null # _Dbg_do_eval "expanded_source_line=\"$_Dbg_bash_command\"" 2>/dev/null # _Dbg_msg "+ ${expanded_source_line}" @@ -121,7 +121,7 @@ elif [[ $4 == '-' ]]; then ((_Dbg_listline=_Dbg_listline-2*_Dbg_set_listsize)) elif [[ -n $4 ]] ; then - if (($4 < 0)) ; then + if (($4 < 0)) ; then ((_Dbg_listline=$2+$4+1)) else ((_Dbg_listline=$4)) @@ -176,7 +176,7 @@ typeset frame_fullfile frame_fullfile=${_Dbg_file2canonic[$_Dbg_frame_last_filename]} - + for (( ; _Dbg_listline <= end_line ; _Dbg_listline++ )) ; do typeset prefix=' ' _Dbg_get_source_line $_Dbg_listline "$filename" @@ -194,7 +194,7 @@ typeset -i linewidth # 2 below is the initial prefix if (($# > 0 )) ; then - ((linewidth=$1-2)); + ((linewidth=$1-2)); shift else ((linewidth=_Dbg_set_linewidth-2)) @@ -202,7 +202,7 @@ (($# != 0)) && return 1 typeset -a columnized; columnize $linewidth "$colsep" typeset -i i - for ((i=0; i<${#columnized[@]}; i++)) ; do + for ((i=0; i<${#columnized[@]}; i++)) ; do _Dbg_msg " ${columnized[i]}" done
View file
bashdb-4.2-0.8.tar.bz2/lib/msg.sh -> bashdb-4.4-0.92.tar.bz2/lib/msg.sh
Changed
@@ -1,6 +1,6 @@ # -*- shell-script -*- # -# Copyright (C) 2002, 2003, 2004, 2006, 2008, 2009 Rocky Bernstein +# Copyright (C) 2002-2004, 2006, 2008-2009, 2012, 2015 Rocky Bernstein # <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -12,7 +12,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -27,7 +27,7 @@ # okay. `prompt' is printed, and "yes", or "no" is solicited. The # user response is returned in variable $_Dbg_response and $? is set # to 0. _Dbg_response is set to 'error' and $? set to 1 on an error. -# +# _Dbg_confirm() { if (( $# < 1 || $# > 2 )) ; then _Dbg_response='error' @@ -35,32 +35,32 @@ fi _Dbg_confirm_prompt=$1 typeset _Dbg_confirm_default=${2:-'no'} - while : ; do - if ! read $_Dbg_edit -p "$_Dbg_confirm_prompt" _Dbg_response args \ - <&$_Dbg_input_desc 2>>$_Dbg_prompt_output ; then - break - fi + while : ; do + if ! read $_Dbg_edit -p "$_Dbg_confirm_prompt" _Dbg_response args \ + <&$_Dbg_input_desc 2>>$_Dbg_prompt_output ; then + break + fi - case "$_Dbg_response" in - 'y' | 'yes' | 'yeah' | 'ya' | 'ja' | 'si' | 'oui' | 'ok' | 'okay' ) - _Dbg_response='y' - return 0 - ;; - 'n' | 'no' | 'nope' | 'nyet' | 'nein' | 'non' ) - _Dbg_response='n' - return 0 - ;; - *) - if [[ $_Dbg_response =~ '^[ \t]*$' ]] ; then - set +x - return 0 - else - _Dbg_msg "I don't understand \"$_Dbg_response\"." - _Dbg_msg "Please try again entering 'yes' or 'no'." - _Dbg_response='' - fi - ;; - esac + case "$_Dbg_response" in + 'y' | 'yes' | 'yeah' | 'ya' | 'ja' | 'si' | 'oui' | 'ok' | 'okay' ) + _Dbg_response='y' + return 0 + ;; + 'n' | 'no' | 'nope' | 'nyet' | 'nein' | 'non' ) + _Dbg_response='n' + return 0 + ;; + *) + if [[ $_Dbg_response =~ '^[ \t]*$' ]] ; then + set +x + return 0 + else + _Dbg_msg "I don't understand \"$_Dbg_response\"." + _Dbg_msg "Please try again entering 'yes' or 'no'." + _Dbg_response='' + fi + ;; + esac done } @@ -68,7 +68,7 @@ # Print an error message function _Dbg_errmsg { typeset -r prefix='**' - if (( _Dbg_set_highlight )) ; then + if [[ -n $_Dbg_set_highlight ]] ; then _Dbg_msg "$prefix ${_Dbg_ansi_term_underline}$@${_Dbg_ansi_term_normal}" else _Dbg_msg "$prefix $@" @@ -87,7 +87,7 @@ builtin echo -e "$@" >>$_Dbg_logfid fi if (( ! _Dbg_logging_redirect )) ; then - if [[ -n $_Dbg_tty ]] ; then + if [[ -n $_Dbg_tty ]] && [[ $_Dbg_tty != '&1' ]] ; then builtin echo -e "$@" >>$_Dbg_tty else builtin echo -e "$@" @@ -123,7 +123,7 @@ builtin printf "$format" "$@" >>$_Dbg_logfid fi if (( ! _Dbg_logging_redirect )) ; then - if [[ -n $_Dbg_tty ]] ; then + if [[ -n $_Dbg_tty ]] ; then builtin printf "$format" "$@" >>$_Dbg_tty else builtin printf "$format" "$@" @@ -131,12 +131,15 @@ fi } +typeset _Dbg_dashes='---------------------------------------------------' + # print message to output device function _Dbg_section { - if (( _Dbg_set_highlight )) ; then - _Dbg_msg "$prefix ${_Dbg_ansi_term_bold}$@${_Dbg_ansi_term_normal}" + if [[ -n $_Dbg_set_highlight ]] ; then + _Dbg_msg "${_Dbg_ansi_term_bold}$@${_Dbg_ansi_term_normal}" else - _Dbg_msg "$prefix $@" + local -r msg="$@" + _Dbg_msg "$msg\n${_Dbg_dashes:0:${#msg}}" fi }
View file
bashdb-4.2-0.8.tar.bz2/lib/processor.sh -> bashdb-4.4-0.92.tar.bz2/lib/processor.sh
Changed
@@ -1,7 +1,7 @@ # -*- shell-script -*- # dbg-processor.sh - Top-level debugger commands # -# Copyright (C) 2008, 2009, 2010, 2011 +# Copyright (C) 2008-2012, 2015 # Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or @@ -13,7 +13,7 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, @@ -37,7 +37,7 @@ typeset _Dbg_space=' ' -# Should we allow editing of debugger commands? +# Should we allow editing of debugger commands? # The value should either be '-e' or ''. And if it is # on, the edit style indicates what style edit keystrokes. typeset _Dbg_edit='-e' @@ -63,7 +63,7 @@ typeset -i _Dbg_fd_last=0 -# keep a list of source'd command files. If the entry is "" then we are +# keep a list of source'd command files. If the entry is "" then we are # interactive. typeset -a _Dbg_cmdfile; _Dbg_cmdfile=('') @@ -75,16 +75,16 @@ # ===================== FUNCTIONS ======================================= # The main debugger command reading loop. -# +# # Note: We have to be careful here in naming "local" variables. In contrast # to other places in the debugger, because of the read/eval loop, they are # in fact seen by those using the debugger. So in contrast to other "local"s # in the debugger, we prefer to preface these with _Dbg_. function _Dbg_process_commands { - # THIS SHOULD BE DONE IN dbg-sig.sh, but there's a bug in BASH in + # THIS SHOULD BE DONE IN dbg-sig.sh, but there's a bug in BASH in # trying to change "trap RETURN" inside a "trap RETURN" handler.... - # Turn off return trapping. Not strictly necessary, since it *should* be + # Turn off return trapping. Not strictly necessary, since it *should* be # covered by the _Dbg_ test below if we've named functions correctly. # However turning off the RETURN trap should reduce unnecessary # trap RETURN calls. @@ -108,14 +108,14 @@ typeset _Dbg_greater='' typeset _Dbg_less='' typeset result # Used by copies to return a value. - + if _Dbg_copies '>' $_Dbg_DEBUGGER_LEVEL ; then - _Dbg_greater=$result - _Dbg_less=${result//>/<} + _Dbg_greater=$result + _Dbg_less=${result//>/<} fi if _Dbg_copies ')' $BASH_SUBSHELL ; then - _Dbg_greater="${result}${_Dbg_greater}" - _Dbg_less="${_Dbg_less}${result//)/(}" + _Dbg_greater="${result}${_Dbg_greater}" + _Dbg_less="${_Dbg_less}${result//)/(}" fi # Loop over debugger commands. But before reading a debugger @@ -137,63 +137,70 @@ eval "local _Dbg_prompt=$_Dbg_prompt_str" _Dbg_preloop - typeset _Dbg_cmd + typeset _Dbg_cmd typeset args typeset rc - while : ; do - set -o history - _Dbg_input_desc=${_Dbg_fd[_Dbg_fd_last]} - if ((_Dbg_set_read_completion)) ; then - _Dbg_read_fn='readc' - else - _Dbg_read_fn='read' - fi - if ! $_Dbg_read_fn $_Dbg_edit -p "$_Dbg_prompt" _Dbg_cmd args \ - <&$_Dbg_input_desc 2>>$_Dbg_prompt_output ; then - set +o history - break - fi - - # FIXME: until I figure out to fix builtin readc, this happens - # on command completion: - if [[ $_Dbg_cmd =~ ' ' && -z $args ]] ; then - typeset -a ary; IFS=' ' ary=( $_Dbg_cmd ) - _Dbg_cmd=${ary[0]} - unset ary[0] - args="${ary[@]}" - fi - set +o history + while : ; do + set -o history + _Dbg_input_desc=${_Dbg_fd[_Dbg_fd_last]} + if [[ $_Dbg_tty == '&1' ]] ; then + echo -n "$_Dbg_prompt" + if ! read _Dbg_cmd args <&$_Dbg_input_desc 2>&1; then + break + fi + else + if ((_Dbg_set_read_completion)) ; then + _Dbg_read_fn='readc' + else + _Dbg_read_fn='read' + fi + if ! $_Dbg_read_fn $_Dbg_edit -p "$_Dbg_prompt" _Dbg_cmd args \ + <&$_Dbg_input_desc 2>>$_Dbg_prompt_output ; then + set +o history + break + fi + fi + + # FIXME: until I figure out to fix builtin readc, this happens + # on command completion: + if [[ $_Dbg_cmd =~ ' ' && -z $args ]] ; then + typeset -a ary; IFS=' ' ary=( $_Dbg_cmd ) + _Dbg_cmd=${ary[0]} + unset ary[0] + args="${ary[@]}" + fi + set +o history if (( _Dbg_brkpt_commands_defining )) ; then - case $_Dbg_cmd in - silent ) - _Dbg_brkpt_commands_silent[$_Dbg_brkpt_commands_current]=1 - continue - ;; - end ) - _Dbg_brkpt_commands_defining=0 - #### ??? TESTING - ## local -i cur=$_Dbg_brkpt_commands_current - ## local -i start=${_Dbg_brkpt_commands_start[$cur]} - ## local -i end=${_Dbg_brkpt_commands_end[$cur]} - ## local -i i - ## echo "++ brkpt: $cur, start: $start, end: $end " - ## for (( i=start; (( i < end )) ; i++ )) ; do - ## echo ${_Dbg_brkpt_commands[$i]} - ## done - eval "_Dbg_prompt=$_Dbg_prompt_str" - continue - ;; - *) - _Dbg_brkpt_commands[${#_Dbg_brkpt_commands[@]}]="$_Dbg_cmd $args" - (( _Dbg_brkpt_commands_end[$_Dbg_brkpt_commands_current]++ )) - continue - ;; - esac - rc=$? + case $_Dbg_cmd in + silent ) + _Dbg_brkpt_commands_silent[$_Dbg_brkpt_commands_current]=1 + continue + ;; + end ) + _Dbg_brkpt_commands_defining=0 + #### ??? TESTING + ## local -i cur=$_Dbg_brkpt_commands_current + ## local -i start=${_Dbg_brkpt_commands_start[$cur]} + ## local -i end=${_Dbg_brkpt_commands_end[$cur]} + ## local -i i + ## echo "++ brkpt: $cur, start: $start, end: $end " + ## for (( i=start; (( i < end )) ; i++ )) ; do + ## echo ${_Dbg_brkpt_commands[$i]} + ## done + eval "_Dbg_prompt=$_Dbg_prompt_str" + continue + ;; + *) + _Dbg_brkpt_commands[${#_Dbg_brkpt_commands[@]}]="$_Dbg_cmd $args" + (( _Dbg_brkpt_commands_end[$_Dbg_brkpt_commands_current]++ )) + continue + ;; + esac + rc=$? else - _Dbg_onecmd "$_Dbg_cmd" "$args" - _Dbg_postcmd + _Dbg_onecmd "$_Dbg_cmd" "$args" + _Dbg_postcmd fi ((_Dbg_continue_rc >= 0)) && return $_Dbg_continue_rc @@ -224,7 +231,7 @@
View file
bashdb-4.2-0.8.tar.bz2/lib/save-restore.sh -> bashdb-4.4-0.92.tar.bz2/lib/save-restore.sh
Changed
@@ -1,8 +1,7 @@ # -*- shell-script -*- # save-restore.sh - saves, sets and restores debugger vars on hook entry # -# Copyright (C) 2002, 2003, 2004, 2005, 2007, 2008, 2009, 2010, -# 2011 Rocky Bernstein <rocky@gnu.org> +# Copyright (C) 2002-2005, 2007-2011, 2014 Rocky Bernstein <rocky@gnu.org> # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License as @@ -13,14 +12,14 @@ # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # General Public License for more details. -# +# # You should have received a copy of the GNU General Public License # along with this program; see the file COPYING. If not, write to # the Free Software Foundation, 59 Temple Place, Suite 330, Boston, # MA 02111 USA. # Does things to after on entry of after an eval to set some debugger -# internal settings +# internal settings function _Dbg_set_debugger_internal { IFS="$_Dbg_space_IFS"; PS4='+ dbg (${BASH_SOURCE}:${LINENO}[$BASH_SUBSHELL]): ${FUNCNAME[0]}\n' @@ -31,24 +30,25 @@ set -$_Dbg_old_set_opts IFS="$_Dbg_old_IFS"; PS4="$_Dbg_old_PS4" + (( _Dbg_old_set_nullglob == 0 )) && shopt -s nullglob } _Dbg_save_args() { - + # Save values of $1 $2 $3 when debugged program was stopped # We use the loop below rather than _Dbg_set_args="(@)" because # we want to preserve embedded blanks in the arguments. typeset -i _Dbg_n=${#@} typeset -i _Dbg_i typeset -i _Dbg_arg_max=${#_Dbg_arg[@]} - + # If there has been a shift since the last time we entered, # it is possible that _Dbg_arg will contain too many values. # So remove those that have disappeared. for (( _Dbg_i=_Dbg_arg_max; _Dbg_i > _Dbg_n ; _Dbg_i-- )) ; do unset _Dbg_arg[$_Dbg_i] done - + # Populate _Dbg_arg with $1, $2, etc. for (( _Dbg_i=1 ; _Dbg_n > 0; _Dbg_n-- )) ; do _Dbg_arg[$_Dbg_i]="$1" @@ -61,7 +61,7 @@ } # Do things for debugger entry. Set some global debugger variables -# Remove trapping ourselves. +# Remove trapping ourselves. # We assume that we are nested two calls deep from the point of debug # or signal fault. If this isn't the constant 2, then consider adding # a parameter to this routine. @@ -70,7 +70,7 @@ # Nuke DEBUG trap trap '' DEBUG - # How many function are on the stack that are part of the debugger? + # How many function are on the stack that are part of the debugger? # Normally this gets called from the trace hook. so this routine plus # the trace hook should are on the FUNCNAME stack and should be ignored typeset -li discard_top_fn_count=${1:-2} @@ -116,7 +116,7 @@ trap '_Dbg_debug_trap_handler 0 "$BASH_COMMAND" "$@"' DEBUG else trap - DEBUG - fi + fi _Dbg_restore_user_vars }
View file
bashdb-4.2-0.8.tar.bz2/lib/sig.sh -> bashdb-4.4-0.92.tar.bz2/lib/sig.sh
Changed
@@ -25,7 +25,7 @@ typeset _Dbg_old_setopts # Place to save debugged program's exit handler, if any. -typeset _Dbg_old_EXIT_handler='' +typeset _Dbg_old_EXIT_handler='' typeset -i _Dbg_QUIT_ON_QUIT=0 @@ -36,23 +36,23 @@ ## Signal arrays: These are indexed by the signal number. ## ############################################################ -# Should we print that a signal was intercepted? +# Should we print that a signal was intercepted? # Each entry is "print" or "noprint" or null. typeset -a _Dbg_sig_print; _Dbg_sig_print=() -# Should we reentry the debugger command loop on receiving the signal? +# Should we reentry the debugger command loop on receiving the signal? # Each entry is "stop" or "nostop" or null. typeset -a _Dbg_sig_stop; _Dbg_sig_stop=() -# Should we show a traceback on receiving the signal? +# Should we show a traceback on receiving the signal? # Each entry is "stack" or "nostack" or null. typeset -a _Dbg_sig_show_stack; _Dbg_sig_show_stack=() -# Should pass the signal to the user program?? +# Should pass the signal to the user program?? # Each entry is the trap handler with some variables substituted. typeset -a _Dbg_sig_passthrough; _Dbg_sig_passthrough=() -# Should pass the signal to the user program?? +# Should pass the signal to the user program?? # Each entry is the trap handler with some variables substituted. typeset -i _Dbg_return_level=0 @@ -79,8 +79,8 @@ _Dbg_subst_handler_var() { typeset -i i typeset result='' - for arg in $* ; do - case $arg in + for arg in $* ; do + case $arg in '$LINENO' ) arg='${BASH_LINENO[0]}' ;; @@ -95,7 +95,7 @@ ;; esac if [[ $result == '' ]] ; then - result=$arg + result=$arg else result="$result $arg" fi @@ -103,7 +103,7 @@ echo $result } -# Debugger exit handler. Don't really exit - but go back the debugger +# Debugger exit handler. Don't really exit - but go back the debugger # command loop _Dbg_exit_handler() { @@ -114,10 +114,10 @@ # Turn off line and variable trace listing; allow unset parameter expansion. set +x +v +u - if [[ ${_Dbg_sig_print[0]} == "print" ]] ; then + if [[ ${_Dbg_sig_print[0]} == "print" ]] ; then # Note: use the same message that gdb does for this. _Dbg_msg "Program received signal EXIT (0)..." - if [[ ${_Dbg_sig_show_stack[0]} == "showstack" ]] ; then + if [[ ${_Dbg_sig_show_stack[0]} == "showstack" ]] ; then _Dbg_do_backtrace 0 fi fi @@ -132,7 +132,7 @@ if [[ ${_Dbg_sig_stop[0]} != "stop" ]] \ || (( _Dbg_QUIT_LEVELS != 0 )) \ - || (( _Dbg_QUIT_ON_QUIT )) ; then + || (( _Dbg_QUIT_ON_QUIT )) ; then _Dbg_do_quit # We don't return from here. fi @@ -141,13 +141,13 @@ # Even though this is an exit handler, don't exit! typeset term_msg="normally" - if [[ $_Dbg_debugged_exit_code != 0 ]] ; then + if [[ $_Dbg_debugged_exit_code != 0 ]] ; then term_msg="with code $_Dbg_debugged_exit_code" fi # If we tried to exit from inside a subshell, we only want to enter - # the command loop if don't have any pending subshells. - if (( BASH_SUBSHELL == 0 )) ; then + # the command loop if don't have any pending subshells. + if (( BASH_SUBSHELL == 0 )) ; then _Dbg_msg \ "Debugged program terminated $term_msg. Use q to quit or R to restart." @@ -162,38 +162,38 @@ # to handle this signal. # Since the command loop may be called we need to be careful about -# using variable names that would be exposed to the user. +# using variable names that would be exposed to the user. _Dbg_sig_handler() { # Consider putting the following line(s) in a routine. # Ditto for the restore environment typeset -i _Dbg_debugged_exit_code=$? _Dbg_old_set_opts=$- - + # Turn off line and variable trace listing if were not in our own debug # mode, and set our own PS4 for debugging inside the debugger (( !_Dbg_set_debug )) && set +x +v +u shopt -s extdebug # This is the signal number. E.g. 15 is SIGTERM - typeset -r -i _Dbg_signum=$1 + typeset -r -i _Dbg_signum=$1 if [[ ${_Dbg_sig_print[$_Dbg_signum]} == "print" ]] || \ [[ ${_Dbg_sig_stop[$_Dbg_signum]} == "stop" ]] ; then typeset -r name=$(_Dbg_signum2name $_Dbg_signum) # Note: use the same message that gdb does for this. _Dbg_msg "Program received signal $name ($_Dbg_signum)..." - if [[ ${_Dbg_sig_show_stack[$_Dbg_signum]} == "showstack" ]] ; then + if [[ ${_Dbg_sig_show_stack[$_Dbg_signum]} == "showstack" ]] ; then _Dbg_stack_pos=0 ((_Dbg_stack_size = ${#FUNCNAME[@]})) - _Dbg_do_backtrace + _Dbg_do_backtrace fi fi if [[ ${_Dbg_sig_stop[$_Dbg_signum]} == "stop" ]] ; then ### The below duplicates what is above in _Dbg_debug_trap handler ### Should put common stuff into a function. - + shift # signum _Dbg_save_args "$@" @@ -245,16 +245,15 @@ fi } -# Set up generic trap handler. Arguments are: +# Set up generic trap handler. Arguments are: # NAME print showstack stop passthrough _Dbg_init_trap() { typeset -r name=$1 typeset -i -r signum=$(_Dbg_name2signum $name) - _Dbg_sig_print[$signum]=$2; _Dbg_sig_show_stack[$signum]=$3; _Dbg_sig_stop[$signum]=$4; - + # Work out passthrough later... # if [[ $5 == "pass*" ]] ; then # get existing trap from env. @@ -270,10 +269,10 @@ } _Dbg_init_default_traps() { - _Dbg_init_trap EXIT "noprint" "nostack" "stop" - _Dbg_init_trap ILL "print" "showstack" "stop" - _Dbg_init_trap INT "print" "showstack" "stop" - _Dbg_init_trap QUIT "print" "showstack" "stop" - _Dbg_init_trap TERM "print" "showstack" "stop" - _Dbg_init_trap TRAP "print" "showstack" "stop" + _Dbg_init_trap EXIT "noprint" "nostack" "stop" + _Dbg_init_trap ILL "print" "showstack" "stop" + _Dbg_init_trap INT "print" "showstack" "stop" + _Dbg_init_trap QUIT "print" "showstack" "stop" + _Dbg_init_trap TERM "print" "showstack" "stop" + _Dbg_init_trap TRAP "print" "showstack" "stop" }
View file
bashdb-4.2-0.8.tar.bz2/lib/term-highlight.py -> bashdb-4.4-0.92.tar.bz2/lib/term-highlight.py
Changed
@@ -1,12 +1,15 @@ #!/usr/bin/env python -# from pydbgr.api import debug +# from trepan.api import debug # debug() +import warnings +warnings.simplefilter("ignore") from pygments import highlight from pygments.lexers import BashLexer from pygments.formatters import TerminalFormatter from pygments.token import Keyword, Name, Comment, String, Error, \ Number, Operator, Generic, Token, Whitespace from tempfile import mktemp +from getopt import getopt import os, sys #: Map token types to a tuple of color values for light and dark @@ -15,9 +18,9 @@ Token: ('', ''), Whitespace: ('lightgray', 'darkgray'), - Comment: ('brown', 'darkgray'), + Comment: ('brown', 'brown'), Comment.Preproc: ('teal', 'turquoise'), - Keyword: ('*darkgreen*', 'blue'), + Keyword: ('*darkgreen*', 'turquoise'), Keyword.Type: ('teal', 'turquoise'), Operator.Word: ('purple', 'fuchsia'), Name.Builtin: ('teal', 'turquoise'), @@ -26,12 +29,12 @@ Name.Class: ('_darkgreen_', '_green_'), Name.Exception: ('teal', 'turquoise'), Name.Decorator: ('darkgray', 'lightgray'), - Name.Variable: ('darkblue', 'blue'), - Name.Constant: ('darkblue', 'blue'), + Name.Variable: ('darkblue', 'green'), + Name.Constant: ('darkblue', 'orange'), Name.Attribute: ('teal', 'turquoise'), - Name.Tag: ('blue', 'blue'), + Name.Tag: ('blue', 'orange'), String: ('brown', 'brown'), - Number: ('black', 'blue'), + Number: ('black', 'orange'), Generic.Deleted: ('red', 'red'), Generic.Inserted: ('darkgreen', 'green'), @@ -43,7 +46,7 @@ } -def syntax_highlight_file(input_filename, to_stdout = False, color_file=None): +def syntax_highlight_file(input_filename, to_stdout = False, bg='light', colors_file=None): if to_stdout: outfile = sys.stdout out_filename = None @@ -78,10 +81,10 @@ infile = sys.stdin pass - formatter = TerminalFormatter() - if color_file and os.path.isfile(color_file): + formatter = TerminalFormatter(bg=bg) + if colors_file is not None and os.path.isfile(colors_file): try: - execfile(color_file) + execfile(colors_file) except: sys.exit(10) pass @@ -97,20 +100,47 @@ sys.exit(0) pass -if __name__=='__main__': - color_file = None +def main(): + try: + opts, args = getopt(sys.argv[1:], "hb:", ["help", "bg="]) + except GetoptError as err: + # print help information and exit: + print str(err) # will print something like "option -a not recognized" + usage() + sys.exit(2) + output = None + verbose = False + dark_light = 'light' + for o, a in opts: + if o in ("-h", "--help"): + usage() + sys.exit() + elif o in ("-b", "--bg"): + if a in ['dark', 'light']: + dark_light = a + else: + assert False, "expecting 'dark' or 'light'; got %s" % a + else: + assert False, "unhandled option" + pass + colors_file = None to_stdout = False - if len(sys.argv) == 1: + if len(args) == 0: to_stdout = True filename = None - elif len(sys.argv) == 2: - filename = sys.argv[1] - elif len(sys.argv) == 3: - filename = sys.argv[1] - color_file = sys.argv[2] + elif len(args) == 1: + filename = args[0] + elif len(args) == 2: + filename = args[0] + colors_file = args[1] else: - print "usage: $0 [FILE [color-file]]" + print "usage: $0 [FILE [--bg {dark|light}] [color-file]]" sys.exit(3) pass - syntax_highlight_file(filename, to_stdout, color_file) + syntax_highlight_file(filename, to_stdout, bg=dark_light, colors_file=colors_file) + pass + + +if __name__=='__main__': + main() pass
View file
bashdb-4.4-0.92.tar.bz2/libtool.m4
Added
@@ -0,0 +1,8001 @@ +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- +# +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +m4_define([_LT_COPYING], [dnl +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, +# 2006, 2007, 2008, 2009, 2010, 2011 Free Software +# Foundation, Inc. +# Written by Gordon Matzigkeit, 1996 +# +# This file is part of GNU Libtool. +# +# GNU Libtool is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License as +# published by the Free Software Foundation; either version 2 of +# the License, or (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or +# obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. +]) + +# serial 57 LT_INIT + + +# LT_PREREQ(VERSION) +# ------------------ +# Complain and exit if this libtool version is less that VERSION. +m4_defun([LT_PREREQ], +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1, + [m4_default([$3], + [m4_fatal([Libtool version $1 or higher is required], + 63)])], + [$2])]) + + +# _LT_CHECK_BUILDDIR +# ------------------ +# Complain if the absolute build directory name contains unusual characters +m4_defun([_LT_CHECK_BUILDDIR], +[case `pwd` in + *\ * | *\ *) + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;; +esac +]) + + +# LT_INIT([OPTIONS]) +# ------------------ +AC_DEFUN([LT_INIT], +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT +AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl +AC_BEFORE([$0], [LT_LANG])dnl +AC_BEFORE([$0], [LT_OUTPUT])dnl +AC_BEFORE([$0], [LTDL_INIT])dnl +m4_require([_LT_CHECK_BUILDDIR])dnl + +dnl Autoconf doesn't catch unexpanded LT_ macros by default: +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4 +dnl unless we require an AC_DEFUNed macro: +AC_REQUIRE([LTOPTIONS_VERSION])dnl +AC_REQUIRE([LTSUGAR_VERSION])dnl +AC_REQUIRE([LTVERSION_VERSION])dnl +AC_REQUIRE([LTOBSOLETE_VERSION])dnl +m4_require([_LT_PROG_LTMAIN])dnl + +_LT_SHELL_INIT([SHELL=${CONFIG_SHELL-/bin/sh}]) + +dnl Parse OPTIONS +_LT_SET_OPTIONS([$0], [$1]) + +# This can be used to rebuild libtool when needed +LIBTOOL_DEPS="$ltmain" + +# Always use our own libtool. +LIBTOOL='$(SHELL) $(top_builddir)/libtool' +AC_SUBST(LIBTOOL)dnl + +_LT_SETUP + +# Only expand once: +m4_define([LT_INIT]) +])# LT_INIT + +# Old names: +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT]) +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT]) +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_PROG_LIBTOOL], []) +dnl AC_DEFUN([AM_PROG_LIBTOOL], []) + + +# _LT_CC_BASENAME(CC) +# ------------------- +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. +m4_defun([_LT_CC_BASENAME], +[for cc_temp in $1""; do + case $cc_temp in + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; + \-*) ;; + *) break;; + esac +done +cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` +]) + + +# _LT_FILEUTILS_DEFAULTS +# ---------------------- +# It is okay to use these file commands and assume they have been set +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'. +m4_defun([_LT_FILEUTILS_DEFAULTS], +[: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +])# _LT_FILEUTILS_DEFAULTS + + +# _LT_SETUP +# --------- +m4_defun([_LT_SETUP], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +AC_REQUIRE([AC_CANONICAL_BUILD])dnl +AC_REQUIRE([_LT_PREPARE_SED_QUOTE_VARS])dnl +AC_REQUIRE([_LT_PROG_ECHO_BACKSLASH])dnl + +_LT_DECL([], [PATH_SEPARATOR], [1], [The PATH separator for the build system])dnl +dnl +_LT_DECL([], [host_alias], [0], [The host system])dnl +_LT_DECL([], [host], [0])dnl +_LT_DECL([], [host_os], [0])dnl +dnl +_LT_DECL([], [build_alias], [0], [The build system])dnl +_LT_DECL([], [build], [0])dnl +_LT_DECL([], [build_os], [0])dnl +dnl +AC_REQUIRE([AC_PROG_CC])dnl +AC_REQUIRE([LT_PATH_LD])dnl +AC_REQUIRE([LT_PATH_NM])dnl +dnl +AC_REQUIRE([AC_PROG_LN_S])dnl +test -z "$LN_S" && LN_S="ln -s" +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl +dnl +AC_REQUIRE([LT_CMD_MAX_LEN])dnl +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl +dnl +m4_require([_LT_FILEUTILS_DEFAULTS])dnl +m4_require([_LT_CHECK_SHELL_FEATURES])dnl +m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl +m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_CHECK_MAGIC_METHOD])dnl +m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl +m4_require([_LT_CMD_OLD_ARCHIVE])dnl +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl +m4_require([_LT_WITH_SYSROOT])dnl + +_LT_CONFIG_LIBTOOL_INIT([ +# See if we are running on zsh, and set the options which allow our +# commands through without removal of \ escapes INIT. +if test -n "\${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi +]) +if test -n "${ZSH_VERSION+set}" ; then + setopt NO_GLOB_SUBST +fi + +_LT_CHECK_OBJDIR + +m4_require([_LT_TAG_COMPILER])dnl + +case $host_os in +aix3*) + # AIX sometimes has problems with the GCC collect2 program. For some + # reason, if we set the COLLECT_NAMES environment variable, the problems
View file
bashdb-4.2-0.8.tar.bz2/ltmain.sh -> bashdb-4.4-0.92.tar.bz2/ltmain.sh
Changed
@@ -1,2 +1,9661 @@ -#!/bin/sh -# This is not used. + +# libtool (GNU libtool) 2.4.2 +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 + +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, +# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. +# This is free software; see the source for copying conditions. There is NO +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +# GNU Libtool is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# As a special exception to the GNU General Public License, +# if you distribute this file as part of a program or library that +# is built using GNU Libtool, you may include this file under the +# same distribution terms that you use for the rest of that program. +# +# GNU Libtool is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with GNU Libtool; see the file COPYING. If not, a copy +# can be downloaded from http://www.gnu.org/licenses/gpl.html, +# or obtained by writing to the Free Software Foundation, Inc., +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +# Usage: $progname [OPTION]... [MODE-ARG]... +# +# Provide generalized library-building support services. +# +# --config show all configuration variables +# --debug enable verbose shell tracing +# -n, --dry-run display commands without modifying any files +# --features display basic configuration information and exit +# --mode=MODE use operation mode MODE +# --preserve-dup-deps don't remove duplicate dependency libraries +# --quiet, --silent don't print informational messages +# --no-quiet, --no-silent +# print informational messages (default) +# --no-warn don't display warning messages +# --tag=TAG use configuration variables from tag TAG +# -v, --verbose print more informational messages than default +# --no-verbose don't print the extra informational messages +# --version print version information +# -h, --help, --help-all print short, long, or detailed help message +# +# MODE must be one of the following: +# +# clean remove files from the build directory +# compile compile a source file into a libtool object +# execute automatically set library path, then run a program +# finish complete the installation of libtool libraries +# install install libraries or executables +# link create a library or an executable +# uninstall remove libraries from an installed directory +# +# MODE-ARGS vary depending on the MODE. When passed as first option, +# `--mode=MODE' may be abbreviated as `MODE' or a unique abbreviation of that. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE. +# +# When reporting a bug, please describe a test case to reproduce it and +# include the following information: +# +# host-triplet: $host +# shell: $SHELL +# compiler: $LTCC +# compiler flags: $LTCFLAGS +# linker: $LD (gnu? $with_gnu_ld) +# $progname: (GNU libtool) 2.4.2 Debian-2.4.2-1ubuntu1 +# automake: $automake_version +# autoconf: $autoconf_version +# +# Report bugs to <bug-libtool@gnu.org>. +# GNU libtool home page: <http://www.gnu.org/software/libtool/>. +# General help using GNU software: <http://www.gnu.org/gethelp/>. + +PROGRAM=libtool +PACKAGE=libtool +VERSION="2.4.2 Debian-2.4.2-1ubuntu1" +TIMESTAMP="" +package_revision=1.3337 + +# Be Bourne compatible +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then + emulate sh + NULLCMD=: + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which + # is contrary to our usage. Disable this feature. + alias -g '${1+"$@"}'='"$@"' + setopt NO_GLOB_SUBST +else + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac +fi +BIN_SH=xpg4; export BIN_SH # for Tru64 +DUALCASE=1; export DUALCASE # for MKS sh + +# A function that is used when there is no print builtin or printf. +func_fallback_echo () +{ + eval 'cat <<_LTECHO_EOF +$1 +_LTECHO_EOF' +} + +# NLS nuisances: We save the old values to restore during execute mode. +lt_user_locale= +lt_safe_locale= +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES +do + eval "if test \"\${$lt_var+set}\" = set; then + save_$lt_var=\$$lt_var + $lt_var=C + export $lt_var + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\" + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\" + fi" +done +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL + +$lt_unset CDPATH + + +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh +# is ksh but when the shell is invoked as "sh" and the current value of +# the _XPG environment variable is not equal to 1 (one), the special +# positional parameter $0, within a function call, is the name of the +# function. +progpath="$0" + + + +: ${CP="cp -f"} +test "${ECHO+set}" = set || ECHO=${as_echo-'printf %s\n'} +: ${MAKE="make"} +: ${MKDIR="mkdir"} +: ${MV="mv -f"} +: ${RM="rm -f"} +: ${SHELL="${CONFIG_SHELL-/bin/sh}"} +: ${Xsed="$SED -e 1s/^X//"} + +# Global variables: +EXIT_SUCCESS=0 +EXIT_FAILURE=1 +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake. + +exit_status=$EXIT_SUCCESS + +# Make sure IFS has a sensible default +lt_nl=' +' +IFS=" $lt_nl" + +dirname="s,/[^/]*$,," +basename="s,^.*/,," + +# func_dirname file append nondir_replacement +# Compute the dirname of FILE. If nonempty, add APPEND to the result, +# otherwise set result to NONDIR_REPLACEMENT. +func_dirname () +{ + func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` + if test "X$func_dirname_result" = "X${1}"; then + func_dirname_result="${3}" + else + func_dirname_result="$func_dirname_result${2}" + fi +} # func_dirname may be replaced by extended shell implementation + + +# func_basename file +func_basename () +{ + func_basename_result=`$ECHO "${1}" | $SED "$basename"` +} # func_basename may be replaced by extended shell implementation + + +# func_dirname_and_basename file append nondir_replacement +# perform func_basename and func_dirname in a single function +# call: +# dirname: Compute the dirname of FILE. If nonempty, +# add APPEND to the result, otherwise set result +# to NONDIR_REPLACEMENT. +# value returned in "$func_dirname_result" +# basename: Compute filename of FILE. +# value retuned in "$func_basename_result" +# Implementation must be kept synchronized with func_dirname +# and func_basename. For efficiency, we do not delegate to +# those functions but instead duplicate the functionality here. +func_dirname_and_basename () +{
View file
bashdb-4.4-0.92.tar.bz2/ltoptions.m4
Added
@@ -0,0 +1,384 @@ +# Helper functions for option handling. -*- Autoconf -*- +# +# Copyright (C) 2004, 2005, 2007, 2008, 2009 Free Software Foundation, +# Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 7 ltoptions.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])]) + + +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME) +# ------------------------------------------ +m4_define([_LT_MANGLE_OPTION], +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])]) + + +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME) +# --------------------------------------- +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a +# matching handler defined, dispatch to it. Other OPTION-NAMEs are +# saved as a flag. +m4_define([_LT_SET_OPTION], +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]), + _LT_MANGLE_DEFUN([$1], [$2]), + [m4_warning([Unknown $1 option `$2'])])[]dnl +]) + + +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET]) +# ------------------------------------------------------------ +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise. +m4_define([_LT_IF_OPTION], +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])]) + + +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET) +# ------------------------------------------------------- +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME +# are set. +m4_define([_LT_UNLESS_OPTIONS], +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option), + [m4_define([$0_found])])])[]dnl +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3 +])[]dnl +]) + + +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST) +# ---------------------------------------- +# OPTION-LIST is a space-separated list of Libtool options associated +# with MACRO-NAME. If any OPTION has a matching handler declared with +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about +# the unknown option and exit. +m4_defun([_LT_SET_OPTIONS], +[# Set options +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])), + [_LT_SET_OPTION([$1], _LT_Option)]) + +m4_if([$1],[LT_INIT],[ + dnl + dnl Simply set some default values (i.e off) if boolean options were not + dnl specified: + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no + ]) + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no + ]) + dnl + dnl If no reference was made to various pairs of opposing options, then + dnl we run the default mode handler for the pair. For example, if neither + dnl `shared' nor `disable-shared' was passed, we enable building of shared + dnl archives by default: + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED]) + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC]) + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install], + [_LT_ENABLE_FAST_INSTALL]) + ]) +])# _LT_SET_OPTIONS + + +## --------------------------------- ## +## Macros to handle LT_INIT options. ## +## --------------------------------- ## + +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME) +# ----------------------------------------- +m4_define([_LT_MANGLE_DEFUN], +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])]) + + +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE) +# ----------------------------------------------- +m4_define([LT_OPTION_DEFINE], +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl +])# LT_OPTION_DEFINE + + +# dlopen +# ------ +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes +]) + +AU_DEFUN([AC_LIBTOOL_DLOPEN], +[_LT_SET_OPTION([LT_INIT], [dlopen]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `dlopen' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], []) + + +# win32-dll +# --------- +# Declare package support for building win32 dll's. +LT_OPTION_DEFINE([LT_INIT], [win32-dll], +[enable_win32_dll=yes + +case $host in +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) + AC_CHECK_TOOL(AS, as, false) + AC_CHECK_TOOL(DLLTOOL, dlltool, false) + AC_CHECK_TOOL(OBJDUMP, objdump, false) + ;; +esac + +test -z "$AS" && AS=as +_LT_DECL([], [AS], [1], [Assembler program])dnl + +test -z "$DLLTOOL" && DLLTOOL=dlltool +_LT_DECL([], [DLLTOOL], [1], [DLL creation program])dnl + +test -z "$OBJDUMP" && OBJDUMP=objdump +_LT_DECL([], [OBJDUMP], [1], [Object dumper program])dnl +])# win32-dll + +AU_DEFUN([AC_LIBTOOL_WIN32_DLL], +[AC_REQUIRE([AC_CANONICAL_HOST])dnl +_LT_SET_OPTION([LT_INIT], [win32-dll]) +AC_DIAGNOSE([obsolete], +[$0: Remove this warning and the call to _LT_SET_OPTION when you +put the `win32-dll' option into LT_INIT's first parameter.]) +]) + +dnl aclocal-1.4 backwards compatibility: +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], []) + + +# _LT_ENABLE_SHARED([DEFAULT]) +# ---------------------------- +# implement the --enable-shared flag, and supports the `shared' and +# `disable-shared' LT_INIT options. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. +m4_define([_LT_ENABLE_SHARED], +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl +AC_ARG_ENABLE([shared], + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@], + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])], + [p=${PACKAGE-default} + case $enableval in + yes) enable_shared=yes ;; + no) enable_shared=no ;; + *) + enable_shared=no + # Look at the argument we got. We use all the common list separators. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," + for pkg in $enableval; do + IFS="$lt_save_ifs" + if test "X$pkg" = "X$p"; then + enable_shared=yes + fi + done + IFS="$lt_save_ifs" + ;; + esac], + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT) + + _LT_DECL([build_libtool_libs], [enable_shared], [0], + [Whether or not to build shared libraries]) +])# _LT_ENABLE_SHARED + +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])]) +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])]) + +# Old names: +AC_DEFUN([AC_ENABLE_SHARED], +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared]) +]) + +AC_DEFUN([AC_DISABLE_SHARED],
View file
bashdb-4.4-0.92.tar.bz2/ltsugar.m4
Added
@@ -0,0 +1,123 @@ +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc. +# Written by Gary V. Vaughan, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 6 ltsugar.m4 + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])]) + + +# lt_join(SEP, ARG1, [ARG2...]) +# ----------------------------- +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their +# associated separator. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier +# versions in m4sugar had bugs. +m4_define([lt_join], +[m4_if([$#], [1], [], + [$#], [2], [[$2]], + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])]) +m4_define([_lt_join], +[m4_if([$#$2], [2], [], + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])]) + + +# lt_car(LIST) +# lt_cdr(LIST) +# ------------ +# Manipulate m4 lists. +# These macros are necessary as long as will still need to support +# Autoconf-2.59 which quotes differently. +m4_define([lt_car], [[$1]]) +m4_define([lt_cdr], +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])], + [$#], 1, [], + [m4_dquote(m4_shift($@))])]) +m4_define([lt_unquote], $1) + + +# lt_append(MACRO-NAME, STRING, [SEPARATOR]) +# ------------------------------------------ +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'. +# Note that neither SEPARATOR nor STRING are expanded; they are appended +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked). +# No SEPARATOR is output if MACRO-NAME was previously undefined (different +# than defined and empty). +# +# This macro is needed until we can rely on Autoconf 2.62, since earlier +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING. +m4_define([lt_append], +[m4_define([$1], + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])]) + + + +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...]) +# ---------------------------------------------------------- +# Produce a SEP delimited list of all paired combinations of elements of +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list +# has the form PREFIXmINFIXSUFFIXn. +# Needed until we can rely on m4_combine added in Autoconf 2.62. +m4_define([lt_combine], +[m4_if(m4_eval([$# > 3]), [1], + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl +[[m4_foreach([_Lt_prefix], [$2], + [m4_foreach([_Lt_suffix], + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[, + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])]) + + +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ]) +# ----------------------------------------------------------------------- +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ. +m4_define([lt_if_append_uniq], +[m4_ifdef([$1], + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1], + [lt_append([$1], [$2], [$3])$4], + [$5])], + [lt_append([$1], [$2], [$3])$4])]) + + +# lt_dict_add(DICT, KEY, VALUE) +# ----------------------------- +m4_define([lt_dict_add], +[m4_define([$1($2)], [$3])]) + + +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE) +# -------------------------------------------- +m4_define([lt_dict_add_subkey], +[m4_define([$1($2:$3)], [$4])]) + + +# lt_dict_fetch(DICT, KEY, [SUBKEY]) +# ---------------------------------- +m4_define([lt_dict_fetch], +[m4_ifval([$3], + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]), + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))]) + + +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE]) +# ----------------------------------------------------------------- +m4_define([lt_if_dict_fetch], +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4], + [$5], + [$6])]) + + +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...]) +# -------------------------------------------------------------- +m4_define([lt_dict_filter], +[m4_if([$5], [], [], + [lt_join(m4_quote(m4_default([$4], [[, ]])), + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]), + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl +])
View file
bashdb-4.4-0.92.tar.bz2/ltversion.m4
Added
@@ -0,0 +1,23 @@ +# ltversion.m4 -- version numbers -*- Autoconf -*- +# +# Copyright (C) 2004 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004 +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# @configure_input@ + +# serial 3337 ltversion.m4 +# This file is part of GNU Libtool + +m4_define([LT_PACKAGE_VERSION], [2.4.2]) +m4_define([LT_PACKAGE_REVISION], [1.3337]) + +AC_DEFUN([LTVERSION_VERSION], +[macro_version='2.4.2' +macro_revision='1.3337' +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) +_LT_DECL(, macro_revision, 0) +])
View file
bashdb-4.4-0.92.tar.bz2/lt~obsolete.m4
Added
@@ -0,0 +1,98 @@ +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- +# +# Copyright (C) 2004, 2005, 2007, 2009 Free Software Foundation, Inc. +# Written by Scott James Remnant, 2004. +# +# This file is free software; the Free Software Foundation gives +# unlimited permission to copy and/or distribute it, with or without +# modifications, as long as this notice is preserved. + +# serial 5 lt~obsolete.m4 + +# These exist entirely to fool aclocal when bootstrapping libtool. +# +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN) +# which have later been changed to m4_define as they aren't part of the +# exported API, or moved to Autoconf or Automake where they belong. +# +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us +# using a macro with the same name in our local m4/libtool.m4 it'll +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define +# and doesn't know about Autoconf macros at all.) +# +# So we provide this file, which has a silly filename so it's always +# included after everything else. This provides aclocal with the +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything +# because those macros already exist, or will be overwritten later. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6. +# +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here. +# Yes, that means every name once taken will need to remain here until +# we give up compatibility with versions before 1.7, at which point +# we need to keep only those names which we still refer to. + +# This is to help aclocal find these macros, as it can't see m4_define. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])]) + +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])]) +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])]) +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])]) +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])]) +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])]) +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])]) +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])]) +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])]) +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])]) +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])]) +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])]) +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])]) +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])]) +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])]) +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])]) +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])]) +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])]) +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])]) +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])]) +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])]) +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])]) +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])]) +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])]) +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])]) +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])]) +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])]) +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])]) +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])]) +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])]) +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])]) +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])]) +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])]) +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])]) +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])]) +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])]) +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])]) +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])]) +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])]) +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])]) +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])]) +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])]) +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])]) +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])]) +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])]) +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])]) +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])]) +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])]) +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])]) +m4_ifndef([_LT_REQUIRED_DARWIN_CHECKS], [AC_DEFUN([_LT_REQUIRED_DARWIN_CHECKS])]) +m4_ifndef([_LT_AC_PROG_CXXCPP], [AC_DEFUN([_LT_AC_PROG_CXXCPP])]) +m4_ifndef([_LT_PREPARE_SED_QUOTE_VARS], [AC_DEFUN([_LT_PREPARE_SED_QUOTE_VARS])]) +m4_ifndef([_LT_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_PROG_ECHO_BACKSLASH])]) +m4_ifndef([_LT_PROG_F77], [AC_DEFUN([_LT_PROG_F77])]) +m4_ifndef([_LT_PROG_FC], [AC_DEFUN([_LT_PROG_FC])]) +m4_ifndef([_LT_PROG_CXX], [AC_DEFUN([_LT_PROG_CXX])])
View file
bashdb-4.4-0.92.tar.bz2/make-check-filter.rb
Added
@@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +# Use this to cut out the crud from make check. +# Use like this: +# make check 2>&1 | ruby ../make-check-filter.rb +# See Makefile.am +pats = '(' + + [ + '^(re)?make\[', + "^(re)?make ", + "Making check in", + '^m4/', # doesn't work always + '^configure.ac', # doesn't work always + '^ cd \.\.', # doesn't work always + '^config.status', # doesn't work always + 'config\.status:', # doesn't work always + '^shunit2: ', + '^##<<+$', + '^##>>+$', + '`.+\' is up to date.$', + '^\s*$', + ].join('|') + ')' +# puts pats +skip_re = /#{pats}/ + +while gets() + next if $_.encode!('UTF-8', 'binary', + invalid: :replace, undef: :replace, replace: '') =~ skip_re + puts $_ +end
View file
bashdb-4.2-0.8.tar.bz2/missing -> bashdb-4.4-0.92.tar.bz2/missing
Changed
@@ -1,11 +1,10 @@ #! /bin/sh -# Common stub for a few missing GNU programs while installing. +# Common wrapper for a few potentially missing GNU programs. -scriptversion=2009-04-28.21; # UTC +scriptversion=2013-10-28.13; # UTC -# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006, -# 2008, 2009 Free Software Foundation, Inc. -# Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. +# Copyright (C) 1996-2013 Free Software Foundation, Inc. +# Originally written by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,69 +25,40 @@ # the same distribution terms that you use for the rest of that program. if test $# -eq 0; then - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "Try '$0 --help' for more information" exit 1 fi -run=: -sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p' -sed_minuso='s/.* -o \([^ ]*\).*/\1/p' - -# In the cases where this matters, `missing' is being run in the -# srcdir already. -if test -f configure.ac; then - configure_ac=configure.ac -else - configure_ac=configure.in -fi +case $1 in -msg="missing on your system" + --is-lightweight) + # Used by our autoconf macros to check whether the available missing + # script is modern enough. + exit 0 + ;; -case $1 in ---run) - # Try to run requested program, and just exit if it succeeds. - run= - shift - "$@" && exit 0 - # Exit code 63 means version mismatch. This often happens - # when the user try to use an ancient version of a tool on - # a file that requires a minimum version. In this case we - # we should proceed has if the program had been absent, or - # if --run hadn't been passed. - if test $? = 63; then - run=: - msg="probably too old" - fi - ;; + --run) + # Back-compat with the calling convention used by older automake. + shift + ;; -h|--h|--he|--hel|--help) echo "\ $0 [OPTION]... PROGRAM [ARGUMENT]... -Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an -error status if there is no known handling for PROGRAM. +Run 'PROGRAM [ARGUMENT]...', returning a proper advice when this fails due +to PROGRAM being missing or too old. Options: -h, --help display this help and exit -v, --version output version information and exit - --run try to run the given command, and emulate it if it fails Supported PROGRAM values: - aclocal touch file \`aclocal.m4' - autoconf touch file \`configure' - autoheader touch file \`config.h.in' - autom4te touch the output file, or create a stub one - automake touch all \`Makefile.in' files - bison create \`y.tab.[ch]', if possible, from existing .[ch] - flex create \`lex.yy.c', if possible, from existing .c - help2man touch the output file - lex create \`lex.yy.c', if possible, from existing .c - makeinfo touch the output file - tar try tar, gnutar, gtar, then tar without non-portable flags - yacc create \`y.tab.[ch]', if possible, from existing .[ch] + aclocal autoconf autoheader autom4te automake makeinfo + bison yacc flex lex help2man -Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and -\`g' are ignored when checking the name. +Version suffixes to PROGRAM as well as the prefixes 'gnu-', 'gnu', and +'g' are ignored when checking the name. Send bug reports to <bug-automake@gnu.org>." exit $? @@ -100,272 +70,141 @@ ;; -*) - echo 1>&2 "$0: Unknown \`$1' option" - echo 1>&2 "Try \`$0 --help' for more information" + echo 1>&2 "$0: unknown '$1' option" + echo 1>&2 "Try '$0 --help' for more information" exit 1 ;; esac -# normalize program name to check for. -program=`echo "$1" | sed ' - s/^gnu-//; t - s/^gnu//; t - s/^g//; t'` - -# Now exit if we have it, but it failed. Also exit now if we -# don't have it and --version was passed (most likely to detect -# the program). This is about non-GNU programs, so use $1 not -# $program. -case $1 in - lex*|yacc*) - # Not GNU programs, they don't have --version. - ;; - - tar*) - if test -n "$run"; then - echo 1>&2 "ERROR: \`tar' requires --run" - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - exit 1 - fi - ;; - - *) - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then - # We have it, but it failed. - exit 1 - elif test "x$2" = "x--version" || test "x$2" = "x--help"; then - # Could not run --version or --help. This is probably someone - # running `$TOOL --version' or `$TOOL --help' to check whether - # $TOOL exists and not knowing $TOOL uses missing. - exit 1 - fi - ;; -esac - -# If it does not exist, or fails to run (possibly an outdated version), -# try to emulate it. -case $program in - aclocal*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acinclude.m4' or \`${configure_ac}'. You might want - to install the \`Automake' and \`Perl' packages. Grab them from - any GNU archive site." - touch aclocal.m4 - ;; - - autoconf*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`${configure_ac}'. You might want to install the - \`Autoconf' and \`GNU m4' packages. Grab them from any GNU - archive site." - touch configure - ;; - - autoheader*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`acconfig.h' or \`${configure_ac}'. You might want - to install the \`Autoconf' and \`GNU m4' packages. Grab them - from any GNU archive site." - files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}` - test -z "$files" && files="config.h" - touch_files= - for f in $files; do - case $f in - *:*) touch_files="$touch_files "`echo "$f" | - sed -e 's/^[^:]*://' -e 's/:.*//'`;; - *) touch_files="$touch_files $f.in";; - esac - done - touch $touch_files - ;; - - automake*) - echo 1>&2 "\ -WARNING: \`$1' is $msg. You should only need it if - you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'. - You might want to install the \`Automake' and \`Perl' packages. - Grab them from any GNU archive site." - find . -type f -name Makefile.am -print |
View file
bashdb-4.4-0.92.tar.bz2/test-driver
Added
@@ -0,0 +1,139 @@ +#! /bin/sh +# test-driver - basic testsuite driver script. + +scriptversion=2013-07-13.22; # UTC + +# Copyright (C) 2011-2013 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. + +# As a special exception to the GNU General Public License, if you +# distribute this file as part of a program that contains a +# configuration script generated by Autoconf, you may include it under +# the same distribution terms that you use for the rest of that program. + +# This file is maintained in Automake, please report +# bugs to <bug-automake@gnu.org> or send patches to +# <automake-patches@gnu.org>. + +# Make unconditional expansion of undefined variables an error. This +# helps a lot in preventing typo-related bugs. +set -u + +usage_error () +{ + echo "$0: $*" >&2 + print_usage >&2 + exit 2 +} + +print_usage () +{ + cat <<END +Usage: + test-driver --test-name=NAME --log-file=PATH --trs-file=PATH + [--expect-failure={yes|no}] [--color-tests={yes|no}] + [--enable-hard-errors={yes|no}] [--] + TEST-SCRIPT [TEST-SCRIPT-ARGUMENTS] +The '--test-name', '--log-file' and '--trs-file' options are mandatory. +END +} + +test_name= # Used for reporting. +log_file= # Where to save the output of the test script. +trs_file= # Where to save the metadata of the test run. +expect_failure=no +color_tests=no +enable_hard_errors=yes +while test $# -gt 0; do + case $1 in + --help) print_usage; exit $?;; + --version) echo "test-driver $scriptversion"; exit $?;; + --test-name) test_name=$2; shift;; + --log-file) log_file=$2; shift;; + --trs-file) trs_file=$2; shift;; + --color-tests) color_tests=$2; shift;; + --expect-failure) expect_failure=$2; shift;; + --enable-hard-errors) enable_hard_errors=$2; shift;; + --) shift; break;; + -*) usage_error "invalid option: '$1'";; + *) break;; + esac + shift +done + +missing_opts= +test x"$test_name" = x && missing_opts="$missing_opts --test-name" +test x"$log_file" = x && missing_opts="$missing_opts --log-file" +test x"$trs_file" = x && missing_opts="$missing_opts --trs-file" +if test x"$missing_opts" != x; then + usage_error "the following mandatory options are missing:$missing_opts" +fi + +if test $# -eq 0; then + usage_error "missing argument" +fi + +if test $color_tests = yes; then + # Keep this in sync with 'lib/am/check.am:$(am__tty_colors)'. + red='[0;31m' # Red. + grn='[0;32m' # Green. + lgn='[1;32m' # Light green. + blu='[1;34m' # Blue. + mgn='[0;35m' # Magenta. + std='[m' # No color. +else + red= grn= lgn= blu= mgn= std= +fi + +do_exit='rm -f $log_file $trs_file; (exit $st); exit $st' +trap "st=129; $do_exit" 1 +trap "st=130; $do_exit" 2 +trap "st=141; $do_exit" 13 +trap "st=143; $do_exit" 15 + +# Test script is run here. +"$@" >$log_file 2>&1 +estatus=$? +if test $enable_hard_errors = no && test $estatus -eq 99; then + estatus=1 +fi + +case $estatus:$expect_failure in + 0:yes) col=$red res=XPASS recheck=yes gcopy=yes;; + 0:*) col=$grn res=PASS recheck=no gcopy=no;; + 77:*) col=$blu res=SKIP recheck=no gcopy=yes;; + 99:*) col=$mgn res=ERROR recheck=yes gcopy=yes;; + *:yes) col=$lgn res=XFAIL recheck=no gcopy=yes;; + *:*) col=$red res=FAIL recheck=yes gcopy=yes;; +esac + +# Report outcome to console. +echo "${col}${res}${std}: $test_name" + +# Register the test result, and other relevant metadata. +echo ":test-result: $res" > $trs_file +echo ":global-test-result: $res" >> $trs_file +echo ":recheck: $recheck" >> $trs_file +echo ":copy-in-global-log: $gcopy" >> $trs_file + +# Local Variables: +# mode: shell-script +# sh-indentation: 2 +# eval: (add-hook 'write-file-hooks 'time-stamp) +# time-stamp-start: "scriptversion=" +# time-stamp-format: "%:y-%02m-%02d.%02H" +# time-stamp-time-zone: "UTC" +# time-stamp-end: "; # UTC" +# End:
View file
bashdb-4.2-0.8.tar.bz2/test/Makefile.in -> bashdb-4.4-0.92.tar.bz2/test/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,6 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -34,30 +78,70 @@ build_triplet = @build@ host_triplet = @host@ subdir = test -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am README ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \ - html-recursive info-recursive install-data-recursive \ - install-dvi-recursive install-exec-recursive \ - install-html-recursive install-info-recursive \ - install-pdf-recursive install-ps-recursive install-recursive \ - installcheck-recursive installdirs-recursive pdf-recursive \ - ps-recursive uninstall-recursive +RECURSIVE_TARGETS = all-recursive check-recursive cscopelist-recursive \ + ctags-recursive dvi-recursive html-recursive info-recursive \ + install-data-recursive install-dvi-recursive \ + install-exec-recursive install-html-recursive \ + install-info-recursive install-pdf-recursive \ + install-ps-recursive install-recursive installcheck-recursive \ + installdirs-recursive pdf-recursive ps-recursive \ + tags-recursive uninstall-recursive +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \ distclean-recursive maintainer-clean-recursive -AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \ - $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \ +am__recursive_targets = \ + $(RECURSIVE_TARGETS) \ + $(RECURSIVE_CLEAN_TARGETS) \ + $(am__extra_recursive_targets) +AM_RECURSIVE_TARGETS = $(am__recursive_targets:-recursive=) TAGS CTAGS \ distdir +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +# Read a list of newline-separated strings from the standard input, +# and print each of them once, without duplicates. Input order is +# *not* preserved. +am__uniquify_input = $(AWK) '\ + BEGIN { nonempty = 0; } \ + { items[$$0] = 1; nonempty = 1; } \ + END { if (nonempty) { for (i in items) print i; }; } \ +' +# Make sure the list of sources is unique. This is necessary because, +# e.g., the same source file might be shared among _SOURCES variables +# for different programs/libraries. +am__define_uniq_tagged_files = \ + list='$(am__tagged_files)'; \ + unique=`for i in $$list; do \ + if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ + done | $(am__uniquify_input)` ETAGS = etags CTAGS = ctags DIST_SUBDIRS = $(SUBDIRS) @@ -90,6 +174,7 @@ ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -109,6 +194,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -135,6 +221,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -150,6 +237,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -166,6 +254,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -198,7 +287,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -260,22 +348,25 @@ -rm -rf .libs _libs # This directory's subdirectories are mostly independent; you can cd
View file
bashdb-4.2-0.8.tar.bz2/test/data/Makefile.am -> bashdb-4.4-0.92.tar.bz2/test/data/Makefile.am
Changed
@@ -1,4 +1,4 @@ -# FIXME: we don't use a wildcard here because it messes up on +# FIXME: we don't use a wildcard here because it messes up on # file: file\ with\ spaces.cmd and file\ with\ spaces.right check_DATA = \ action.cmd \ @@ -11,6 +11,12 @@ brkpt3.right \ bug-args.cmd \ bug-args.right \ + bug-break.cmd \ + bug-break.right \ + bug-clear.cmd \ + bug-clear.right \ + bug-loc.cmd \ + bug-loc.right \ bug-source.cmd \ bug-source.right \ bug-step.cmd \ @@ -74,8 +80,11 @@ settrace.cmd \ settrace.right \ sig.cmd \ + sig-43.cmd \ + sig-43.right \ sig.right \ sig-Darwin.right \ + sig-43.right \ skip.cmd \ skip.right \ sopts.right \
View file
bashdb-4.2-0.8.tar.bz2/test/data/Makefile.in -> bashdb-4.4-0.92.tar.bz2/test/data/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,6 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -34,22 +78,43 @@ build_triplet = @build@ host_triplet = @host@ subdir = test/data -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am README ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -69,6 +134,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -95,6 +161,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -110,6 +177,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -126,6 +194,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -158,7 +227,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -175,7 +243,7 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -# FIXME: we don't use a wildcard here because it messes up on +# FIXME: we don't use a wildcard here because it messes up on # file: file\ with\ spaces.cmd and file\ with\ spaces.right check_DATA = \ action.cmd \ @@ -188,6 +256,12 @@ brkpt3.right \ bug-args.cmd \ bug-args.right \ + bug-break.cmd \ + bug-break.right \ + bug-clear.cmd \ + bug-clear.right \ + bug-loc.cmd \ + bug-loc.right \ bug-source.cmd \ bug-source.right \ bug-step.cmd \ @@ -251,8 +325,11 @@ settrace.cmd \ settrace.right \ sig.cmd \ + sig-43.cmd \ + sig-43.right \ sig.right \ sig-Darwin.right \ + sig-43.right \ skip.cmd \ skip.right \ sopts.right \ @@ -314,11 +391,11 @@ clean-libtool: -rm -rf .libs _libs -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist:
View file
bashdb-4.2-0.8.tar.bz2/test/data/action.right -> bashdb-4.4-0.92.tar.bz2/test/data/action.right
Changed
@@ -3,25 +3,27 @@ +set basename on Show short filenames (the basename) in debug output is on. +# Debugger test of action command -+# ++# +# Show actions -+a ++a No actions have been set. +# Delete actions when there are none -+A ++A ** No actions to delete. +# Try a simple action action... +a 23 x=60 Action 1 set in file dbg-test1.sh, line 23. -+L ++L No breakpoints have been set. No watch expressions have been set. Actions at following places: Num Enb Stmt file:line +------------------------------------ 1 1 x=60 dbg-test1.sh:23 -+a ++a Actions at following places: Num Enb Stmt file:line +------------------------------------ 1 1 x=60 dbg-test1.sh:23 +cont 24 One-time breakpoint 1 set in file dbg-test1.sh, line 24. @@ -29,5 +31,5 @@ 24: for i in 0 1 3 ; do +print "value of x is now $x" value of x is now 60 -+quit ++quit bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/brkpt1.right -> bashdb-4.4-0.92.tar.bz2/test/data/brkpt1.right
Changed
@@ -8,6 +8,7 @@ Breakpoint 1 set in file dbg-test1.sh, line 22. +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:22 +############################################################### +#### Test enable/disable... @@ -25,6 +26,7 @@ +# list breakpoints +L Num Type Disp Enb What +---------------------------- 1 breakpoint keep n dbg-test1.sh:22 No watch expressions have been set. No actions have been set. @@ -36,13 +38,14 @@ +############################################################### +#### Test display status... +delete 1 -Removed 1 breakpoint(s). +Deleted breakpoint 1 +info break No breakpoints have been set. +break 22 Breakpoint 2 set in file dbg-test1.sh, line 22. +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep y dbg-test1.sh:22 +############################################################### +#### *** Test using file:line format on break... @@ -56,11 +59,12 @@ Breakpoint 4 set in file dbg-test1.sh, line 23. +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep y dbg-test1.sh:22 3 breakpoint keep y dbg-test1.sh:23 4 breakpoint keep y dbg-test1.sh:23 +delete 3 -Removed 1 breakpoint(s). +Deleted breakpoint 3 +############################################################### +#### Test breakpoints with conditions... +break 23 if x==0 @@ -69,6 +73,7 @@ Breakpoint 6 set in file dbg-test1.sh, line 24. +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep y dbg-test1.sh:22 4 breakpoint keep y dbg-test1.sh:23 5 breakpoint keep y dbg-test1.sh:23 @@ -81,6 +86,7 @@ ** condition: Argument required (breakpoint number). +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep y dbg-test1.sh:22 4 breakpoint keep y dbg-test1.sh:23 5 breakpoint keep y dbg-test1.sh:23 @@ -100,6 +106,7 @@ Breakpoint entry 5 disabled. +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep n dbg-test1.sh:22 4 breakpoint keep y dbg-test1.sh:23 5 breakpoint keep n dbg-test1.sh:23 @@ -110,7 +117,8 @@ Breakpoint entry 2 enabled. ** Breakpoint entry 6 already enabled, so nothing done. +delete 2 6 -Removed 2 breakpoint(s). +Deleted breakpoint 2 +Deleted breakpoint 6 +#### Test info break... +info break 11 ** Breakpoint entry 11 is not set. @@ -118,6 +126,7 @@ ** Bad breakpoint number foo. +info break 5 Num Type Disp Enb What +---------------------------- 5 breakpoint keep n dbg-test1.sh:23 stop only if x==0 +d 23
View file
bashdb-4.2-0.8.tar.bz2/test/data/brkpt2.right -> bashdb-4.4-0.92.tar.bz2/test/data/brkpt2.right
Changed
@@ -7,6 +7,7 @@ Breakpoint 1 set in file dbg-test1.sh, line 23. +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 +continue Breakpoint 1 hit (1 times). @@ -23,6 +24,7 @@ 0: ($x)==22 arith: 0 +info watchpoints Num Type Enb Expression +------------------------------ 0 watchpoint y $x +c Watchpoint 0: $x changed: @@ -42,6 +44,7 @@ 1: (x > 26)==0 arith: 1 +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 breakpoint already hit 1 time +### Continuing with a one-time line break (but will watch expression)... @@ -54,10 +57,12 @@ 28: y=b +L Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 breakpoint already hit 1 time 2 breakpoint del y dbg-test1.sh:30 Num Type Enb Expression +------------------------------ 0 watchpoint n $x breakpoint already hit 1 time 1 watchpoint y x > 26 @@ -67,10 +72,12 @@ +delete 1W +L Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 breakpoint already hit 1 time 2 breakpoint del y dbg-test1.sh:30 Num Type Enb Expression +------------------------------ 0 watchpoint n $x breakpoint already hit 1 time No actions have been set. @@ -95,12 +102,14 @@ fn1 +L Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 breakpoint already hit 1 time 3 breakpoint keep y dbg-test1.sh:5 breakpoint already hit 1 time 4 breakpoint del y dbg-test1.sh:34 Num Type Enb Expression +------------------------------ 0 watchpoint n $x breakpoint already hit 1 time No actions have been set. @@ -226,6 +235,7 @@ Breakpoint entry 5 disabled. +L Num Type Disp Enb What +---------------------------- 1 breakpoint keep y dbg-test1.sh:23 breakpoint already hit 1 time 3 breakpoint keep y dbg-test1.sh:5 @@ -233,6 +243,7 @@ 5 breakpoint del n dbg-test1.sh:35 6 breakpoint keep y dbg-test1.sub:11 Num Type Enb Expression +------------------------------ 0 watchpoint n $x breakpoint already hit 1 time No actions have been set.
View file
bashdb-4.2-0.8.tar.bz2/test/data/brkpt3.right -> bashdb-4.4-0.92.tar.bz2/test/data/brkpt3.right
Changed
@@ -13,7 +13,7 @@ +pr "BASH_SUBSHELL: $BASH_SUBSHELL" BASH_SUBSHELL: 1 +delete 1 -Removed 1 breakpoint(s). +Deleted breakpoint 1 +break 17 Breakpoint 2 set in file subshell.sh, line 17. +cont
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-break.cmd
Added
@@ -0,0 +1,16 @@ +set trace-co on +# Test bug we had where "break" wasn't clearing out the "next-over-fn" flag. +# +next +next +break fibonacci +continue +bt +delete 1 +c +quit + + + + +
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-break.right
Added
@@ -0,0 +1,29 @@ +(fib.sh:3): +3: version="0.01"; ++# Test bug we had where "break" wasn't clearing out the "next-over-fn" flag. ++# ++next +(fib.sh:16): +16: for i in 1 2 ++next +(fib.sh:18): +18: result=$(fibonacci $i) ++break fibonacci +Breakpoint 1 set in file fib.sh, line 5. ++continue +i=1 result=Breakpoint 1 hit (1 times). +(fib.sh:5): +5: fibonacci() { ++bt +->0 in file `fib.sh' at line 5 +##1 fibonacci("1") called from file `fib.sh' at line 18 +##2 source("fib.sh") called from file `bashdb' at line 96 +##3 main() called from file `bashdb' at line 0 ++delete 1 +Deleted breakpoint 1 ++c +1 +i=2 result=1 +Debugged program terminated normally. Use q to quit or R to restart. ++quit +bashdb: That's all, folks...
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-clear.cmd
Added
@@ -0,0 +1,13 @@ +set trace-co on +# Test bug we had where clearing a break on one line +# was disabling a break on the next one +# + +break 3 +break 5 +break 7 +clear 5 +continue +continue +# Should have stopped at line 7 above +quit
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-clear.right
Added
@@ -0,0 +1,30 @@ +(bug-clear.sh:2): +2: echo line 2 ++# Test bug we had where clearing a break on one line ++# was disabling a break on the next one ++# ++ ++break 3 +Breakpoint 1 set in file bug-clear.sh, line 3. ++break 5 +Breakpoint 2 set in file bug-clear.sh, line 5. ++break 7 +Breakpoint 3 set in file bug-clear.sh, line 7. ++clear 5 +Removed 1 breakpoint(s). ++continue +line 2 +Breakpoint 1 hit (1 times). +(bug-clear.sh:3): +3: echo line 3 ++continue +line 3 +line 4 +line 5 +line 6 +Breakpoint 3 hit (1 times). +(bug-clear.sh:7): +7: echo line 7 ++# Should have stopped at line 7 above ++quit +bashdb: That's all, folks...
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-loc.cmd
Added
@@ -0,0 +1,10 @@ +set trace-commands on +# Test to see that we read in files that mentioned in breakpoints +# but we don't step into. +step +step +step +step +step +step +quit
View file
bashdb-4.4-0.92.tar.bz2/test/data/bug-loc.right
Added
@@ -0,0 +1,26 @@ +(bug-loc.sh:5): +5: [34mdirname[39;49;00m=[39;49;00m[33m${[39;49;00m[34mBASH_SOURCE[39;49;00m%/*[39;49;00m[33m}[39;49;00m [39;49;00m[33m# equivalent to dirname($0)[39;49;00m ++# Test to see that we read in files that mentioned in breakpoints ++# but we don't step into. ++step +(bug-loc.sh:6): +6: [36msource[39;49;00m [39;49;00m[33m${[39;49;00m[34mdirname[39;49;00m[33m}[39;49;00m/library.sh[39;49;00m ++step +(bug-loc.sh:7): +7: [36mecho[39;49;00m [39;49;00m[33m'script line 7'[39;49;00m ++step +script line 7 +(bug-loc.sh:8): +8: library-function[39;49;00m ++step +(library.sh:1): +1: library-function[39;49;00m([39;49;00m)[39;49;00m [39;49;00m{[39;49;00m ++step +(library.sh:2): +2: [39;49;00m[36mecho[39;49;00m [39;49;00m[33m'library line 2 in library-function'[39;49;00m ++step +library line 2 in library-function +(bug-loc.sh:11): +11: [36mecho[39;49;00m [39;49;00m[33m'script line 11'[39;49;00m ++quit +bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/bug-step.cmd -> bashdb-4.4-0.92.tar.bz2/test/data/bug-step.cmd
Changed
@@ -1,5 +1,5 @@ set trace-co on -# Test bug we had where "step" wasn't clearing out the "next" flag. +# Test bug we had where "step" wasn't clearing out the "next-over-fn" flag. # next step
View file
bashdb-4.2-0.8.tar.bz2/test/data/bug-step.right -> bashdb-4.4-0.92.tar.bz2/test/data/bug-step.right
Changed
@@ -1,6 +1,6 @@ (bug-step.sh:2): 2: echo "Start" -+# Test bug we had where "step" wasn't clearing out the "next" flag. ++# Test bug we had where "step" wasn't clearing out the "next-over-fn" flag. +# +next Start
View file
bashdb-4.2-0.8.tar.bz2/test/data/complete.right -> bashdb-4.4-0.92.tar.bz2/test/data/complete.right
Changed
@@ -12,14 +12,14 @@ finish +complete set a set annotate -set autoeval set args +set autoeval set autolist +complete show a show alias show annotate -show autoeval show args +show autoeval show autolist +complete set an set annotate @@ -27,8 +27,7 @@ set args +complete show args1 +complete bogus command +bogus commands +complete info f -info files -info functions bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/delete.right -> bashdb-4.4-0.92.tar.bz2/test/data/delete.right
Changed
@@ -13,11 +13,12 @@ ** No breakpoint number 4. +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y stepping.sh:4 +############################### +# Should work +delete 1 -Removed 1 breakpoint(s). +Deleted breakpoint 1 +info break No breakpoints have been set. +############################### @@ -41,13 +42,15 @@ ->0 in file `stepping.sh' at line 5 +info break Num Type Disp Enb What +---------------------------- 2 breakpoint keep y stepping.sh:5 +break 6 Breakpoint 3 set in file stepping.sh, line 6. +############################### +# try deleting multiple breakpoints +delete 2 3 -Removed 2 breakpoint(s). +Deleted breakpoint 2 +Deleted breakpoint 3 +info break No breakpoints have been set. +###############################
View file
bashdb-4.2-0.8.tar.bz2/test/data/enable.right -> bashdb-4.4-0.92.tar.bz2/test/data/enable.right
Changed
@@ -1,12 +1,13 @@ (nexting.sh:5): -5: p -+############################### +5: p ++############################### +break 5 Breakpoint 1 set in file nexting.sh, line 5. +break 3 Breakpoint 2 set in file nexting.sh, line 3. +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y nexting.sh:5 2 breakpoint keep y nexting.sh:3 +disable 1 @@ -17,12 +18,13 @@ +# Invalid disable +disable 10 ** Breakpoint entry 10 doesn't exist, so nothing done. -+continue ++continue Breakpoint 2 hit (1 times). (nexting.sh:3): 3: p() { echo ${BASH_SOURCE[1]##*/}:${BASH_LINENO[0]}; echo '==='; } +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep n nexting.sh:5 2 breakpoint keep y nexting.sh:3 +enable 1 @@ -36,7 +38,7 @@ Breakpoint 3 set in file nexting.sh, line 6. +enable 10 ** Breakpoint entry 10 doesn't exist, so nothing done. -+continue ++continue nexting.sh:5 === Breakpoint 3 hit (1 times). @@ -45,6 +47,7 @@ +# Should get back to 6 +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y nexting.sh:5 2 breakpoint keep n nexting.sh:3 3 breakpoint keep y nexting.sh:6 @@ -53,7 +56,7 @@ It stopped at breakpoint 3. Next statement to be run is: p -+c ++c nexting.sh:6 === Breakpoint 3 hit (2 times). @@ -61,6 +64,7 @@ 6: p ; x=6 +info break Num Type Disp Enb What +---------------------------- 1 breakpoint keep y nexting.sh:5 2 breakpoint keep n nexting.sh:3 3 breakpoint keep y nexting.sh:6 @@ -70,5 +74,5 @@ It stopped at breakpoint 3. Next statement to be run is: x=6 -+quit ++quit bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/frame.cmd -> bashdb-4.4-0.92.tar.bz2/test/data/frame.cmd
Changed
@@ -9,7 +9,7 @@ frame 0 bt 2 # How about after moving? -u +up where 2 down where 2
View file
bashdb-4.2-0.8.tar.bz2/test/data/frame.right -> bashdb-4.4-0.92.tar.bz2/test/data/frame.right
Changed
@@ -20,7 +20,7 @@ ->0 in file `hanoi.sh' at line 12 ##1 hanoi("3", "a", "b", "c") called from file `hanoi.sh' at line 42 +# How about after moving? -+u ++up ->1 in file `hanoi.sh' at line 42 (hanoi.sh:42): 42: hanoi $max "a" "b" "c"
View file
bashdb-4.2-0.8.tar.bz2/test/data/misc-output-41.right -> bashdb-4.4-0.92.tar.bz2/test/data/misc-output-41.right
Changed
@@ -66,6 +66,7 @@ +#### help commands... +help Available commands: +------------------- action continue eval history quit signal tty alias debug examine info return skip unalias backtrace delete export kill reverse source undisplay @@ -92,7 +93,8 @@ set listsize -- Set number of source lines bashdb will list by default. set prompt -- bashdb's prompt is: "$_Dbg_debugger_name${_Dbg_less}${#_Dbg_history[@]}${_Dbg_greater}$_Dbg_space". -set showcommand -- Set showing the command to execute is auto. +set showcommand -- Set showing the command to execute is auto. +set tty -- Debugger output goes to . set width -- Set maximum width of lines is 75. +help set foo ** There is no "set foo" command. @@ -119,7 +121,9 @@ +help tty tty -Set the output device for debugger output. +Set the output device for debugger output. Use "&1" if you want debugger +output to go to STDOUT. + +help info List of info subcommands:
View file
bashdb-4.2-0.8.tar.bz2/test/data/misc.right -> bashdb-4.4-0.92.tar.bz2/test/data/misc.right
Changed
@@ -22,20 +22,20 @@ +# Test a profile +print "prof1.cmd called" prof1.cmd called -+######################################### ++######################################### +#### Test that ARGs are correct... +print "_Dbg_arg#: ${#_Dbg_arg[@]}" _Dbg_arg#: 0 +print "\$1: $1" -$1: +$1: +print "\$2: $2" -$2: -+######################################### +$2: ++######################################### +#### Testing script args... +## FIXME: +## info args -+######################################### -+tty ++######################################### ++tty Argument required (terminal name for running target process). +#### *** GNU things... +info warranty @@ -63,13 +63,14 @@ POSSIBILITY OF SUCH DAMAGES. +#### help commands... -+help ++help Available commands: +------------------- / debug enable help next show step- untrace - alias delete eval history print signal tbreak up - break disable examine info pwd skip trace watch - commands display file kill quit source tty where - condition down frame list restart step unalias + alias delete eval history print signal tbreak up + break disable examine info pwd skip trace watch + commands display file kill quit source tty where + condition down frame list restart step unalias continue edit handle load set step+ undisplay Readline command line editing (emacs/vi mode) is available. @@ -121,13 +122,13 @@ info terminal -- Print terminal device info variables -- All global and static variable names info warranty -- Various kinds of warranty you do not have -+info ++info Info subcommands are: - args display functions source stack variables + args display functions source stack variables breakpoints files program sources terminal watchpoints +#### history... -+H -28: info ++H +28: info 27: help info 26: help tty 25: help set editing @@ -137,9 +138,9 @@ 21: help set ar 20: help set foo 19: help set -18: help +18: help 17: info warranty -16: tty +16: tty 15: print "\$2: $2" 14: print "\$1: $1" 13: print "_Dbg_arg#: ${#_Dbg_arg[@]}" @@ -168,10 +169,10 @@ 4: set trace-commands on 3: source ../data/prof1.cmd +history 11 -+!11 -+!19:p ++!11 ++!19:p 19: help set -+!-3:p ++!-3:p 27: help info +! -2 List of info subcommands: @@ -191,12 +192,12 @@ info warranty -- Various kinds of warranty you do not have +! 2 +H -2 -28: info +28: info 27: help info +H foo Invalid history number: foo +H 100000 -28: info +28: info 27: help info 26: help tty 25: help set editing @@ -206,9 +207,9 @@ 21: help set ar 20: help set foo 19: help set -18: help +18: help 17: info warranty -16: tty +16: tty 15: print "\$2: $2" 14: print "\$1: $1" 13: print "_Dbg_arg#: ${#_Dbg_arg[@]}" @@ -244,11 +245,11 @@ +history 10000 ** Number 10000 (10000) should be less than 29 +#### pwd/cd commands... -+pwd ++pwd Working directory integration. +cd . Working directory integration. -+########################## ++########################## +#### Test 'prompt' and 'tty' ... +set prompt bashdb${_Dbg_greater}$_Dbg_hi${_Dbg_less}$_Dbg_space +show prompt
View file
bashdb-4.2-0.8.tar.bz2/test/data/setshow.right -> bashdb-4.4-0.92.tar.bz2/test/data/setshow.right
Changed
@@ -293,9 +293,9 @@ +show badcommand ** Unknown show subcommand: badcommand ** Show subcommands are: -** alias autoeval commands different highlight prompt width -** annotate autolist copying directories history version -** args basename debug editing listsize warranty +** alias autoeval commands different highlight prompt warranty +** annotate autolist copying directories history tty width +** args basename debug editing listsize version +another-bad-command ** Undefined command "another-bad-command". Try "help". +show @@ -317,6 +317,7 @@ listsize : Number of source lines bashdb will list by default is 10. prompt : bashdb's prompt is: "$_Dbg_debugger_name${_Dbg_less}${#_Dbg_history[@]}${_Dbg_greater}$_Dbg_space". +show tty : Debugger output goes to version : bashdb, release 1.0 width : Line width is 80. +show args
View file
bashdb-4.4-0.92.tar.bz2/test/data/sig-43.cmd
Added
@@ -0,0 +1,18 @@ +set trace-commands on +# Test that debugged program's signals are saved and restored across +# debug calls. +### Testing that we have our signal set up... +info signals +### Testing handle command... +handle TERM nostack +handle foo +handle 1000 +handle TERM bogus +eval kill -TERM $$ +### Should not have printed a stack trace above... +handle TERM noprint +handle TERM stack +handle INT nostop +info signals +quit +y
View file
bashdb-4.4-0.92.tar.bz2/test/data/sig-43.right
Added
@@ -0,0 +1,41 @@ +(sig.sh:7): +7: if [[ "$1"x != x ]] ; then ++# Test that debugged program's signals are saved and restored across ++# debug calls. ++### Testing that we have our signal set up... ++info signals +Signal Stop Print Stack Value +EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT +EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT +SIGINT stop print showstack trap -- '_Dbg_sig_handler 2 "$BASH_COMMAND" "$@"' SIGINT +SIGQUIT stop print showstack trap -- '_Dbg_sig_handler 3 "$BASH_COMMAND" "$@"' SIGQUIT +SIGILL stop print showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILL +SIGTRAP stop print showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAP +SIGTERM stop print showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM +SIGXFSZ nostop noprint nostack trap -- '' SIGXFSZ ++### Testing handle command... ++handle TERM nostack ++handle foo +** Bad signal name: foo ++handle 1000 +** Bad signal number: 1000 ++handle TERM bogus +** Need to give a command: stop, nostop, stack, nostack, print, noprint ++eval kill -TERM $$ +Program received signal SIGTERM (15)... ++### Should not have printed a stack trace above... ++handle TERM noprint ++handle TERM stack ++handle INT nostop ++info signals +Signal Stop Print Stack Value +EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT +EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT +SIGINT nostop print showstack trap -- '_Dbg_sig_handler 2 "$BASH_COMMAND" "$@"' SIGINT +SIGQUIT stop print showstack trap -- '_Dbg_sig_handler 3 "$BASH_COMMAND" "$@"' SIGQUIT +SIGILL stop print showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILL +SIGTRAP stop print showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAP +SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM +SIGXFSZ nostop noprint nostack trap -- '' SIGXFSZ ++quit +bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/sig-Darwin.right -> bashdb-4.4-0.92.tar.bz2/test/data/sig-Darwin.right
Changed
@@ -1,5 +1,5 @@ (sig.sh:7): -7: if [[ "$1"x != x ]] ; then +7: if [[ "$1"x != x ]] ; then +# Test that debugged program's signals are saved and restored across +# debug calls. +### Testing that we have our signal set up... @@ -15,11 +15,11 @@ +### Testing handle command... +handle TERM nostack +handle foo -Bad signal name: foo +** Bad signal name: foo +handle 1000 -Bad signal number: 1000 +** Bad signal number: 1000 +handle TERM bogus -Need to give a command: stop, nostop, stack, nostack, print, noprint +** Need to give a command: stop, nostop, stack, nostack, print, noprint +eval kill -TERM $$ Program received signal SIGTERM (15)... +### Should not have printed a stack trace above... @@ -27,6 +27,22 @@ +handle TERM stack +handle INT nostop +eval kill -TERM $$ +Program received signal SIGTERM (15)... +->0 in file `bashdb_eval_5040' at line 1 +##1 source("bashdb_eval_5040") called from file `eval.sh' at line 100 +##2 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 293 +##3 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 202 +##4 _Dbg_process_commands() called from file `hook.sh' at line 266 +##5 _Dbg_hook_enter_debugger("on receiving a signal", "noprint") called from file `sig.sh' at line 202 +##6 _Dbg_sig_handler("15", "[[ "$1"x != x ]]") called from file `bashdb_eval_5040' at line 1 +##7 source("bashdb_eval_5040") called from file `eval.sh' at line 100 +##8 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 293 +##9 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 202 +##10 _Dbg_process_commands() called from file `hook.sh' at line 266 +##11 _Dbg_hook_enter_debugger("after being stepped") called from file `hook.sh' at line 182 +##12 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 +##13 source("sig.sh") called from file `bashdb' at line 96 +##14 main() called from file `bashdb' at line 0 +info signals Signal Stop Print Stack Value EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT @@ -36,28 +52,6 @@ SIGILL stop print showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILL SIGTRAP stop print showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAP SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM -+continue -Program received signal SIGTERM (15)... -->0 in file `eval.sh' at line 1 -##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 253 -##2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 179 -##3 _Dbg_process_commands() called from file `hook.sh' at line 264 -##4 _Dbg_hook_enter_debugger("after being stepped") called from file `hook.sh' at line 179 -##5 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 -##6 source("sig.sh") called from file `bashdb' at line 140 -##7 main() called from file `bashdb' at line 0 -+### Should have printed a stack trace above... -+continue -+where 1 -->0 in file `sig.sh' at line 1 -+continue -Program received signal SIGINT (2)... -->0 in file `sig.sh' at line 1 -##1 source("sig.sh") called from file `bashdb' at line 157 -##2 main() called from file `bashdb' at line 0 -Program received signal SIGINT (2)... -->0 in file `sig.sh' at line 1 -##1 source("sig.sh") called from file `bashdb' at line 157 -##2 main() called from file `bashdb' at line 0 -Debugged program terminated normally. Use q to quit or R to restart. -+kill ++continue +$? is 0 +$? is 0
View file
bashdb-4.2-0.8.tar.bz2/test/data/sig.cmd -> bashdb-4.4-0.92.tar.bz2/test/data/sig.cmd
Changed
@@ -7,7 +7,7 @@ handle TERM nostack handle foo handle 1000 -handle TERM bogus +handle TERM bogus eval kill -TERM $$ ### Should not have printed a stack trace above... handle TERM noprint @@ -18,6 +18,5 @@ continue ### Should have printed a stack trace above... where 1 -kill +quit y -
View file
bashdb-4.2-0.8.tar.bz2/test/data/sig.right -> bashdb-4.4-0.92.tar.bz2/test/data/sig.right
Changed
@@ -1,5 +1,5 @@ (sig.sh:7): -7: if [[ "$1"x != x ]] ; then +7: if [[ "$1"x != x ]] ; then +# Test that debugged program's signals are saved and restored across +# debug calls. +### Testing that we have our signal set up... @@ -12,6 +12,7 @@ SIGILL stop print showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILL SIGTRAP stop print showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAP SIGTERM stop print showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM +SIGXFSZ nostop noprint nostack trap -- '' SIGXFSZ +### Testing handle command... +handle TERM nostack +handle foo @@ -27,7 +28,22 @@ +handle TERM stack +handle INT nostop +eval kill -TERM $$ -$? is 0 +Program received signal SIGTERM (15)... +->0 in file `bashdb_eval_5040' at line 1 +##1 source("bashdb_eval_5040") called from file `eval.sh' at line 100 +##2 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 293 +##3 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 202 +##4 _Dbg_process_commands() called from file `hook.sh' at line 266 +##5 _Dbg_hook_enter_debugger("on receiving a signal", "noprint") called from file `sig.sh' at line 202 +##6 _Dbg_sig_handler("15", "[[ "$1"x != x ]]") called from file `bashdb_eval_5040' at line 1 +##7 source("bashdb_eval_5040") called from file `eval.sh' at line 100 +##8 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 293 +##9 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 202 +##10 _Dbg_process_commands() called from file `hook.sh' at line 266 +##11 _Dbg_hook_enter_debugger("after being stepped") called from file `hook.sh' at line 182 +##12 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 +##13 source("sig.sh") called from file `bashdb' at line 96 +##14 main() called from file `bashdb' at line 0 +info signals Signal Stop Print Stack Value EXIT stop noprint nostack trap -- '_Dbg_exit_handler "$BASH_COMMAND"' EXIT @@ -37,17 +53,21 @@ SIGILL stop print showstack trap -- '_Dbg_sig_handler 4 "$BASH_COMMAND" "$@"' SIGILL SIGTRAP stop print showstack trap -- '_Dbg_sig_handler 5 "$BASH_COMMAND" "$@"' SIGTRAP SIGTERM stop noprint showstack trap -- '_Dbg_sig_handler 15 "$BASH_COMMAND" "$@"' SIGTERM -+continue -Program received signal SIGTERM (15)... -->0 in file `eval.sh' at line 55 -##1 _Dbg_do_eval("kill", "-TERM", "$$") called from file `processor.sh' at line 286 -##2 _Dbg_onecmd("eval", "kill -TERM $$") called from file `processor.sh' at line 195 -##3 _Dbg_process_commands() called from file `hook.sh' at line 263 -##4 _Dbg_hook_enter_debugger("after being stepped") called from file `hook.sh' at line 179 -##5 _Dbg_debug_trap_handler("0", "[[ "$1"x != x ]]") called from file `sig.sh' at line 7 -##6 source("sig.sh") called from file `bashdb' at line 96 -##7 main() called from file `bashdb' at line 0 +SIGXFSZ nostop noprint nostack trap -- '' SIGXFSZ ++continue +$? is 0 +$? is 0 +Program received signal SIGINT (2)... +->0 in file `sig.sh' at line 55 +##1 source("sig.sh") called from file `bashdb' at line 96 +##2 main() called from file `bashdb' at line 0 +Program received signal SIGINT (2)... +->0 in file `sig.sh' at line 55 +##1 source("sig.sh") called from file `bashdb' at line 96 +##2 main() called from file `bashdb' at line 0 +Debugged program terminated normally. Use q to quit or R to restart. +### Should have printed a stack trace above... +where 1 -->0 in file `eval.sh' at line 55 -+kill +** The program is not being run. ++quit +bashdb: That's all, folks...
View file
bashdb-4.2-0.8.tar.bz2/test/data/tbreak.right -> bashdb-4.4-0.92.tar.bz2/test/data/tbreak.right
Changed
@@ -7,6 +7,7 @@ One-time breakpoint 1 set in file dbg-test1.sh, line 23. +info break Num Type Disp Enb What +---------------------------- 1 breakpoint del y dbg-test1.sh:23 +### continue to line 23... +cont @@ -24,6 +25,7 @@ One-time breakpoint 3 set in file dbg-test1.sh, line 17. +L Num Type Disp Enb What +---------------------------- 2 breakpoint del y dbg-test1.sh:25 3 breakpoint del y dbg-test1.sh:17 No watch expressions have been set. @@ -33,6 +35,7 @@ 25: ((x += i)) +L Num Type Disp Enb What +---------------------------- 3 breakpoint del y dbg-test1.sh:17 No watch expressions have been set. No actions have been set.
View file
bashdb-4.2-0.8.tar.bz2/test/data/watch1.right -> bashdb-4.4-0.92.tar.bz2/test/data/watch1.right
Changed
@@ -14,6 +14,7 @@ 0: ($xx)==1 arith: 0 +info watch Num Type Enb Expression +------------------------------ 0 watchpoint y $xx +# +# Now try enable and disable @@ -24,6 +25,7 @@ +L No breakpoints have been set. Num Type Enb Expression +------------------------------ 0 watchpoint y $xx No actions have been set. +disable 0W @@ -31,6 +33,7 @@ +L No breakpoints have been set. Num Type Enb Expression +------------------------------ 0 watchpoint n $xx No actions have been set. +### Try deleting nonexistent watchpoint... @@ -42,11 +45,13 @@ 1: (y > 25)==0 arith: 1 +info watch Num Type Enb Expression +------------------------------ 0 watchpoint n $xx 1 watchpoint y y > 25 +delete 0w +info watch Num Type Enb Expression +------------------------------ 1 watchpoint y y > 25 +delete 1w +info watch @@ -57,7 +62,7 @@ +watch x 2: ($x)==22 arith: 0 +restart -B --nx -L ../.. -q -x ../data/restart2.cmd ../example/dbg-test1.sh -Restarting with: /src/external-cvs/bashdb-3.1/bashdb -B --nx -L ../.. -q -x ../data/restart2.cmd ../example/dbg-test1.sh +Restarting with: /src/external-vcs/sourceforge/bashdb/bashdb -B --nx -L ../.. -q -x ../data/restart2.cmd ../example/dbg-test1.sh Watchpoint 2: $x changed: old value: '22' new value: '' @@ -65,10 +70,11 @@ 95: set -o functrace +# 2nd part of Restart test +l> -95: => set -o functrace -96: . "$_Dbg_script_file" + 95: => set -o functrace + 96: . "$_Dbg_script_file" +info watch Num Type Enb Expression +------------------------------ 2 watchpoint y $x +cont Watchpoint 2: $x changed:
View file
bashdb-4.2-0.8.tar.bz2/test/example/Makefile.am -> bashdb-4.4-0.92.tar.bz2/test/example/Makefile.am
Changed
@@ -1,5 +1,7 @@ check_DATA = \ bug-args.sh.in \ + bug-clear.sh \ + bug-loc.sh \ bug-step.sh \ bug-step-subshell.sh \ bugI.sh \ @@ -8,8 +10,11 @@ dbg-test1.sub \ dbg-test2.sh \ debug.sh \ + fib.sh \ + gcd.sh \ hanoi.sh.in \ interrupt.sh.in \ + library.sh \ multi.sh \ nexting.sh \ parm.sh \
View file
bashdb-4.2-0.8.tar.bz2/test/example/Makefile.in -> bashdb-4.4-0.92.tar.bz2/test/example/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,6 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -34,24 +78,45 @@ build_triplet = @build@ host_triplet = @host@ subdir = test/example -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/bug-args.sh.in $(srcdir)/bugIFS.sh.in \ - $(srcdir)/hanoi.sh.in $(srcdir)/interrupt.sh.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/bugIFS.sh.in $(srcdir)/hanoi.sh.in \ + $(srcdir)/interrupt.sh.in $(srcdir)/bug-args.sh.in README ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = bugIFS.sh hanoi.sh interrupt.sh bug-args.sh CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -71,6 +136,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -97,6 +163,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -112,6 +179,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -128,6 +196,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -160,7 +229,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -178,6 +246,8 @@ top_srcdir = @top_srcdir@ check_DATA = \ bug-args.sh.in \ + bug-clear.sh \ + bug-loc.sh \ bug-step.sh \ bug-step-subshell.sh \ bugI.sh \ @@ -186,8 +256,11 @@ dbg-test1.sub \ dbg-test2.sh \ debug.sh \ + fib.sh \ + gcd.sh \ hanoi.sh.in \ interrupt.sh.in \ + library.sh \ multi.sh \ nexting.sh \ parm.sh \ @@ -251,11 +324,11 @@ clean-libtool: -rm -rf .libs _libs -tags: TAGS -TAGS: +tags TAGS: + +ctags CTAGS: -ctags: CTAGS -CTAGS: +cscope cscopelist: distdir: $(DISTFILES) @@ -303,10 +376,15 @@ installcheck: installcheck-am install-strip: - $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ - install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ - `test -z '$(STRIP)' || \
View file
bashdb-4.4-0.92.tar.bz2/test/example/bug-clear.sh
Added
@@ -0,0 +1,8 @@ +#! /bin/bash +echo line 2 +echo line 3 +echo line 4 +echo line 5 +echo line 6 +echo line 7 +echo line 8
View file
bashdb-4.4-0.92.tar.bz2/test/example/bug-loc.sh
Added
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# Bug is that file cache highlight isn't updated when when +# it is already cached so it continues to refer to a line in the source'd file +# rather than file it was source'd from (here it is this file). +dirname=${BASH_SOURCE%/*} # equivalent to dirname($0) +source ${dirname}/library.sh +echo 'script line 7' +library-function +# Should show the line below in highlight mode and not a from +# library-function +echo 'script line 11' +#
View file
bashdb-4.4-0.92.tar.bz2/test/example/fib.sh
Added
@@ -0,0 +1,20 @@ +#!/bin/bash + +version="0.01"; + +fibonacci() { + n=${1:?If you want the nth fibonacci number, you must supply n as the first parameter.} + if [ $n -le 1 ]; then + echo $n + else + l=`fibonacci $((n-1))` + r=`fibonacci $((n-2))` + echo $((l + r)) + fi +} + +for i in 1 2 +do + result=$(fibonacci $i) + echo "i=$i result=$result" +done
View file
bashdb-4.4-0.92.tar.bz2/test/example/gcd.sh
Added
@@ -0,0 +1,25 @@ +#!/usr/bin/env bash +# Greatest Common Divisor in POSIX shell using Euclid's algorithm. On +# return, variable gcd_value is set and is the gcd of parameters $1 +# and $2. The GCD of a negative number is the same as the GCD of its +# absolute value, since a negative number is -1 times its positive +# value. Negative numbers are set when there is an error; -1 is set +# when the wrong number of parameters are given. +gcd() { + typeset -i a=$1 + typeset -i b=$2 + if (( a > b )) ; then + a=$b + b=$1 + fi + if (( a == 1 || (b-a) == 0)) ; then + gcd_value=$a + return 0 + fi + typeset -i c + ((c=b-a)) + gcd $c $a +} + +gcd $1 $2 +echo $gcd_value
View file
bashdb-4.4-0.92.tar.bz2/test/example/library.sh
Added
@@ -0,0 +1,5 @@ +library-function() { + echo 'library line 2 in library-function' +} +# library line 4 +# library line 5
View file
bashdb-4.2-0.8.tar.bz2/test/integration/Makefile.am -> bashdb-4.4-0.92.tar.bz2/test/integration/Makefile.am
Changed
@@ -1,8 +1,31 @@ -test_in_files := $(wildcard test-*.in) -tests_from_in_files := $(notdir $(test_in_files:.in=)) +test_in_files = \ + test-bug-step-subshell.in \ + test-complete.in \ + test-debug.in \ + test-delete.in \ + test-export.in \ + test-file-with-spaces.in \ + test-info-args.in \ + test-interrupt.in \ + test-misc.in \ + test-setshow.in \ + test-sig.in + +test_sources = \ + test-bug-step-subshell \ + test-complete \ + test-debug \ + test-delete \ + test-export \ + test-file-with-spaces \ + test-info-args \ + test-interrupt \ + test-misc \ + test-setshow \ + test-sig check_DATA = \ - $(data_in_files) \ + $(test_in_files) \ check-common.sh.in \ interrupt.tests \ interrupt-3.tests \ @@ -14,15 +37,15 @@ trace2.tests TESTS = \ - $(tests_from_in_files) \ + $(test_sources) \ test-action \ test-brkpt \ test-bug-args \ test-bugI \ test-bugIFS \ + test-bug-loc \ test-bug-source \ test-command \ - test-complete \ test-display \ test-enable \ test-file-with-spaces \ @@ -38,6 +61,8 @@ test-settrace \ test-skip \ test-sopts \ + test-bug-break \ + test-bug-clear \ test-bug-step \ test-subshell \ test-tbreak \ @@ -52,7 +77,7 @@ abs_srcdir=@abs_srcdir@ abs_builddir=@abs_builddir@ -EXTRA_DIST = $(TESTS) $(check_DATA) README +EXTRA_DIST = $(TESTS) $(check_DATA) $(test_in_files) README CLEANFILES = *.check
View file
bashdb-4.2-0.8.tar.bz2/test/integration/Makefile.in -> bashdb-4.4-0.92.tar.bz2/test/integration/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,6 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -34,31 +78,256 @@ build_triplet = @build@ host_triplet = @host@ subdir = test/integration -DIST_COMMON = README $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ - $(srcdir)/check-common.sh.in \ - $(srcdir)/test-bug-step-subshell.in $(srcdir)/test-debug.in \ - $(srcdir)/test-delete.in $(srcdir)/test-export.in \ - $(srcdir)/test-info-args.in $(srcdir)/test-misc.in \ - $(srcdir)/test-setshow.in $(srcdir)/test-sig.in +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ + $(srcdir)/test-bug-step-subshell.in $(srcdir)/test-complete.in \ + $(srcdir)/test-debug.in $(srcdir)/test-delete.in \ + $(srcdir)/test-export.in $(srcdir)/test-file-with-spaces.in \ + $(srcdir)/test-interrupt.in $(srcdir)/test-misc.in \ + $(srcdir)/test-setshow.in $(srcdir)/test-info-args.in \ + $(srcdir)/test-sig.in $(srcdir)/check-common.sh.in \ + $(top_srcdir)/test-driver README ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h -CONFIG_CLEAN_FILES = test-bug-step-subshell test-debug test-delete \ - test-export test-misc test-setshow test-info-args test-sig \ - check-common.sh +CONFIG_CLEAN_FILES = test-bug-step-subshell test-complete test-debug \ + test-delete test-export test-file-with-spaces test-interrupt \ + test-misc test-setshow test-info-args test-sig check-common.sh CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = -am__tty_colors = \ -red=; grn=; lgn=; blu=; std= +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) +am__tty_colors_dummy = \ + mgn= red= grn= lgn= blu= brg= std=; \ + am__color_tests=no +am__tty_colors = { \ + $(am__tty_colors_dummy); \ + if test "X$(AM_COLOR_TESTS)" = Xno; then \ + am__color_tests=no; \ + elif test "X$(AM_COLOR_TESTS)" = Xalways; then \ + am__color_tests=yes; \ + elif test "X$$TERM" != Xdumb && { test -t 1; } 2>/dev/null; then \ + am__color_tests=yes; \ + fi; \ + if test $$am__color_tests = yes; then \ + red='[0;31m'; \ + grn='[0;32m'; \ + lgn='[1;32m'; \ + blu='[1;34m'; \ + mgn='[0;35m'; \ + brg='[1m'; \ + std='[m'; \ + fi; \ +} +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; +am__vpath_adj = case $$p in \ + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ + *) f=$$p;; \ + esac; +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; +am__install_max = 40 +am__nobase_strip_setup = \ + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` +am__nobase_strip = \ + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" +am__nobase_list = $(am__nobase_strip_setup); \ + for p in $$list; do echo "$$p $$p"; done | \ + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ + if (++n[$$2] == $(am__install_max)) \ + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ + END { for (dir in files) print dir, files[dir] }' +am__base_list = \ + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' +am__uninstall_files_from_dir = { \ + test -z "$$files" \ + || { test ! -d "$$dir" && test ! -f "$$dir" && test ! -r "$$dir"; } \ + || { echo " ( cd '$$dir' && rm -f" $$files ")"; \ + $(am__cd) "$$dir" && rm -f $$files; }; \ + } +am__recheck_rx = ^[ ]*:recheck:[ ]* +am__global_test_result_rx = ^[ ]*:global-test-result:[ ]* +am__copy_in_global_log_rx = ^[ ]*:copy-in-global-log:[ ]* +# A command that, given a newline-separated list of test names on the +# standard input, print the name of the tests that are to be re-run +# upon "make recheck". +am__list_recheck_tests = $(AWK) '{ \ + recheck = 1; \ + while ((rc = (getline line < ($$0 ".trs"))) != 0) \ + { \ + if (rc < 0) \ + { \ + if ((getline line2 < ($$0 ".log")) < 0) \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[nN][Oo]/) \ + { \ + recheck = 0; \ + break; \ + } \ + else if (line ~ /$(am__recheck_rx)[yY][eE][sS]/) \ + { \ + break; \ + } \ + }; \ + if (recheck) \ + print $$0; \
View file
bashdb-4.2-0.8.tar.bz2/test/integration/check-common.sh.in -> bashdb-4.4-0.92.tar.bz2/test/integration/check-common.sh.in
Changed
@@ -19,15 +19,38 @@ return $? } +# http://stackoverflow.com/questions/5451297/exit-code-when-crashed +check_exit_status () +{ + local status="$?"; + local msg=""; + local signal=""; + if [ ${status} -ne 0 ]; then + if [ $((${status} < 128)) -ne 0 ]; then + msg="exit (${status})"; + else + signal="$(builtin kill -l $((${status} - 128)) 2>/dev/null)"; + if [ "$signal" ]; then + msg="kill -$signal$msg"; + fi; + fi; + # want this to go to stdout to be captured + echo "INVESTIGATE EXIT FAILURE: [${status} => ${msg}]"; + fi; + return 0 +} + +run_debugger_opts="-B -q --no-init --no-highlight" # Run the debugger on test program $1 with (optional) debugger options $2 # using commandfile $3. We assume $TOP_BUILDDIR, $TOP_SRCDIR and # $TEST_NAME have been set previously run_debugger() { typeset debugged_script="$1" - typeset dbg_opts=${2:-"-L ${top_srcdir} -B -q --no-init"} + typeset dbg_opts=${2:-"-L ${top_srcdir} $run_debugger_opts"} [[ -z $short_test_name ]] && short_test_name=$TEST_NAME typeset cmdfile=${3:-"${top_srcdir}/test/data/${short_test_name}.cmd"} $SH -- ${top_builddir}/@PACKAGE@ $dbg_opts -x "$cmdfile" "$debugged_script" $ARGS + check_exit_status } ARGS='' @@ -41,6 +64,7 @@ run_test_check() { short_script_name=${1:-$TEST_NAME} short_test_name=${2:-$TEST_NAME} + debugged_script=${3:-"${top_srcdir}/test/example/${short_script_name}.sh"} # Reassign variables to allow overrides via the above parameters TEST_FILE="${top_builddir}/test/integration/${short_test_name}.check" @@ -48,7 +72,6 @@ TEST_FILTERED_FILE="/tmp/${short_test_name}-filtered.check" RIGHT_FILTERED_FILE="/tmp/${short_test_name}-filtered.right" - debugged_script="${top_srcdir}/test/example/${short_script_name}.sh" [[ ! -r $debugged_script ]] && \ debugged_script="${top_builddir}/test/example/${short_script_name}.sh" if [[ -z "$srcdir" ]] ; then
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-action -> bashdb-4.4-0.92.tar.bz2/test/integration/test-action
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && builddir=$PWD
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-brkpt -> bashdb-4.4-0.92.tar.bz2/test/integration/test-brkpt
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && builddir=$PWD
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bug-args -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-args
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash -f +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-break
Added
@@ -0,0 +1,12 @@ +#!/usr/bin/env bash +# -*- shell-script -*- +t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off + +[[ -z "$builddir" ]] && export builddir=$PWD + +. ${builddir}/check-common.sh + +debugged_script="$top_srcdir/test/example/fib.sh" + +[[ -z "$builddir" ]] && builddir=$PWD +run_test_check $TEST_NAME $TEST_NAME $debugged_script
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-clear
Added
@@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# -*- shell-script -*- +t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off + +[[ -z "$builddir" ]] && export builddir=$PWD + +. ${builddir}/check-common.sh + +[[ -z "$builddir" ]] && builddir=$PWD +run_test_check $TEST_NAME $TEST_NAME $debugged_script
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-loc
Added
@@ -0,0 +1,16 @@ +#!/usr/bin/env bash +# -*- shell-script -*- +t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off + +[[ -z "$builddir" ]] && export builddir=$PWD + +. ${builddir}/check-common.sh + +debugged_script="$top_srcdir/test/example/bug-loc.sh" + +if ( pygmentize --version || pygmentize -V ) 2>/dev/null 1>/dev/null ; then + run_debugger_opts="-B -q --no-init --highlight=light" + run_test_check $TEST_NAME $TEST_NAME $debugged_script +else + exit 77 +fi
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bug-source -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-source
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bug-step -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-step
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bug-step-subshell -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bug-step-subshell
Changed
@@ -9,8 +9,8 @@ short_script_name=${1:-$TEST_NAME} debugged_script="${top_srcdir}/test/example/${short_script_name}.sh" (cd $srcdir && run_debugger "$debugged_script" 2>&1 >"$TEST_FILE" </dev/null) -/bin/grep -v '1: #!/bin/bash' "$TEST_FILE" >"${TEST_FILTERED_FILE}" -/bin/grep -v '1: #!/bin/bash' "$RIGHT_FILE" >"${RIGHT_FILTERED_FILE}" +grep -v '1: #!/bin/bash' "$TEST_FILE" >"${TEST_FILTERED_FILE}" +grep -v '1: #!/bin/bash' "$RIGHT_FILE" >"${RIGHT_FILTERED_FILE}" check_output "$TEST_FILTERED_FILE" "$RIGHT_FILTERED_FILE" rc=$?
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bugI -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bugI
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-bugIFS -> bashdb-4.4-0.92.tar.bz2/test/integration/test-bugIFS
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-command -> bashdb-4.4-0.92.tar.bz2/test/integration/test-command
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-complete.in
Added
@@ -0,0 +1,7 @@ +#!@SH_PROG@ +# -*- shell-script -*- +t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off + +[ -z "$builddir" ] && builddir=$PWD +. ${builddir}/check-common.sh +run_test_check dbg-test1
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-debug -> bashdb-4.4-0.92.tar.bz2/test/integration/test-debug
Changed
@@ -9,8 +9,8 @@ (cd $srcdir && run_debugger $debugged_script 2>&1 >$TEST_FILE </dev/null) -/bin/grep -v '##2 main("-q", "-L",' $RIGHT_FILE >${RIGHT_FILTERED_FILE} -/bin/grep -v '##2 main("-q", "-L",' $TEST_FILE >${TEST_FILTERED_FILE} +grep -v '##2 main("-q", "-L",' $RIGHT_FILE >${RIGHT_FILTERED_FILE} +grep -v '##2 main("-q", "-L",' $TEST_FILE >${TEST_FILTERED_FILE} check_output $TEST_FILTERED_FILE ${RIGHT_FILTERED_FILE} rc=$?
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-display -> bashdb-4.4-0.92.tar.bz2/test/integration/test-display
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-enable -> bashdb-4.4-0.92.tar.bz2/test/integration/test-enable
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-file-with-spaces -> bashdb-4.4-0.92.tar.bz2/test/integration/test-file-with-spaces
Changed
@@ -9,4 +9,5 @@ run_test_check else echo "Skipping test due to autoconf problems" + exit 77 fi
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-file-with-spaces.in
Added
@@ -0,0 +1,13 @@ +#!@SH_PROG@ +# -*- shell-script -*- +TEST_NAME='file with spaces' + +[ -z "$builddir" ] && builddir=$PWD +. ${builddir}/check-common.sh + +if [[ -f "$top_srcdir/test/example/file with spaces.sh" ]] ; then + run_test_check +else + echo "Skipping test due to autoconf problems" + exit 77 +fi
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-finish -> bashdb-4.4-0.92.tar.bz2/test/integration/test-finish
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-frame -> bashdb-4.4-0.92.tar.bz2/test/integration/test-frame
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-interrupt -> bashdb-4.4-0.92.tar.bz2/test/integration/test-interrupt
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash -f +#!/bin/bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && export builddir=$PWD @@ -9,9 +9,9 @@ echo "Skipping when building outside the source tree" exit 77 fi -case $host_os in +case $host_os in cygwin | darwin* | solaris* ) - exit ;; + exit 77;; * ) : ;; esac @@ -25,9 +25,12 @@ fi (cd $srcdir && $SH ${TEST_NAME}.tests > $TEST_FILE 2>&1 < /dev/null) - +sleep 1 check_output $TEST_FILE ${top_builddir}/test/data/${TEST_NAME}.right +rc=$? +((0 != rc)) && exit $rc rm -f $top_builddir/test/interrupt.tst -exit $? +# Return code tells testing mechanism whether passed or not. +exit 0
View file
bashdb-4.4-0.92.tar.bz2/test/integration/test-interrupt.in
Added
@@ -0,0 +1,36 @@ +#!@SH_PROG@ +t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off + +[ -z "$builddir" ] && export builddir=$PWD + +. ${builddir}/check-common.sh + +if [[ $srcdir != $builddir ]] ; then + echo "Skipping when building outside the source tree" + exit 77 +fi +case $host_os in + cygwin | darwin* | solaris* ) + exit 77;; + * ) + : ;; +esac + +TEST_FILE="$builddir/${TEST_NAME}.check" + +if (( 3 == ${BASH_VERSINFO[0]} )) ; then + test_script=${TEST_NAME}-3.tests +elif (( 4 == ${BASH_VERSINFO[0]} )) ; then + test_script=${TEST_NAME}.tests +fi + +(cd $srcdir && $SH ${TEST_NAME}.tests > $TEST_FILE 2>&1 < /dev/null) +sleep 1 +check_output $TEST_FILE ${top_builddir}/test/data/${TEST_NAME}.right +rc=$? + +((0 != rc)) && exit $rc +rm -f $top_builddir/test/interrupt.tst + +# Return code tells testing mechanism whether passed or not. +exit 0
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-list -> bashdb-4.4-0.92.tar.bz2/test/integration/test-list
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-lopts -> bashdb-4.4-0.92.tar.bz2/test/integration/test-lopts
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off # Test debugger long options.
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-misc -> bashdb-4.4-0.92.tar.bz2/test/integration/test-misc
Changed
@@ -14,7 +14,7 @@ cat ${TEST_FILE} | /bin/sed -e "s:1 = .*/dbg-test2.sh:1 = ./example/dbg-test2.sh:" \ | /bin/sed -e 's:record the command history is .*:record the command history is: ' \ | /bin/sed -e 's:step-:step+:' \ -| /bin/grep -v '^set dollar0' > ${TEST_FILTERED_FILE} +| grep -v '^set dollar0' > ${TEST_FILTERED_FILE} if (( BASH_VERSINFO[0] > 4 || \ (BASH_VERSINFO[0] == 4 && BASH_VERSINFO[1] >= 1) )) ; then
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-multi -> bashdb-4.4-0.92.tar.bz2/test/integration/test-multi
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && builddir=$PWD
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-restart -> bashdb-4.4-0.92.tar.bz2/test/integration/test-restart
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off # Test restart command
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-search -> bashdb-4.4-0.92.tar.bz2/test/integration/test-search
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-sig -> bashdb-4.4-0.92.tar.bz2/test/integration/test-sig
Changed
@@ -3,21 +3,49 @@ t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off SH=/bin/bash +# Put this trap into a known state to make the test more reproducible. +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801372 +trap '' SIGXFSZ + [ -z "$builddir" ] && export builddir=$PWD . ${builddir}/check-common.sh debugged_script="$top_srcdir/test/example/sig.sh" +typeset short_test_name='sig' +if (( ${BASH_VERSINFO[0]} == 4 && ${BASH_VERSINFO[1]} == 3 )) ; then + short_test_name='sig-43' + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}-43.right" +elif (( ${BASH_VERSINFO[0]} == 4 && ${BASH_VERSINFO[1]} >= 4 )) ; then + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}.right" +fi + +case $host_os in + freebsd* | netbsd* ) + exit 77 ;; + darwin* ) + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}-Darwin.right" + ;; + * ) +esac + FILTERED_TEST_FILE="/tmp/${TEST_NAME}-filtered.check" FILTERED_RIGHT_FILE="/tmp/${TEST_NAME}-filtered.right" -(cd $srcdir && run_debugger $debugged_script 2>&1 >$TEST_FILE </dev/null) +typeset dbg_opts="-L ${top_srcdir} $run_debugger_opts" +typeset cmdfile="${top_srcdir}/test/data/${short_test_name}.cmd" + +(cd $srcdir && run_debugger "$debugged_script" "$dbg_opts" "$cmdfile" 2>&1 >$TEST_FILE </dev/null) -/bin/grep -v '^sig.tests: line 12' $RIGHT_FILE>${FILTERED_RIGHT_FILE} -/bin/grep -v '^sig.tests: line 12' $TEST_FILE \ +grep -v '^sig.tests: line 12' $RIGHT_FILE>${FILTERED_RIGHT_FILE} +grep -v '^sig.tests: line 12' $TEST_FILE \ | /bin/sed -e "s:in file \`sig.sh' at line [0-9][0-9]*:in file \`sig.sh' at line 55:" \ | /bin/sed -e "s:in file \`eval.sh' at line [0-9][0-9]*:in file \`eval.sh' at line 55:" \ - | /bin/grep -v '^sig.tests: line 10:' | /bin/grep -v '^SIGPIPE' >${FILTERED_TEST_FILE} + | /bin/sed -e "s:bashdb_eval_[0-9][0-9]*:bashdb_eval_5040:" \ + | grep -v '^sig.tests: line 10:' | \ +grep -v '^SIGPIPE' | \ +grep -v '^SIGSYS' | \ +grep -v '^SIGPROF' >${FILTERED_TEST_FILE} check_output $FILTERED_TEST_FILE $FILTERED_RIGHT_FILE rc=$?
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-sig.in -> bashdb-4.4-0.92.tar.bz2/test/integration/test-sig.in
Changed
@@ -3,21 +3,49 @@ t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off SH=@SH_PROG@ +# Put this trap into a known state to make the test more reproducible. +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=801372 +trap '' SIGXFSZ + [ -z "$builddir" ] && export builddir=$PWD . ${builddir}/check-common.sh debugged_script="$top_srcdir/test/example/sig.sh" +typeset short_test_name='sig' +if (( ${BASH_VERSINFO[0]} == 4 && ${BASH_VERSINFO[1]} == 3 )) ; then + short_test_name='sig-43' + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}-43.right" +elif (( ${BASH_VERSINFO[0]} == 4 && ${BASH_VERSINFO[1]} >= 4 )) ; then + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}.right" +fi + +case $host_os in + freebsd* | netbsd* ) + exit 77 ;; + darwin* ) + RIGHT_FILE="${top_srcdir}/test/data/${TEST_NAME}-Darwin.right" + ;; + * ) +esac + FILTERED_TEST_FILE="/tmp/${TEST_NAME}-filtered.check" FILTERED_RIGHT_FILE="/tmp/${TEST_NAME}-filtered.right" -(cd $srcdir && run_debugger $debugged_script 2>&1 >$TEST_FILE </dev/null) +typeset dbg_opts="-L ${top_srcdir} $run_debugger_opts" +typeset cmdfile="${top_srcdir}/test/data/${short_test_name}.cmd" + +(cd $srcdir && run_debugger "$debugged_script" "$dbg_opts" "$cmdfile" 2>&1 >$TEST_FILE </dev/null) @GREP@ -v '^sig.tests: line 12' $RIGHT_FILE>${FILTERED_RIGHT_FILE} @GREP@ -v '^sig.tests: line 12' $TEST_FILE \ | @SED@ -e "s:in file \`sig.sh' at line [0-9][0-9]*:in file \`sig.sh' at line 55:" \ | @SED@ -e "s:in file \`eval.sh' at line [0-9][0-9]*:in file \`eval.sh' at line 55:" \ - | @GREP@ -v '^sig.tests: line 10:' | @GREP@ -v '^SIGPIPE' >${FILTERED_TEST_FILE} + | @SED@ -e "s:bashdb_eval_[0-9][0-9]*:bashdb_eval_5040:" \ + | @GREP@ -v '^sig.tests: line 10:' | \ +@GREP@ -v '^SIGPIPE' | \ +@GREP@ -v '^SIGSYS' | \ +@GREP@ -v '^SIGPROF' >${FILTERED_TEST_FILE} check_output $FILTERED_TEST_FILE $FILTERED_RIGHT_FILE rc=$?
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-skip -> bashdb-4.4-0.92.tar.bz2/test/integration/test-skip
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-sopts -> bashdb-4.4-0.92.tar.bz2/test/integration/test-sopts
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- # Test debugger short options. t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-tbreak -> bashdb-4.4-0.92.tar.bz2/test/integration/test-tbreak
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && builddir=$PWD
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-watch1 -> bashdb-4.4-0.92.tar.bz2/test/integration/test-watch1
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash # -*- shell-script -*- t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off
View file
bashdb-4.2-0.8.tar.bz2/test/integration/test-watch2 -> bashdb-4.4-0.92.tar.bz2/test/integration/test-watch2
Changed
@@ -1,4 +1,4 @@ -#!/bin/bash +#!/usr/bin/env bash t=${0##*/}; TEST_NAME=${t:5} # basename $0 with 'test-' stripped off [ -z "$builddir" ] && export builddir=$PWD
View file
bashdb-4.2-0.8.tar.bz2/test/unit/Makefile.am -> bashdb-4.4-0.92.tar.bz2/test/unit/Makefile.am
Changed
@@ -1,6 +1,6 @@ ## Process this file with automake to produce Makefile.in -*-Makefile-*-. COMBINED_TESTS = $(wildcard test-*.sh) -TESTS_SOURCES = $(notdir $(COMBINED_TESTS:=.in)) +tests_sources = $(notdir $(COMBINED_TESTS:=.in)) abs_srcdir=@abs_srcdir@ abs_builddir=@abs_builddir@ @@ -9,12 +9,19 @@ srcdir="$(abs_srcdir)" \ builddir="$(abs_builddir)" -EXTRA_DIST = helper.sh require_me.sh.in $(COMBINED_TESTS) shunit2 $(TEST_SOURCES) +EXTRA_DIST = \ + helper.sh \ + mock-cmd.sh \ + require_me.sh \ + require_me.sh.in $(COMBINED_TESTS) shunit2 $(tests_sources) test: check test-unit: check check: $(COMBINED_TESTS) - $(SH_PROG) $(abs_srcdir)/shunit2 $(COMBINED_TESTS) + $(SH_PROG) $(abs_srcdir)/shunit2 \ + $(abs_srcdir)/helper.sh $(abs_srcdir)/mock-cmd.sh \ + $(abs_srcdir)/require_me.sh \ + $(COMBINED_TESTS) MOSTLYCLEANFILES = *.orig *.rej
View file
bashdb-4.2-0.8.tar.bz2/test/unit/Makefile.in -> bashdb-4.4-0.92.tar.bz2/test/unit/Makefile.in
Changed
@@ -1,9 +1,8 @@ -# Makefile.in generated by automake 1.11.1 from Makefile.am. +# Makefile.in generated by automake 1.14.1 from Makefile.am. # @configure_input@ -# Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, -# Inc. +# Copyright (C) 1994-2013 Free Software Foundation, Inc. + # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -15,6 +14,51 @@ @SET_MAKE@ VPATH = @srcdir@ +am__is_gnu_make = test -n '$(MAKEFILE_LIST)' && test -n '$(MAKELEVEL)' +am__make_running_with_option = \ + case $${target_option-} in \ + ?) ;; \ + *) echo "am__make_running_with_option: internal error: invalid" \ + "target option '$${target_option-}' specified" >&2; \ + exit 1;; \ + esac; \ + has_opt=no; \ + sane_makeflags=$$MAKEFLAGS; \ + if $(am__is_gnu_make); then \ + sane_makeflags=$$MFLAGS; \ + else \ + case $$MAKEFLAGS in \ + *\\[\ \ ]*) \ + bs=\\; \ + sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \ + | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \ + esac; \ + fi; \ + skip_next=no; \ + strip_trailopt () \ + { \ + flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \ + }; \ + for flg in $$sane_makeflags; do \ + test $$skip_next = yes && { skip_next=no; continue; }; \ + case $$flg in \ + *=*|--*) continue;; \ + -*I) strip_trailopt 'I'; skip_next=yes;; \ + -*I?*) strip_trailopt 'I';; \ + -*O) strip_trailopt 'O'; skip_next=yes;; \ + -*O?*) strip_trailopt 'O';; \ + -*l) strip_trailopt 'l'; skip_next=yes;; \ + -*l?*) strip_trailopt 'l';; \ + -[dEDm]) skip_next=yes;; \ + -[JT]) skip_next=yes;; \ + esac; \ + case $$flg in \ + *$$target_option*) has_opt=yes; break;; \ + esac; \ + done; \ + test $$has_opt = yes +am__make_dryrun = (target_option=n; $(am__make_running_with_option)) +am__make_keepgoing = (target_option=k; $(am__make_running_with_option)) pkgdatadir = $(datadir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ @@ -34,40 +78,63 @@ build_triplet = @build@ host_triplet = @host@ subdir = test/unit -DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ +DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/Makefile.am \ $(srcdir)/require_me.sh.in $(srcdir)/test-action.sh.in \ $(srcdir)/test-alias.sh.in $(srcdir)/test-bashdb-trace.sh.in \ $(srcdir)/test-break.sh.in $(srcdir)/test-cmd-complete.sh.in \ - $(srcdir)/test-columns.sh.in $(srcdir)/test-eval.sh.in \ - $(srcdir)/test-file.sh.in $(srcdir)/test-filecache.sh.in \ - $(srcdir)/test-fns.sh.in $(srcdir)/test-frame.sh.in \ - $(srcdir)/test-get-sourceline.sh.in $(srcdir)/test-io.sh.in \ + $(srcdir)/test-cmd-eval.sh.in $(srcdir)/test-columns.sh.in \ + $(srcdir)/test-eval.sh.in $(srcdir)/test-file.sh.in \ + $(srcdir)/test-filecache.sh.in \ + $(srcdir)/test-get-sourceline.sh.in $(srcdir)/test-fns.sh.in \ + $(srcdir)/test-frame.sh.in $(srcdir)/test-lib-eval.sh.in \ $(srcdir)/test-lib-list.sh.in $(srcdir)/test-msg.sh.in \ - $(srcdir)/test-pre.sh.in $(srcdir)/test-require.sh.in \ - $(srcdir)/test-run.sh.in $(srcdir)/test-save-restore.sh.in \ - $(srcdir)/test-set0.sh.in $(srcdir)/test-sort.sh.in \ - $(srcdir)/test-validate.sh.in + $(srcdir)/test-io.sh.in $(srcdir)/test-pre.sh.in \ + $(srcdir)/test-require.sh.in $(srcdir)/test-run.sh.in \ + $(srcdir)/test-save-restore.sh.in $(srcdir)/test-set0.sh.in \ + $(srcdir)/test-sort.sh.in $(srcdir)/test-validate.sh.in ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 -am__aclocal_m4_deps = $(top_srcdir)/acinclude.m4 \ - $(top_srcdir)/configure.ac +am__aclocal_m4_deps = $(top_srcdir)/libtool.m4 \ + $(top_srcdir)/ltoptions.m4 $(top_srcdir)/ltsugar.m4 \ + $(top_srcdir)/ltversion.m4 $(top_srcdir)/lt~obsolete.m4 \ + $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/config.h CONFIG_CLEAN_FILES = require_me.sh test-action.sh test-alias.sh \ test-bashdb-trace.sh test-break.sh test-cmd-complete.sh \ - test-columns.sh test-eval.sh test-file.sh test-filecache.sh \ - test-get-sourceline.sh test-fns.sh test-frame.sh \ - test-lib-list.sh test-msg.sh test-io.sh test-pre.sh \ - test-require.sh test-run.sh test-save-restore.sh test-set0.sh \ - test-sort.sh test-validate.sh + test-cmd-eval.sh test-columns.sh test-eval.sh test-file.sh \ + test-filecache.sh test-get-sourceline.sh test-fns.sh \ + test-frame.sh test-lib-eval.sh test-lib-list.sh test-msg.sh \ + test-io.sh test-pre.sh test-require.sh test-run.sh \ + test-save-restore.sh test-set0.sh test-sort.sh \ + test-validate.sh CONFIG_CLEAN_VPATH_FILES = +AM_V_P = $(am__v_P_@AM_V@) +am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) +am__v_P_0 = false +am__v_P_1 = : +AM_V_GEN = $(am__v_GEN_@AM_V@) +am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@) +am__v_GEN_0 = @echo " GEN " $@; +am__v_GEN_1 = +AM_V_at = $(am__v_at_@AM_V@) +am__v_at_ = $(am__v_at_@AM_DEFAULT_V@) +am__v_at_0 = @ +am__v_at_1 = SOURCES = DIST_SOURCES = +am__can_run_installinfo = \ + case $$AM_UPDATE_INFO_DIR in \ + n|no|NO) false;; \ + *) (install-info --version) >/dev/null 2>&1;; \ + esac +am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP) DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALT_PACKAGE_NAME = @ALT_PACKAGE_NAME@ AMTAR = @AMTAR@ +AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ @@ -87,6 +154,7 @@ DEPDIR = @DEPDIR@ DIFF = @DIFF@ DIFF_OPTS = @DIFF_OPTS@ +DLLTOOL = @DLLTOOL@ DSYMUTIL = @DSYMUTIL@ DUMPBIN = @DUMPBIN@ ECHO_C = @ECHO_C@ @@ -113,6 +181,7 @@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAKEINFO = @MAKEINFO@ +MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ NM = @NM@ NMEDIT = @NMEDIT@ @@ -128,6 +197,7 @@ PACKAGE_URL = @PACKAGE_URL@ PACKAGE_VERSION = @PACKAGE_VERSION@ PATH_SEPARATOR = @PATH_SEPARATOR@ +PERL = @PERL@ PIC = @PIC@ PKGDATADIR = @PKGDATADIR@ RANLIB = @RANLIB@ @@ -144,6 +214,7 @@ abs_srcdir = @abs_srcdir@ abs_top_builddir = @abs_top_builddir@ abs_top_srcdir = @abs_top_srcdir@ +ac_ct_AR = @ac_ct_AR@ ac_ct_CC = @ac_ct_CC@ ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ am__include = @am__include@ @@ -176,7 +247,6 @@ libexecdir = @libexecdir@ localedir = @localedir@ localstatedir = @localstatedir@ -lt_ECHO = @lt_ECHO@ mandir = @mandir@ mkdir_p = @mkdir_p@ oldincludedir = @oldincludedir@ @@ -193,12 +263,17 @@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ COMBINED_TESTS = $(wildcard test-*.sh) -TESTS_SOURCES = $(notdir $(COMBINED_TESTS:=.in)) +tests_sources = $(notdir $(COMBINED_TESTS:=.in)) TESTS_ENVIRONMENT = \ srcdir="$(abs_srcdir)" \ builddir="$(abs_builddir)" -EXTRA_DIST = helper.sh require_me.sh.in $(COMBINED_TESTS) shunit2 $(TEST_SOURCES) +EXTRA_DIST = \ + helper.sh \ + mock-cmd.sh \ + require_me.sh \
View file
bashdb-4.4-0.92.tar.bz2/test/unit/mock-cmd.sh
Added
@@ -0,0 +1,19 @@ +_Dbg_help_add() { + : +} + +_Dbg_alias_add() { + : +} + +_Dbg_msg() { + echo $* +} + +_Dbg_cleanup() { + : +} + +_Dbg_save_state() { + : +}
View file
bashdb-4.4-0.92.tar.bz2/test/unit/require_me.sh
Added
@@ -0,0 +1,3 @@ +[[ -z $require_me ]] && typeset -i require_me +((require_me++)) +
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-action.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-action.sh
Changed
@@ -94,13 +94,13 @@ assertEquals '1' "${#msgs[@]}" } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb -# Make sure /src/external-vcs/bashdb has a trailing slash +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb +# Make sure /src/external-vcs/sourceforge/bashdb has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh . ${abs_top_srcdir}init/pre.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-alias.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-alias.sh
Changed
@@ -29,11 +29,11 @@ assertEquals 'up' $expanded_alias } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong: abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcr has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-bashdb-trace.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-bashdb-trace.sh
Changed
@@ -17,7 +17,7 @@ # Name we refer to ourselves by typeset _Dbg_debugger_name='bashdb' # The release name we are configured to run under. - typeset _Dbg_release='4.2-0.8' + typeset _Dbg_release='4.4-0.92' . ${top_builddir}/bashdb-trace -L $libdir assertEquals $old_opts $- else @@ -29,9 +29,9 @@ set +u } -prefix=/usr/local -top_builddir=/src/external-vcs/bashdb -abs_top_srcdir=/src/external-vcs/bashdb +prefix=/usr/share +top_builddir=/src/external-vcs/sourceforge/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-break.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-break.sh
Changed
@@ -89,7 +89,7 @@ _Dbg_clear_all_brkpt } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure @abs_top_srcrdir@ has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-cmd-complete.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-cmd-complete.sh
Changed
@@ -11,11 +11,11 @@ clear' "$output" } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong; 'abs_top_srcdir' is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.4-0.92.tar.bz2/test/unit/test-cmd-eval.sh
Added
@@ -0,0 +1,31 @@ +#!/bin/bash +# -*- shell-script -*- + +test_complete_eval() +{ + COMP_LINE='eval?' + typeset -a COMPREPLY=() + _Dbg_source_line='if [ -d /etc/profile.d ]; then' + _Dbg_complete_eval + assertEquals '[ -d /etc/profile.d ]' "${COMPREPLY[@]}" + typeset -a COMPREPLY=() + _Dbg_source_line='x=10' + _Dbg_complete_eval + assertEquals 'echo 10' "${COMPREPLY[@]}" + COMP_LINE='eval' + _Dbg_source_line='x=10' + _Dbg_complete_eval + assertEquals 'x=10' "${COMPREPLY[@]}" +} + +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb +# Make sure $abs_top_srcrdir has a trailing slash +abs_top_srcdir=${abs_top_srcdir%%/}/ +. ${abs_top_srcdir}test/unit/helper.sh +. ${abs_top_srcdir}init/pre.sh +for file in alias help fns ; do + . ${abs_top_srcdir}lib/${file}.sh +done +. ${abs_top_srcdir}command/eval.sh +set -- # reset $# so shunit2 doesn't get confused. +[[ $0 == ${BASH_SOURCE} ]] && . ${shunit_file}
View file
bashdb-4.4-0.92.tar.bz2/test/unit/test-cmd-eval.sh.in
Added
@@ -0,0 +1,31 @@ +#!@SH_PROG@ +# -*- shell-script -*- + +test_complete_eval() +{ + COMP_LINE='eval?' + typeset -a COMPREPLY=() + _Dbg_source_line='if [ -d /etc/profile.d ]; then' + _Dbg_complete_eval + assertEquals '[ -d /etc/profile.d ]' "${COMPREPLY[@]}" + typeset -a COMPREPLY=() + _Dbg_source_line='x=10' + _Dbg_complete_eval + assertEquals 'echo 10' "${COMPREPLY[@]}" + COMP_LINE='eval' + _Dbg_source_line='x=10' + _Dbg_complete_eval + assertEquals 'x=10' "${COMPREPLY[@]}" +} + +abs_top_srcdir=@abs_top_srcdir@ +# Make sure $abs_top_srcrdir has a trailing slash +abs_top_srcdir=${abs_top_srcdir%%/}/ +. ${abs_top_srcdir}test/unit/helper.sh +. ${abs_top_srcdir}init/pre.sh +for file in alias help fns ; do + . ${abs_top_srcdir}lib/${file}.sh +done +. ${abs_top_srcdir}command/eval.sh +set -- # reset $# so shunit2 doesn't get confused. +[[ @CMDLINE_INVOKED@ ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-columns.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-columns.sh
Changed
@@ -38,11 +38,11 @@ } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-eval.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-eval.sh
Changed
@@ -57,7 +57,7 @@ fi } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-file.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-file.sh
Changed
@@ -5,7 +5,7 @@ test_file_file_canonic() { _Dbg_set_basename=0 - for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do + for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do typeset canonic_file canonic_file=$(_Dbg_file_canonic "$file") assertEquals 'canonic_file should return 0' '0' $? @@ -14,7 +14,7 @@ _Dbg_set_basename=1 typeset canonic_file - for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do + for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do canonic_file=$(_Dbg_file_canonic "$file") assertEquals 'canonic_file should return 0' '0' $? assertEquals 'canonic_file should shorten file' 'foo.bar' "$canonic_file" @@ -25,43 +25,43 @@ _Dbg_set_basename=0 } -# Test _Dbg_glob_filename +# Test _Dbg_tilde_expand_filename test_file_glob_filename() { typeset filename filename='' - _Dbg_glob_filename $shunit_file + _Dbg_tilde_expand_filename $shunit_file assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ./${srcdir}shunit? + _Dbg_tilde_expand_filename ./${srcdir}shunit? assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ./${srcdir}[a-s]h*nit? + _Dbg_tilde_expand_filename ./${srcdir}[a-s]h*nit? assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ${srcdir}abcdefg + _Dbg_tilde_expand_filename ${srcdir}abcdefg assertEquals '1' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'abcdefg' "$filename" if [[ -r ~ ]] ; then - _Dbg_glob_filename '~' + _Dbg_tilde_expand_filename '~' assertEquals '0' $? assertEquals ~ "$filename" fi - _Dbg_glob_filename ${srcdir}'some embedded spaces' + _Dbg_tilde_expand_filename ${srcdir}'some embedded spaces' assertEquals '1' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'some embedded spaces' "$filename" - + } # Test _Dbg_adjust_filename @@ -79,7 +79,7 @@ assertEquals 'abc' $filename } -# Test _Dbg_glob_filename +# Test _Dbg_tilde_expand_filename test_file_resolve_expand_filename() { filename=$(_Dbg_resolve_expand_filename /) @@ -95,7 +95,7 @@ assertNotEquals '.' "${filename:$size-1}" } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-file.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-file.sh.in
Changed
@@ -5,7 +5,7 @@ test_file_file_canonic() { _Dbg_set_basename=0 - for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do + for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do typeset canonic_file canonic_file=$(_Dbg_file_canonic "$file") assertEquals 'canonic_file should return 0' '0' $? @@ -14,7 +14,7 @@ _Dbg_set_basename=1 typeset canonic_file - for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do + for file in /tmp/foo.bar /a/b/foo.bar foo.bar ; do canonic_file=$(_Dbg_file_canonic "$file") assertEquals 'canonic_file should return 0' '0' $? assertEquals 'canonic_file should shorten file' 'foo.bar' "$canonic_file" @@ -25,43 +25,43 @@ _Dbg_set_basename=0 } -# Test _Dbg_glob_filename +# Test _Dbg_tilde_expand_filename test_file_glob_filename() { typeset filename filename='' - _Dbg_glob_filename $shunit_file + _Dbg_tilde_expand_filename $shunit_file assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ./${srcdir}shunit? + _Dbg_tilde_expand_filename ./${srcdir}shunit? assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ./${srcdir}[a-s]h*nit? + _Dbg_tilde_expand_filename ./${srcdir}[a-s]h*nit? assertEquals '0' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'shunit2' $filename - _Dbg_glob_filename ${srcdir}abcdefg + _Dbg_tilde_expand_filename ${srcdir}abcdefg assertEquals '1' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'abcdefg' "$filename" if [[ -r ~ ]] ; then - _Dbg_glob_filename '~' + _Dbg_tilde_expand_filename '~' assertEquals '0' $? assertEquals ~ "$filename" fi - _Dbg_glob_filename ${srcdir}'some embedded spaces' + _Dbg_tilde_expand_filename ${srcdir}'some embedded spaces' assertEquals '1' $? - filename=${filename##*/} + filename=${filename##*/} assertEquals 'some embedded spaces' "$filename" - + } # Test _Dbg_adjust_filename @@ -79,7 +79,7 @@ assertEquals 'abc' $filename } -# Test _Dbg_glob_filename +# Test _Dbg_tilde_expand_filename test_file_resolve_expand_filename() { filename=$(_Dbg_resolve_expand_filename /)
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-filecache.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-filecache.sh
Changed
@@ -5,8 +5,20 @@ # Test _Dbg_get_source_line test_get_source_line() { + _Dbg_set_highlight='' + _Dbg_source_line='no good' _Dbg_get_source_line 2 $this_script assertEquals '# -*- shell-script -*-' "$_Dbg_source_line" + + # Getting sourceline with highlight set but we don't have + # the highlighted cached should fall back back to getting the line + # without highlight. + _Dbg_source_line='no good' + _Dbg_set_highlight='light' + _Dbg_get_source_line 2 $this_script + assertEquals \ + "Requested highlight, it's not cached - fallback no highlight"\ + '# -*- shell-script -*-' "$_Dbg_source_line" } # Test readin and maxline @@ -29,7 +41,7 @@ # Test check_line # test should appear after tests which read in source. -test_check_line() +test_check_line() { _Dbg_errmsg() { errmsg+=("$1") @@ -37,7 +49,7 @@ typeset -a errmsg; errmsg=() _Dbg_check_line assertNotEquals "check_line with wrong number of args" '0' $? - _Dbg_check_line a + _Dbg_check_line a assertNotEquals "check_line with wrong number of args" '0' $? _Dbg_check_line a b c assertNotEquals "check_line with wrong number of args" '0' $? @@ -51,12 +63,12 @@ _Dbg_check_line 10000 $shunit_file } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-filecache.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-filecache.sh.in
Changed
@@ -5,8 +5,20 @@ # Test _Dbg_get_source_line test_get_source_line() { + _Dbg_set_highlight='' + _Dbg_source_line='no good' _Dbg_get_source_line 2 $this_script assertEquals '# -*- shell-script -*-' "$_Dbg_source_line" + + # Getting sourceline with highlight set but we don't have + # the highlighted cached should fall back back to getting the line + # without highlight. + _Dbg_source_line='no good' + _Dbg_set_highlight='light' + _Dbg_get_source_line 2 $this_script + assertEquals \ + "Requested highlight, it's not cached - fallback no highlight"\ + '# -*- shell-script -*-' "$_Dbg_source_line" } # Test readin and maxline @@ -29,7 +41,7 @@ # Test check_line # test should appear after tests which read in source. -test_check_line() +test_check_line() { _Dbg_errmsg() { errmsg+=("$1") @@ -37,7 +49,7 @@ typeset -a errmsg; errmsg=() _Dbg_check_line assertNotEquals "check_line with wrong number of args" '0' $? - _Dbg_check_line a + _Dbg_check_line a assertNotEquals "check_line with wrong number of args" '0' $? _Dbg_check_line a b c assertNotEquals "check_line with wrong number of args" '0' $?
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-fns.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-fns.sh
Changed
@@ -160,15 +160,15 @@ assertEquals 'foo' ${words[0]} } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh -. $abs_top_srcdir/init/pre.sh -. $abs_top_srcdir/lib/fns.sh -. $abs_top_srcdir/lib/journal.sh -. $abs_top_srcdir/lib/save-restore.sh -. $abs_top_srcdir/lib/validate.sh +. ${abs_top_srcdir}init/pre.sh +. ${abs_top_srcdir}lib/fns.sh +. ${abs_top_srcdir}lib/journal.sh +. ${abs_top_srcdir}lib/save-restore.sh +. ${abs_top_srcdir}lib/validate.sh set -- # reset $# so shunit2 doesn't get confused. [[ $0 == ${BASH_SOURCE} ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-fns.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-fns.sh.in
Changed
@@ -164,11 +164,11 @@ # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh -. $abs_top_srcdir/init/pre.sh -. $abs_top_srcdir/lib/fns.sh -. $abs_top_srcdir/lib/journal.sh -. $abs_top_srcdir/lib/save-restore.sh -. $abs_top_srcdir/lib/validate.sh +. ${abs_top_srcdir}init/pre.sh +. ${abs_top_srcdir}lib/fns.sh +. ${abs_top_srcdir}lib/journal.sh +. ${abs_top_srcdir}lib/save-restore.sh +. ${abs_top_srcdir}lib/validate.sh set -- # reset $# so shunit2 doesn't get confused. [[ @CMDLINE_INVOKED@ ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-frame.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-frame.sh
Changed
@@ -163,11 +163,11 @@ assertEquals "->0 in file \`dbg-cmds.sh' at line 2" "$msg" } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong: abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcrdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-get-sourceline.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-get-sourceline.sh
Changed
@@ -2,7 +2,7 @@ # -*- shell-script -*- this_script=test-get-sourceline.sh -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ @@ -15,21 +15,24 @@ # Test check_line # test should appear after tests which read in source. -test_get_source_line_with_spaces() +test_get_source_line_with_spaces() { _Dbg_frame_last_filename="${abs_top_srcdir}test/example/dir with spaces/bug.sh" # Can't figure out how to get this packaged with autoconf, so this # will work with git only. - if [[ -f $_Dbg_frame_filename ]] ; then + _Dbg_frame_file + if [[ -f $_Dbg_frame_filename ]] && [[ $_Dbg_frame_filename =~ 'frame.sh' ]] ; then _Dbg_get_source_line 2 - assertEquals 'x=1' "$_Dbg_source_line" + assertEquals 'x=1' "$_Dbg_source_line" else + startSkipping echo "Skipping test due to autoconf problems" assertEquals 'skipped' 'skipped' + endSkipping fi } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong abs_top_srcdir is not set." exit 1 fi @@ -38,7 +41,9 @@ . ${abs_top_srcdir}init/pre.sh . ${abs_top_srcdir}lib/filecache.sh . ${abs_top_srcdir}lib/file.sh +. ${abs_top_srcdir}lib/frame.sh . ${abs_top_srcdir}lib/msg.sh +_Dbg_set_highlight='' set -- # reset $# so shunit2 doesn't get confused. [[ $0 == ${BASH_SOURCE} ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-get-sourceline.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-get-sourceline.sh.in
Changed
@@ -15,17 +15,20 @@ # Test check_line # test should appear after tests which read in source. -test_get_source_line_with_spaces() +test_get_source_line_with_spaces() { _Dbg_frame_last_filename="${abs_top_srcdir}test/example/dir with spaces/bug.sh" # Can't figure out how to get this packaged with autoconf, so this # will work with git only. - if [[ -f $_Dbg_frame_filename ]] ; then + _Dbg_frame_file + if [[ -f $_Dbg_frame_filename ]] && [[ $_Dbg_frame_filename =~ 'frame.sh' ]] ; then _Dbg_get_source_line 2 - assertEquals 'x=1' "$_Dbg_source_line" + assertEquals 'x=1' "$_Dbg_source_line" else + startSkipping echo "Skipping test due to autoconf problems" assertEquals 'skipped' 'skipped' + endSkipping fi } @@ -38,7 +41,9 @@ . ${abs_top_srcdir}init/pre.sh . ${abs_top_srcdir}lib/filecache.sh . ${abs_top_srcdir}lib/file.sh +. ${abs_top_srcdir}lib/frame.sh . ${abs_top_srcdir}lib/msg.sh +_Dbg_set_highlight='' set -- # reset $# so shunit2 doesn't get confused. [[ @CMDLINE_INVOKED@ ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-io.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-io.sh
Changed
@@ -12,7 +12,7 @@ } # load shunit2 -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.4-0.92.tar.bz2/test/unit/test-lib-eval.sh
Added
@@ -0,0 +1,66 @@ +#!/bin/bash +# -*- shell-script -*- + +test_eval_subst() +{ + # Set up necessary vars + typeset extracted + typeset -a texts + texts=( + 'if (( x == 1 )); then' + 'if (( y == 2 )) ; then' + 'if (( y == 3 )) ;' + 'if (( y == 4 ))' + 'if (( z == 5 )) ' + 'return something' + 'elif [[ $x = test1 ]] && [ $? -eq 0 ] ; then' + 'while [[ $x = test2 ]] && [ $? -eq 0 ] ; do' + 'while [[ $x = test3 ]] && [ $? -eq 0 ]' + ) + + expected=( + '(( x == 1 ))' + '(( y == 2 )) ' + '(( y == 3 )) ' + '(( y == 4 ))' + '(( z == 5 )) ' + 'echo something' + '[[ $x = test1 ]] && [ $? -eq 0 ] ' + '[[ $x = test2 ]] && [ $? -eq 0 ] ' + '[[ $x = test3 ]] && [ $? -eq 0 ]' + ) + typeset -i i + for (( i=0 ; i<${#expected[@]}; i++ )) ; do + _Dbg_eval_extract_condition "${texts[i]}" + assertEquals "${expected[i]}" "$extracted" + done + assign='foo=bar' + pat='^[ \t]*[A-Za-z_][A-Za-z_0-9[]*[]-+]?=(.*$)' + if [[ $assign =~ $pat ]] ; then + texts=( + 'x=10' + 'array[1]=20' + '__fn__+=30' + 'PROFILES="/etc/apparmor.d"' + ) + + expected=( + 'echo 10' + 'echo 20' + 'echo 30' + 'echo "/etc/apparmor.d"' + ) + for (( i=0 ; i<${#expected[@]}; i++ )) ; do + _Dbg_eval_extract_condition "${texts[i]}" + assertEquals "${expected[i]}" "$extracted" + done + fi +} + +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb +# Make sure $abs_top_srcrdir has a trailing slash +abs_top_srcdir=${abs_top_srcdir%%/}/ +. ${abs_top_srcdir}test/unit/helper.sh +. ${abs_top_srcdir}lib/fns.sh +set -- # reset $# so shunit2 doesn't get confused. +[[ $0 == ${BASH_SOURCE} ]] && . ${shunit_file}
View file
bashdb-4.4-0.92.tar.bz2/test/unit/test-lib-eval.sh.in
Added
@@ -0,0 +1,66 @@ +#!@SH_PROG@ +# -*- shell-script -*- + +test_eval_subst() +{ + # Set up necessary vars + typeset extracted + typeset -a texts + texts=( + 'if (( x == 1 )); then' + 'if (( y == 2 )) ; then' + 'if (( y == 3 )) ;' + 'if (( y == 4 ))' + 'if (( z == 5 )) ' + 'return something' + 'elif [[ $x = test1 ]] && [ $? -eq 0 ] ; then' + 'while [[ $x = test2 ]] && [ $? -eq 0 ] ; do' + 'while [[ $x = test3 ]] && [ $? -eq 0 ]' + ) + + expected=( + '(( x == 1 ))' + '(( y == 2 )) ' + '(( y == 3 )) ' + '(( y == 4 ))' + '(( z == 5 )) ' + 'echo something' + '[[ $x = test1 ]] && [ $? -eq 0 ] ' + '[[ $x = test2 ]] && [ $? -eq 0 ] ' + '[[ $x = test3 ]] && [ $? -eq 0 ]' + ) + typeset -i i + for (( i=0 ; i<${#expected[@]}; i++ )) ; do + _Dbg_eval_extract_condition "${texts[i]}" + assertEquals "${expected[i]}" "$extracted" + done + assign='foo=bar' + pat='^[ \t]*[A-Za-z_][A-Za-z_0-9[]*[]-+]?=(.*$)' + if [[ $assign =~ $pat ]] ; then + texts=( + 'x=10' + 'array[1]=20' + '__fn__+=30' + 'PROFILES="/etc/apparmor.d"' + ) + + expected=( + 'echo 10' + 'echo 20' + 'echo 30' + 'echo "/etc/apparmor.d"' + ) + for (( i=0 ; i<${#expected[@]}; i++ )) ; do + _Dbg_eval_extract_condition "${texts[i]}" + assertEquals "${expected[i]}" "$extracted" + done + fi +} + +abs_top_srcdir=@abs_top_srcdir@ +# Make sure $abs_top_srcrdir has a trailing slash +abs_top_srcdir=${abs_top_srcdir%%/}/ +. ${abs_top_srcdir}test/unit/helper.sh +. ${abs_top_srcdir}lib/fns.sh +set -- # reset $# so shunit2 doesn't get confused. +[[ @CMDLINE_INVOKED@ ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-lib-list.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-lib-list.sh
Changed
@@ -63,7 +63,7 @@ assertEquals $((10-6)) "$_Dbg_listline" } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-msg.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-msg.sh
Changed
@@ -28,12 +28,13 @@ assertEquals '** Undefined command "foo". Try "help".' "$msg" } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh . ${abs_top_srcdir}/lib/msg.sh . ${abs_top_srcdir}/init/io.sh +_Dbg_set_highlight='' set -- # reset $# so shunit2 doesn't get confused. [[ $0 == ${BASH_SOURCE} ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-msg.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-msg.sh.in
Changed
@@ -34,6 +34,7 @@ . ${abs_top_srcdir}test/unit/helper.sh . ${abs_top_srcdir}/lib/msg.sh . ${abs_top_srcdir}/init/io.sh +_Dbg_set_highlight='' set -- # reset $# so shunit2 doesn't get confused. [[ @CMDLINE_INVOKED@ ]] && . ${shunit_file}
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-pre.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-pre.sh
Changed
@@ -23,12 +23,12 @@ # Name we refer to ourselves by typeset _Dbg_debugger_name='bashdb' # The release name we are configured to run under. - typeset _Dbg_release='4.2-0.8' + typeset _Dbg_release='4.4-0.92' - version_string=$(_Dbg_do_show_version) - assertEquals "bashdb, release 4.2-0.8" "$version_string" + version_string=$(_Dbg_do_show_version 2>&1) + assertEquals "bashdb, release 4.4-0.92" "$version_string" } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-pre.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-pre.sh.in
Changed
@@ -25,7 +25,7 @@ # The release name we are configured to run under. typeset _Dbg_release='@PACKAGE_VERSION@' - version_string=$(_Dbg_do_show_version) + version_string=$(_Dbg_do_show_version 2>&1) assertEquals "@PACKAGE@, release @PACKAGE_VERSION@" "$version_string" } abs_top_srcdir=@abs_top_srcdir@
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-require.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-require.sh
Changed
@@ -17,7 +17,7 @@ assertEquals $requires_size ${#_Dbg_requires[@]} } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-run.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-run.sh
Changed
@@ -16,7 +16,7 @@ assertEquals 1 ${#errs[@]} } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-save-restore.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-save-restore.sh
Changed
@@ -7,7 +7,9 @@ { typeset _Dbg_space_IFS=' ' typeset old_IFS="$IFS" + typeset _Dbg_old_set_opts=$- typeset new_ifs=' ' + _Dbg_old_set_nullglob=1 IFS="$new_ifs" PS4='123' _Dbg_set_debugger_entry @@ -19,7 +21,7 @@ IFS="$old_IFS" } -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-save-restore.sh.in -> bashdb-4.4-0.92.tar.bz2/test/unit/test-save-restore.sh.in
Changed
@@ -7,7 +7,9 @@ { typeset _Dbg_space_IFS=' ' typeset old_IFS="$IFS" + typeset _Dbg_old_set_opts=$- typeset new_ifs=' ' + _Dbg_old_set_nullglob=1 IFS="$new_ifs" PS4='123' _Dbg_set_debugger_entry
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-set0.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-set0.sh
Changed
@@ -17,13 +17,13 @@ assertTrue "old $oldname should not equal new $0" "$?" } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong: abs_top_srcdir is not set." exit 1 fi -abs_top_builddir=/src/external-vcs/bashdb +abs_top_builddir=/src/external-vcs/sourceforge/bashdb abs_top_builddir=${abs_top_builddir%%/}/ -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcdir has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-sort.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-sort.sh
Changed
@@ -42,11 +42,11 @@ } -if [ '/src/external-vcs/bashdb' = '' ] ; then +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcr has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-4.2-0.8.tar.bz2/test/unit/test-validate.sh -> bashdb-4.4-0.92.tar.bz2/test/unit/test-validate.sh
Changed
@@ -56,12 +56,12 @@ } -# Make sure /src/external-vcs/bashdb has a trailing slash -if [ '/src/external-vcs/bashdb' = '' ] ; then +# Make sure /src/external-vcs/sourceforge/bashdb has a trailing slash +if [ '/src/external-vcs/sourceforge/bashdb' = '' ] ; then echo "Something is wrong: abs_top_srcdir is not set." exit 1 fi -abs_top_srcdir=/src/external-vcs/bashdb +abs_top_srcdir=/src/external-vcs/sourceforge/bashdb # Make sure $abs_top_srcr has a trailing slash abs_top_srcdir=${abs_top_srcdir%%/}/ . ${abs_top_srcdir}test/unit/helper.sh
View file
bashdb-rpmlintrc
Added
@@ -0,0 +1,143 @@ +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/debug.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/bashdb-trace") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/annotate.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/alias.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/alias.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/alias.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/display.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/basename.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/columnize.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/history.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/highlight.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/commands.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/enable.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/action.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/data/shell.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/init/vars.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/watchpoints.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/journal.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/source.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/undisplay.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/clear.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/args.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/different.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/bashdb-main.inc") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/msg.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/dbg-main.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/directories.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/init/opts.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/skip.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/file.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/prompt.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/load.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/validate.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/save-restore.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/frame.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/listsize.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/display.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/help.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/kill.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/continue.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/list.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/warranty.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/bashdb-part2.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/subcmd.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/list.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/autoeval.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/quit.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/args.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/complete.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/sig.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/filecache.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/debugging.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/action.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/history.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/up.sh") +addFilter("incorrect-fsf-address .*/usr/bin/bashdb") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/autoeval.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/hook.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/run.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/commands.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/backtrace.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/tty.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/break.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/eval.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/edit.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/version.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/log.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/help.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/init/pre.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/setshow.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/listsize.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/line.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/down.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/shell.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/pwd.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/dbg-call.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/annotate.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/variables.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/stack.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/editing.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/file.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/finish.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/linetrace.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/autolist.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/handle.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/step.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/fns.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/history.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/next.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/frame.sh") +addFilter("incorrect-fsf-address .*/usr/share/doc/packages/bashdb/COPYING") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/highlight.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/program.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/display.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/tty.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/warranty.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/init/require.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/info.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/watch.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/run.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/hist.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/copying.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/showcommand.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/editing.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/files.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/prompt.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/shell.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/init/io.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/return.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/export.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/dbg-set-d-vars.inc") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/untrace.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/breakpoints.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/debug.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/handle.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/examine.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/search.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/commands.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/autolist.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/signals.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/complete.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/args.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/condition.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/disable.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/break.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/basename.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/tty.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/trace.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/trace-commands.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/signal.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/functions.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/delete.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/processor.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/info_sub/source.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/dollar0.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/different.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/debug.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/set_sub/width.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/lib/stepping.sh") +addFilter("incorrect-fsf-address .*/usr/share/bashdb/command/show_sub/width.sh")
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.