From 1e344a061a09202e02329a263c2fc1a7c48df3e8 Mon Sep 17 00:00:00 2001 From: Milian Wolff Date: Thu, 15 May 2014 22:33:07 +0200 Subject: [PATCH] Stop at static_initialization_and_destruction --- malloctrace.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/malloctrace.cpp b/malloctrace.cpp index 9b9071d..fb25a1f 100644 --- a/malloctrace.cpp +++ b/malloctrace.cpp @@ -139,7 +139,9 @@ void print_caller() const bool skip = name[0] == '_' && name[1] == 'Z' && name[2] == 'n' && name[4] == 'm' && name[5] == '\0' && (name[3] == 'w' || name[3] == 'a'); - const bool stop = !skip && (!strcmp(name, "main") || !strcmp(name, "_GLOBAL__sub_I_main")); + const bool stop = !skip && (!strcmp(name, "main") + || !strcmp(name, "_GLOBAL__sub_I_main") + || !strcmp(name, "_Z41__static_initialization_and_destruction_0ii")); const size_t id = next_cache_id++; // and store it in the cache -- 2.7.4