summaryrefslogtreecommitdiff
path: root/elf/filter.c
diff options
context:
space:
mode:
Diffstat (limited to 'elf/filter.c')
-rw-r--r--elf/filter.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/elf/filter.c b/elf/filter.c
index 76bc91adc5..46aa15ba16 100644
--- a/elf/filter.c
+++ b/elf/filter.c
@@ -1,3 +1,4 @@
+#include <mcheck.h>
#include <stdio.h>
#include <string.h>
@@ -6,7 +7,11 @@ extern const char *foo (void);
int
main (void)
{
- const char *s = foo ();
+ const char *s;
+
+ mtrace ();
+
+ s = foo ();
printf ("called `foo' from `%s'\n", s);