mirror of
https://github.com/bminor/binutils-gdb.git
synced 2026-02-05 15:41:29 +00:00
The existing frecnt-2.c testcase reads the SFrame section from the provided DATA2 buffer. It exercises the sframe_decode (), sframe_decoder_get_num_fidx (), and sframe_decoder_get_funcdesc_v2 () APIs. Currently DATA2 file is the SFrame section created from the test input (mentioned in the comments in the file) in SFrame version 2 format. Moving forward, creating SFrame V2 section via GNU assembler and GNU ld will not be supported. But textual dump of SFrame V2 sections via readelf/objdump will need to be supported. Add a test similar to frecnt-2.c using SFrame version 2 binary data to the libsframe testsuite. Such a test will help ensure that sframe_decode () and related APIs remain tested for multiple supported arches till the support for dumping V2 sections is to be maintained. Duplicate frecnt-2.c to create a frecnt-v2.c, the latter will test with a SFrame V2 input section always. Reviewed-by: Jens Remus <jremus@linux.ibm.com> libsframe/ * Makefile.in: Regenerated. libsframe/testsuite/ * libsframe.decode/decode.exp: Add new test. * libsframe.decode/local.mk: Likewise * libsframe.decode/DATA-V2: New SFrame V2 test data file. * libsframe.decode/frecnt-v2.c: New test.
21 lines
638 B
Makefile
21 lines
638 B
Makefile
check_PROGRAMS =
|
|
if HAVE_COMPAT_DEJAGNU
|
|
check_PROGRAMS += %D%/be-flipping %D%/frecnt-1 %D%/frecnt-2 %D%/frecnt-v2
|
|
endif
|
|
|
|
%C%_be_flipping_SOURCES = %D%/be-flipping.c
|
|
%C%_be_flipping_LDADD = $(testsuite_LDADD)
|
|
%C%_be_flipping_CPPFLAGS = $(testsuite_CPPFLAGS)
|
|
|
|
%C%_frecnt_1_SOURCES = %D%/frecnt-1.c
|
|
%C%_frecnt_1_LDADD = $(testsuite_LDADD)
|
|
%C%_frecnt_1_CPPFLAGS = $(testsuite_CPPFLAGS)
|
|
|
|
%C%_frecnt_2_SOURCES = %D%/frecnt-2.c
|
|
%C%_frecnt_2_LDADD = $(testsuite_LDADD)
|
|
%C%_frecnt_2_CPPFLAGS = $(testsuite_CPPFLAGS)
|
|
|
|
%C%_frecnt_v2_SOURCES = %D%/frecnt-v2.c
|
|
%C%_frecnt_v2_LDADD = $(testsuite_LDADD)
|
|
%C%_frecnt_v2_CPPFLAGS = $(testsuite_CPPFLAGS)
|