]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
* external namespace check
authorJulian Seward <jseward@acm.org>
Sun, 14 Apr 2002 13:01:38 +0000 (13:01 +0000)
committerJulian Seward <jseward@acm.org>
Sun, 14 Apr 2002 13:01:38 +0000 (13:01 +0000)
* VG_(printf) format strings check

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

16 files changed:
Makefile.am
addrcheck/Makefile.am
cachegrind/Makefile.am
corecheck/Makefile.am
coregrind/Makefile.am
coregrind/vg_memory.c
coregrind/vg_scheduler.c
coregrind/vg_signals.c
helgrind/Makefile.am
lackey/Makefile.am
memcheck/Makefile.am
none/Makefile.am
vg_clientperms.c
vg_memory.c
vg_scheduler.c
vg_signals.c

index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index 5e932fbcdd970f2c9ad94709d84e99a14698c95b..731344d040aa363ab56b76242b75d38ba3d385ab 100644 (file)
@@ -1629,7 +1629,7 @@ void VGM_(init_memory_audit) ( void )
       VG_(panic)("vgm_init_memory_audit: can't determine data-seg end");
 
    if (0)
-      VG_(printf)("DS END is %p\n", VGM_(curr_dataseg_end));
+      VG_(printf)("DS END is %p\n", (void*)VGM_(curr_dataseg_end));
 
    /* Read the list of errors to suppress.  This should be found in
       the file specified by vg_clo_suppressions. */
@@ -1731,7 +1731,7 @@ UInt VG_(scan_all_valid_memory) ( void (*notify_word)( Addr, UInt ) )
          if (0)
          VG_(printf)(
             "vg_scan_all_valid_memory_sighandler: ignoring page at %p\n",
-            pageBase 
+            (void*)pageBase 
          );
       }
    }
index dc3024e5a7e985b9a1333360598822e90692098d..330bbde3f3bd405adc4d021e21097628af8ed611 100644 (file)
@@ -57,6 +57,9 @@ suitable for use by anyone at all!
 - Read/write syscall starts: don't crap out when the initial
   nonblocking read/write returns an error.
 
+- Get rid of restrictions re use of sigaltstack; they are no longer
+  needed.  
+
 */
 
 
@@ -433,8 +436,8 @@ void VG_(scheduler_init) ( void )
 
    startup_esp = VG_(baseBlock)[VGOFF_(m_esp)];
    if ((startup_esp & VG_STARTUP_STACK_MASK) != VG_STARTUP_STACK_MASK) {
-      VG_(printf)("%esp at startup = %p is not near %p; aborting\n", 
-                  startup_esp, VG_STARTUP_STACK_MASK);
+      VG_(printf)("%%esp at startup = %p is not near %p; aborting\n", 
+                  (void*)startup_esp, (void*)VG_STARTUP_STACK_MASK);
       VG_(panic)("unexpected %esp at startup");
    }
 
@@ -685,6 +688,7 @@ void sched_do_syscall ( ThreadId tid )
    possibly much later: it delivers the results from ready fds to
    threads in WaitFD state. 
 */
+static
 void poll_for_ready_fds ( void )
 {
    vki_ksigset_t      saved_procmask;
@@ -827,6 +831,7 @@ void poll_for_ready_fds ( void )
 
 
 /* See comment attached to poll_for_ready_fds() for explaination. */
+static
 void complete_blocked_syscalls ( void )
 {
    Int      fd, i, res, syscall_no;
index 4687e64e42df15dc037051627b9e0cd5218abc41..c03ebd1efce6d57f5644c7b17e641f903246811e 100644 (file)
@@ -481,7 +481,7 @@ void pp_vg_ksigaction ( vki_ksigaction* sa )
 {
    Int i;
    VG_(printf)("vg_ksigaction: handler %p, flags 0x%x, restorer %p\n", 
-               sa->ksa_handler, sa->ksa_flags, sa->ksa_restorer);
+               sa->ksa_handler, (UInt)sa->ksa_flags, sa->ksa_restorer);
    VG_(printf)("vg_ksigaction: { ");
    for (i = 1; i < VKI_KNSIG; i++)
       if (VG_(ksigismember(&(sa->ksa_mask),i)))
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index ec6775eaee88fadd6da5def157aa1a40ed5fccc8..6e1826a4e448bcb1c17555b62f6ea0f763e3c00a 100644 (file)
@@ -54,7 +54,6 @@ valgrind_so_SOURCES = \
        vg_to_ucode.c \
        vg_translate.c \
        vg_transtab.c \
-       vg_valgrinq_dummy.c \
        vg_vtagops.c
 
 valgrind_so_LDADD = \
index 8594a3eee58f374a15961cd47657fcae95621082..15f3a3d2ad88875c9ec10a2f5ef3c317b5b064c5 100644 (file)
@@ -286,7 +286,8 @@ void VG_(delete_client_stack_blocks_following_ESP_change) ( void )
       vg_csb_discards++;
       if (VG_(clo_verbosity) > 2)
          VG_(printf)("discarding stack block %p for %d\n", 
-            vg_csbs[vg_csb_used].start, vg_csbs[vg_csb_used].size);
+            (void*)vg_csbs[vg_csb_used].start, 
+            vg_csbs[vg_csb_used].size);
    }
 }
 
@@ -300,7 +301,7 @@ UInt VG_(handle_client_request) ( ThreadState* tst, UInt* arg_block )
 
    if (VG_(clo_verbosity) > 2)
       VG_(printf)("client request: code %d,  addr %p,  len %d\n", 
-                  arg[0], arg[1], arg[2] );
+                  arg[0], (void*)arg[1], arg[2] );
 
    vg_assert(VG_(clo_client_perms));
    vg_assert(VG_(clo_instrument));
index 5e932fbcdd970f2c9ad94709d84e99a14698c95b..731344d040aa363ab56b76242b75d38ba3d385ab 100644 (file)
@@ -1629,7 +1629,7 @@ void VGM_(init_memory_audit) ( void )
       VG_(panic)("vgm_init_memory_audit: can't determine data-seg end");
 
    if (0)
-      VG_(printf)("DS END is %p\n", VGM_(curr_dataseg_end));
+      VG_(printf)("DS END is %p\n", (void*)VGM_(curr_dataseg_end));
 
    /* Read the list of errors to suppress.  This should be found in
       the file specified by vg_clo_suppressions. */
@@ -1731,7 +1731,7 @@ UInt VG_(scan_all_valid_memory) ( void (*notify_word)( Addr, UInt ) )
          if (0)
          VG_(printf)(
             "vg_scan_all_valid_memory_sighandler: ignoring page at %p\n",
-            pageBase 
+            (void*)pageBase 
          );
       }
    }
index dc3024e5a7e985b9a1333360598822e90692098d..330bbde3f3bd405adc4d021e21097628af8ed611 100644 (file)
@@ -57,6 +57,9 @@ suitable for use by anyone at all!
 - Read/write syscall starts: don't crap out when the initial
   nonblocking read/write returns an error.
 
+- Get rid of restrictions re use of sigaltstack; they are no longer
+  needed.  
+
 */
 
 
@@ -433,8 +436,8 @@ void VG_(scheduler_init) ( void )
 
    startup_esp = VG_(baseBlock)[VGOFF_(m_esp)];
    if ((startup_esp & VG_STARTUP_STACK_MASK) != VG_STARTUP_STACK_MASK) {
-      VG_(printf)("%esp at startup = %p is not near %p; aborting\n", 
-                  startup_esp, VG_STARTUP_STACK_MASK);
+      VG_(printf)("%%esp at startup = %p is not near %p; aborting\n", 
+                  (void*)startup_esp, (void*)VG_STARTUP_STACK_MASK);
       VG_(panic)("unexpected %esp at startup");
    }
 
@@ -685,6 +688,7 @@ void sched_do_syscall ( ThreadId tid )
    possibly much later: it delivers the results from ready fds to
    threads in WaitFD state. 
 */
+static
 void poll_for_ready_fds ( void )
 {
    vki_ksigset_t      saved_procmask;
@@ -827,6 +831,7 @@ void poll_for_ready_fds ( void )
 
 
 /* See comment attached to poll_for_ready_fds() for explaination. */
+static
 void complete_blocked_syscalls ( void )
 {
    Int      fd, i, res, syscall_no;
index 4687e64e42df15dc037051627b9e0cd5218abc41..c03ebd1efce6d57f5644c7b17e641f903246811e 100644 (file)
@@ -481,7 +481,7 @@ void pp_vg_ksigaction ( vki_ksigaction* sa )
 {
    Int i;
    VG_(printf)("vg_ksigaction: handler %p, flags 0x%x, restorer %p\n", 
-               sa->ksa_handler, sa->ksa_flags, sa->ksa_restorer);
+               sa->ksa_handler, (UInt)sa->ksa_flags, sa->ksa_restorer);
    VG_(printf)("vg_ksigaction: { ");
    for (i = 1; i < VKI_KNSIG; i++)
       if (VG_(ksigismember(&(sa->ksa_mask),i)))