Files
binutils-gdb/libsframe/testsuite/libsframe.decode
Indu Bhagat 6150c6c061 [SFrame-V3] libsframe: testsuite: add a new test for SFrame V2
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.
2026-01-15 17:02:23 -08:00
..