Revision: 3569 Author: eliot Date: 2016-01-24 11:07:04 -0800 (Sun, 24 Jan 2016) Log Message: ----------- Add a -gdb option to the unix lanch scripts. This must be the first parameter. Cause it to invoke gdb on the VM instead of the VM itself, to echo the supplied arguments as a run command for gdb, and to clear the arguments to gdb.
Add the relevant ignore properties to the no access control linux newspeak build.
Modified Paths: -------------- branches/Cog/build.linux32x86/nsnac.cog.spur/build/mvm branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert/mvm branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat/mvm branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug/mvm branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat/mvm branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat/mvm branches/Cog/platforms/unix/config/bin.squeak.sh.in branches/Cog/platforms/unix/config/squeak.sh.in
Property Changed: ---------------- branches/Cog/build.linux32x86/nsnac.cog.spur/build/ branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert/ branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat/ branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug/ branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat/ branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat/
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # VM with VM profiler and threaded heartbeat -INSTALLDIR=nscogspurlinuxht +INSTALLDIR=nsnaccogspurlinuxht # Some gcc versions create a broken VM using -O2 case `gcc -v 2>&1 | grep version | sed 's/gcc version *//'` in 3.4.*) OPT="-g -O1 -fwrapv -DNDEBUG -DDEBUGVM=0";;
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # assert Spur VM with VM profiler and threaded heartbeat -INSTALLDIR=assert/nscogspurlinuxht +INSTALLDIR=assert/nsnaccogspurlinuxht OPT="-g3 -O1 -fwrapv -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DDEBUGVM=0"
if [ $# -ge 1 ]; then
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build.assert.itimerheartbeat/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # assert Spur VM with VM profiler and itimer heartbeat -INSTALLDIR=assert/nscogspurlinux +INSTALLDIR=assert/nsnaccogspurlinux OPT="-g3 -O1 -fwrapv -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DDEBUGVM=0"
if [ $# -ge 1 ]; then
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # debug Spur VM with VM profiler and threaded heartbeat -INSTALLDIR=debug/nscogspurlinuxht +INSTALLDIR=debug/nsnaccogspurlinuxht OPT="-g3 -O0 -fwrapv -DDEBUGVM=1"
if [ $# -ge 1 ]; then
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build.debug.itimerheartbeat/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # debug Spur VM with VM profiler and itimer heartbeat -INSTALLDIR=debug/nscogspurlinux +INSTALLDIR=debug/nsnaccogspurlinux OPT="-g3 -O0 -fwrapv -DDEBUGVM=1"
if [ $# -ge 1 ]; then
Property changes on: branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat ___________________________________________________________________ Added: svn:ignore + *
Modified: branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat/mvm =================================================================== --- branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat/mvm 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/build.linux32x86/nsnac.cog.spur/build.itimerheartbeat/mvm 2016-01-24 19:07:04 UTC (rev 3569) @@ -1,6 +1,6 @@ #!/bin/bash # Spur VM with VM profiler and itimer heartbeat -INSTALLDIR=nscogspurlinux +INSTALLDIR=nsnaccogspurlinux # Some gcc versions create a broken VM using -O2 case `gcc -v 2>&1 | grep version | sed 's/gcc version *//'` in 3.4.*) OPT="-g -O1 -fwrapv -DNDEBUG -DDEBUGVM=0";;
Modified: branches/Cog/platforms/unix/config/bin.squeak.sh.in =================================================================== --- branches/Cog/platforms/unix/config/bin.squeak.sh.in 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/platforms/unix/config/bin.squeak.sh.in 2016-01-24 19:07:04 UTC (rev 3569) @@ -2,9 +2,16 @@ # Run the VM, setting SQUEAK_PLUGINS if unset to the VM's containing directory # if unset, and ensuring LD_LIBRARY_PATH includes the VM's containing directory. BIN=`/usr/bin/dirname $0`/../@expanded_relative_imgdir@ +GDB= if [ "${SQUEAK_PLUGINS-unset}" = unset ]; then export SQUEAK_PLUGINS="$BIN" fi +if [ "$1" = '-gdb' ]; then + GDB=gdb + shift + echo;echo run $@; echo + set -- +fi # At least on linux LD_LIBRARY_PATH's components must be absolute path names case "$BIN" in /*) PLUGINS="$BIN";; @@ -45,4 +52,4 @@ # prepending is less flexible but safer because it ensures we find the plugins # in the same directory as the VM. We must include at least /lib and /usr/lib # if libraries there-in are to be found. These directories are not implicit. -LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" "$@" +LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec $GDB "$BIN/squeak" "$@"
Modified: branches/Cog/platforms/unix/config/squeak.sh.in =================================================================== --- branches/Cog/platforms/unix/config/squeak.sh.in 2016-01-23 23:16:44 UTC (rev 3568) +++ branches/Cog/platforms/unix/config/squeak.sh.in 2016-01-24 19:07:04 UTC (rev 3569) @@ -2,9 +2,16 @@ # Run the VM, setting SQUEAK_PLUGINS if unset to the VM's containing directory # if unset, and ensuring LD_LIBRARY_PATH includes the VM's containing directory. BIN=`/usr/bin/dirname $0`/@expanded_relative_imgdir@ +GDB= if [ "${SQUEAK_PLUGINS-unset}" = unset ]; then export SQUEAK_PLUGINS="$BIN" fi +if [ "$1" = '-gdb' ]; then + GDB=gdb + shift + echo;echo run $@; echo + set -- +fi # At least on linux LD_LIBRARY_PATH's components must be absolute path names case "$BIN" in /*) PLUGINS="$BIN";; @@ -45,4 +52,4 @@ # prepending is less flexible but safer because it ensures we find the plugins # in the same directory as the VM. We must include at least /lib and /usr/lib # if libraries there-in are to be found. These directories are not implicit. -LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec "$BIN/squeak" "$@" +LD_LIBRARY_PATH="$PLUGINS:$SVMLLP:${LD_LIBRARY_PATH}" exec $GDB "$BIN/squeak" "$@"
vm-dev@lists.squeakfoundation.org