]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Add intercepts for unsigned long versions of the nothrow new and new[]
authorTom Hughes <tom@compton.nu>
Wed, 4 May 2005 18:01:26 +0000 (18:01 +0000)
committerTom Hughes <tom@compton.nu>
Wed, 4 May 2005 18:01:26 +0000 (18:01 +0000)
operators for 64 bit platforms.

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

coregrind/vg_replace_malloc.c

index c9ba6f32ecb6b7939164938c5240c62332def3c3..e690c27bfa7d83e66c10a1d88a44795e38a9074a 100644 (file)
@@ -235,11 +235,16 @@ ALLOC_or_BOMB(m_libc_dot_so_dot_6,     _Znwm,          __builtin_new);
 // operator new(unsigned int), ARM/cfront mangling
 //ALLOC_or_BOMB(m_libpgc_dot_so,         __nw__FUi,      __builtin_new);
 
-// TODO: create 64-bit version
+// TODO: these should only exist on 32-bit platforms
 // operator new(unsigned, std::nothrow_t const&), GNU mangling
 ALLOC_or_NULL(m_libstc_plus_plus_star, _ZnwjRKSt9nothrow_t,  __builtin_new);
 ALLOC_or_NULL(m_libc_dot_so_dot_6,     _ZnwjRKSt9nothrow_t,  __builtin_new);
 
+// TODO: these should only exist on 64-bit platforms
+// operator new(unsigned long, std::nothrow_t const&), GNU mangling
+ALLOC_or_NULL(m_libstc_plus_plus_star, _ZnwmRKSt9nothrow_t,  __builtin_new);
+ALLOC_or_NULL(m_libc_dot_so_dot_6,     _ZnwmRKSt9nothrow_t,  __builtin_new);
+
 // operator new[](unsigned int), GNU mangling
 ALLOC_or_BOMB(m_libstc_plus_plus_star, __builtin_vec_new, __builtin_vec_new );
 ALLOC_or_BOMB(m_libc_dot_so_dot_6,     __builtin_vec_new, __builtin_vec_new );
@@ -253,11 +258,16 @@ ALLOC_or_BOMB(m_libc_dot_so_dot_6,     _Znaj,             __builtin_vec_new );
 ALLOC_or_BOMB(m_libstc_plus_plus_star, _Znam,             __builtin_vec_new );
 ALLOC_or_BOMB(m_libc_dot_so_dot_6,     _Znam,             __builtin_vec_new );
 
-// TODO: create 64-bit version
+// TODO: these should only exist on 32-bit platforms
 // operator new[](unsigned, std::nothrow_t const&), GNU mangling
 ALLOC_or_NULL(m_libstc_plus_plus_star, _ZnajRKSt9nothrow_t, __builtin_vec_new );
 ALLOC_or_NULL(m_libc_dot_so_dot_6,     _ZnajRKSt9nothrow_t, __builtin_vec_new );
 
+// TODO: these should only exist on 64-bit platforms
+// operator new[](unsigned long, std::nothrow_t const&), GNU mangling
+ALLOC_or_NULL(m_libstc_plus_plus_star, _ZnamRKSt9nothrow_t, __builtin_vec_new );
+ALLOC_or_NULL(m_libc_dot_so_dot_6,     _ZnamRKSt9nothrow_t, __builtin_vec_new );
+
 
 /* Generate a replacement for 'fnname' in object 'soname', which calls
    'vg_replacement' to free previously allocated memory.