fix for 32 bit new methods

32 bit new methods have different symbols, due size_t is unsigned int
instead of unsigned long
This commit is contained in:
Stefani Seibold 2015-10-14 09:12:22 +02:00
parent 6031fde150
commit 589d790789
2 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,7 @@
# Process this file with autoconf to produce a configure script. # Process this file with autoconf to produce a configure script.
AC_PREREQ(2.65) AC_PREREQ(2.65)
AC_INIT([mtrace],[0.2],[stefani@seibold.net]) AC_INIT([mtrace],[0.3],[stefani@seibold.net])
AC_CONFIG_HEADERS([config.h]) AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR(main.c) AC_CONFIG_SRCDIR(main.c)
AC_CONFIG_MACRO_DIR([config/m4]) AC_CONFIG_MACRO_DIR([config/m4])

View File

@ -345,10 +345,16 @@ static const struct function flist[] = {
{ "mremap", "mremap", 0, report_mremap, _report_mremap }, { "mremap", "mremap", 0, report_mremap, _report_mremap },
{ "cfree", "cfree", 1, report_free, NULL }, { "cfree", "cfree", 1, report_free, NULL },
{ "new(unsigned int)", "_Znwj", 1, NULL, _report_malloc },
{ "new[](unsigned int)", "_Znaj", 1, NULL, _report_malloc },
{ "new(unsigned int, std::nothrow_t const&)", "_ZnwjRKSt9nothrow_t", 1, NULL, _report_malloc },
{ "new[](unsigned int, std::nothrow_t const&)", "_ZnajRKSt9nothrow_t", 1, NULL, _report_malloc },
{ "new(unsigned long)", "_Znwm", 1, NULL, _report_malloc }, { "new(unsigned long)", "_Znwm", 1, NULL, _report_malloc },
{ "new[](unsigned long)", "_Znam", 1, NULL, _report_malloc }, { "new[](unsigned long)", "_Znam", 1, NULL, _report_malloc },
{ "new(unsigned long, std::nothrow_t const&)", "_ZnwmRKSt9nothrow_t", 1, NULL, _report_malloc }, { "new(unsigned long, std::nothrow_t const&)", "_ZnwmRKSt9nothrow_t", 1, NULL, _report_malloc },
{ "new[](unsigned long, std::nothrow_t const&)", "_ZnamRKSt9nothrow_t", 1, NULL, _report_malloc }, { "new[](unsigned long, std::nothrow_t const&)", "_ZnamRKSt9nothrow_t", 1, NULL, _report_malloc },
{ "delete(void*)", "_ZdlPv", 1, report_free, NULL }, { "delete(void*)", "_ZdlPv", 1, report_free, NULL },
{ "delete[](void*)", "_ZdaPv", 1, report_free, NULL }, { "delete[](void*)", "_ZdaPv", 1, report_free, NULL },
{ "delete(void*, std::nothrow_t const&)", "_ZdlPvRKSt9nothrow_t", 1, report_free, NULL }, { "delete(void*, std::nothrow_t const&)", "_ZdlPvRKSt9nothrow_t", 1, report_free, NULL },