mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
Add a simple testdemangle.c test program
This commit is contained in:
11
Makefile.am
11
Makefile.am
@ -100,7 +100,7 @@ sysprof_cli_LDADD = $(CORE_DEP_LIBS)
|
||||
#
|
||||
# Test programs
|
||||
#
|
||||
noinst_PROGRAMS = testelf testunwind
|
||||
noinst_PROGRAMS = testelf testunwind testdemangle
|
||||
|
||||
# testunwind
|
||||
testunwind_SOURCES = \
|
||||
@ -122,3 +122,12 @@ testelf_SOURCES = \
|
||||
|
||||
testelf_CPPFLAGS = $(CORE_DEP_CFLAGS)
|
||||
testelf_LDADD = $(CORE_DEP_LIBS)
|
||||
|
||||
# testdemangle
|
||||
testdemangle_SOURCES = \
|
||||
testdemangle.c \
|
||||
elfparser.c \
|
||||
elfparser.h \
|
||||
demangle.c
|
||||
testdemangle_CPPFLAGS = $(CORE_DEP_CFLAGS)
|
||||
testdemangle_LDADD = $(CORE_DEP_LIBS)
|
||||
|
||||
7
testdemangle.c
Normal file
7
testdemangle.c
Normal file
@ -0,0 +1,7 @@
|
||||
#include "elfparser.h"
|
||||
|
||||
int
|
||||
main ()
|
||||
{
|
||||
printf ("%s\n", elf_demangle ("_ZN8Inkscape7FiltersL12filter2D_FIRIhLj4EEEvPT_iiPKS2_iiiiPKNS_4Util10FixedPointIjLj16EEEii"));
|
||||
}
|
||||
Reference in New Issue
Block a user