|
From: <sv...@va...> - 2006-04-21 01:02:15
|
Author: weidendo
Date: 2006-04-21 02:02:13 +0100 (Fri, 21 Apr 2006)
New Revision: 5862
Log:
Another fix for interactive control, together with
the --base option, which allows to specify another
directory for dumps and control/result files.
With "--base=3D/tmp/foo", we want control/result files
in "/tmp", and not in a directory "/tmp/foo/".
Modified:
trunk/callgrind/dump.c
Modified: trunk/callgrind/dump.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/callgrind/dump.c 2006-04-21 00:58:58 UTC (rev 5861)
+++ trunk/callgrind/dump.c 2006-04-21 01:02:13 UTC (rev 5862)
@@ -1659,6 +1659,7 @@
lastSlash =3D i;
i++;
}
+ i =3D lastSlash;
base_directory =3D (Char*) CLG_MALLOC(i+1);
VG_(strncpy)(base_directory, CLG_(clo).filename_base, i);
base_directory[i] =3D 0;
|