mirror of
https://github.com/sstefani/mtrace.git
synced 2025-12-06 16:56:41 +08:00
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:
parent
6031fde150
commit
589d790789
@ -24,7 +24,7 @@
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
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_SRCDIR(main.c)
|
||||
AC_CONFIG_MACRO_DIR([config/m4])
|
||||
|
||||
6
report.c
6
report.c
@ -345,10 +345,16 @@ static const struct function flist[] = {
|
||||
{ "mremap", "mremap", 0, report_mremap, _report_mremap },
|
||||
{ "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)", "_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&)", "_ZnamRKSt9nothrow_t", 1, NULL, _report_malloc },
|
||||
|
||||
{ "delete(void*)", "_ZdlPv", 1, report_free, NULL },
|
||||
{ "delete[](void*)", "_ZdaPv", 1, report_free, NULL },
|
||||
{ "delete(void*, std::nothrow_t const&)", "_ZdlPvRKSt9nothrow_t", 1, report_free, NULL },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user