|
From: <sv...@va...> - 2005-04-25 02:38:34
|
Author: sewardj
Date: 2005-04-25 03:38:28 +0100 (Mon, 25 Apr 2005)
New Revision: 3563
Modified:
trunk/coregrind/vg_main.c
Log:
More debug printing
Modified: trunk/coregrind/vg_main.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/coregrind/vg_main.c 2005-04-25 02:37:56 UTC (rev 3562)
+++ trunk/coregrind/vg_main.c 2005-04-25 02:38:28 UTC (rev 3563)
@@ -2169,15 +2169,15 @@
start allocating more memory (note: heap is OK, it's just mmap
which is the problem here). */
if (start >=3D VG_(client_end) && start < VG_(valgrind_last)) {
- if (0)
- VG_(printf)("init1: %p-%p prot %s\n",
- start, start+size, VG_(prot_str)(prot));
+ VG_(debugLog)(2, "main",
+ "valgrind-seg: %p-%p prot 0x%x file=3D%s\n",
+ start, start+size, prot, filename);
VG_(map_file_segment)(start, size, prot,
- SF_MMAP|SF_NOSYMS|SF_VALGRIND,
- dev, ino, foffset, filename);
+ SF_MMAP|SF_NOSYMS|SF_VALGRIND,
+ dev, ino, foffset, filename);
/* update VG_(valgrind_last) if it looks wrong */
if (start+size > VG_(valgrind_last))
- VG_(valgrind_last) =3D start+size-1;
+ VG_(valgrind_last) =3D start+size-1;
}
}
=20
@@ -2205,9 +2205,9 @@
is_stack_segment=20
=3D (start =3D=3D VG_(clstk_base) && (start+size) =3D=3D VG_(clstk=
_end));
=20
- if (0)
- VG_(printf)("init2: %p-%p prot %s stack=3D%d\n",
- start, start+size, VG_(prot_str)(prot), is_stack_segment);
+ VG_(debugLog)(2, "main",
+ "any-seg: %p-%p prot 0x%x stack=3D%d file=3D%s\n",
+ start, start+size, prot, is_stack_segment, filename);
=20
if (is_stack_segment)
flags =3D SF_STACK | SF_GROWDOWN;
|