]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
(merge from 20020320)
authorJulian Seward <jseward@acm.org>
Sun, 24 Mar 2002 10:05:14 +0000 (10:05 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 24 Mar 2002 10:05:14 +0000 (10:05 +0000)
(commented out): sleep(10) at startup to give enough time to attach GDB.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@14

coregrind/vg_main.c
vg_main.c

index a80a79fd389549f52401f3c7d08cec40592de7de..7665d86dc5cf1cbfef2dac0f2973adb42ed4adec 100644 (file)
@@ -1156,6 +1156,10 @@ void VG_(main) ( void )
    VGP_(init_profiling)();
 #  endif
 
+   /* Hook to delay things long enough so we can get the pid and
+      attach GDB in another shell. */
+   /* {extern unsigned int sleep(unsigned int seconds); sleep(10);} */
+
    if (VG_(clo_instrument)) {
       VGP_PUSHCC(VgpInitAudit);
       VGM_(init_memory_audit)();
index a80a79fd389549f52401f3c7d08cec40592de7de..7665d86dc5cf1cbfef2dac0f2973adb42ed4adec 100644 (file)
--- a/vg_main.c
+++ b/vg_main.c
@@ -1156,6 +1156,10 @@ void VG_(main) ( void )
    VGP_(init_profiling)();
 #  endif
 
+   /* Hook to delay things long enough so we can get the pid and
+      attach GDB in another shell. */
+   /* {extern unsigned int sleep(unsigned int seconds); sleep(10);} */
+
    if (VG_(clo_instrument)) {
       VGP_PUSHCC(VgpInitAudit);
       VGM_(init_memory_audit)();