f-spot r4461 - in trunk: . src
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r4461 - in trunk: . src
- Date: Wed, 1 Oct 2008 14:01:47 +0000 (UTC)
Author: sdelcroix
Date: Wed Oct 1 14:01:47 2008
New Revision: 4461
URL: http://svn.gnome.org/viewvc/f-spot?rev=4461&view=rev
Log:
2009-10-01 Stephane Delcroix <sdelcroix novell com>
* src/f-spot.in:
* src/main.cs: --valgrind option
Modified:
trunk/ChangeLog
trunk/src/f-spot.in
trunk/src/main.cs
Modified: trunk/src/f-spot.in
==============================================================================
--- trunk/src/f-spot.in (original)
+++ trunk/src/f-spot.in Wed Oct 1 14:01:47 2008
@@ -28,6 +28,7 @@
[ -n "$FSPOT_PROFILE" ] && FSPOT_PROFILE="--profile=$FSPOT_PROFILE"
run_mdb=false
run_gdb=false
+run_valgrind=false
for arg in "$@"; do
case "x$arg" in
x--debug)
@@ -39,6 +40,9 @@
x--gdb)
run_gdb=true
;;
+ x--valgrind)
+ run_valgrind=true
+ ;;
x--trace=*)
FSPOT_TRACE="$arg"
;;
@@ -66,6 +70,8 @@
mdb $EXE_TO_RUN -args "$@"
elif $run_gdb; then
gdb --eval-command=run --args mono $MONO_OPTIONS $EXE_TO_RUN "$@"
+elif $run_valgrind; then
+ valgrind --tool=memcheck --leak-check=full --log-file=valgrind --smc-check=all --suppressions=/home/sde/Mono/mono/data/mono.supp mono $MONO_OPTIONS $EXE_TO_RUN "$@"
else
exec -a @PACKAGE@ $DBUSLAUNCH mono $MONO_OPTIONS $EXE_TO_RUN "$@"
fi
Modified: trunk/src/main.cs
==============================================================================
--- trunk/src/main.cs (original)
+++ trunk/src/main.cs Wed Oct 1 14:01:47 2008
@@ -148,7 +148,7 @@
GLib.Log.SetLogHandler ("Gtk", GLib.LogLevelFlags.Critical, logFunc);
break;
- case "--uninstalled": case "--gdb":
+ case "--uninstalled": case "--gdb": case "--valgrind":
break;
default:
if (args [i].StartsWith ("--profile"))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]