"or are doing some strange experiment):\n"
" %s/../../bin/vgdb --pid=%d%s%s ...command...\n",
VG_LIBDIR,
- pid, (name_default ? "" : " --vgdb="),
+ pid, (name_default ? "" : " --vgdb-prefix="),
(name_default ? "" : name));
}
if (VG_(clo_verbosity) > 1
" target remote | %s/../../bin/vgdb --pid=%d%s%s\n",
VG_(args_the_exename),
VG_LIBDIR,
- pid, (name_default ? "" : " --vgdb="),
+ pid, (name_default ? "" : " --vgdb-prefix="),
(name_default ? "" : name)
);
VG_(umsg)("--pid is optional if only one valgrind process is running\n");
}
if (pid == 0) {
+ int burn;
+ for (burn = 0; burn < 100000; burn++) /* burncpu */__asm__ __volatile("":::"memory") ;
if (mem == 0)
exit(0);
else
+
+
HEAP SUMMARY:
in use at exit: 0 bytes in 0 blocks
total heap usage: 0 allocs, 0 frees, 0 bytes allocated
# also put breaks in code that only the child will execute.
# These breaks should not be encountered.
break clean_after_fork.c:9
-break clean_after_fork.c:18
break clean_after_fork.c:20
+break clean_after_fork.c:22
#
continue
# first break encountered.
Breakpoint 1 at 0x........: file clean_after_fork.c, line 9.
-Breakpoint 2 at 0x........: file clean_after_fork.c, line 18.
-Breakpoint 3 at 0x........: file clean_after_fork.c, line 20.
+Breakpoint 2 at 0x........: file clean_after_fork.c, line 20.
+Breakpoint 3 at 0x........: file clean_after_fork.c, line 22.
Continuing.
Breakpoint 1, main () at clean_after_fork.c:9
9 pid = fork();
Continuing.
Hardware read watchpoint 4: mem
Value = 0
-main () at clean_after_fork.c:32
-32 if (mem == 0)
+main () at clean_after_fork.c:34
+34 if (mem == 0)