diff --git a/configure.ac b/configure.ac index 305c9f3..efb87e1 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/report.c b/report.c index 0f95964..4e207dd 100644 --- a/report.c +++ b/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 },