diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2023-05-17 23:14:36 -0700 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2023-05-17 23:14:36 -0700 |
commit | efd3b63b68b56c15ba4558d937214251a4ef16df (patch) | |
tree | ac0fe48241e3369f1d2067d188813b1052d6db41 /libsframe/testsuite/local.mk | |
parent | 0cc8cc5e6f82b8d3d8e3803c6f7f5e63f0c866ad (diff) | |
download | gdb-efd3b63b68b56c15ba4558d937214251a4ef16df.zip gdb-efd3b63b68b56c15ba4558d937214251a4ef16df.tar.gz gdb-efd3b63b68b56c15ba4558d937214251a4ef16df.tar.bz2 |
libsframe: testsuite: add new tests for sframe_find_fre API
libsframe provides an API to find the FRE associated with a given PC in
the program. This patch adds a direct test of this API.
In this test, we create two dummy SFrame FDEs with 4 FREs each. Then we
test that sframe_find_fre () works for the first, second, third and the
last FRE from one of the FDEs. Such a test ensures better regression
testing for the sframe_find_fre () function which is going to be the
bread and butter of an SFrame based stack tracer.
libsframe/
* Makefile.in: Regenerated.
* testsuite/libsframe.find/find.exp: New test.
* testsuite/libsframe.find/findfre-1.c: New test.
* testsuite/libsframe.find/local.mk: Build new test.
* testsuite/local.mk: Include libsframe.find.
Diffstat (limited to 'libsframe/testsuite/local.mk')
-rw-r--r-- | libsframe/testsuite/local.mk | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsframe/testsuite/local.mk b/libsframe/testsuite/local.mk index 83eca77..5e5ba92 100644 --- a/libsframe/testsuite/local.mk +++ b/libsframe/testsuite/local.mk @@ -19,6 +19,7 @@ check-DEJAGNU: site.exp else echo "WARNING: could not find \`runtest'" 1>&2; :;\ fi -# libsframe encoder/decoder testsuite +# libsframe encoder/decoder/find testsuite include %D%/libsframe.decode/local.mk include %D%/libsframe.encode/local.mk +include %D%/libsframe.find/local.mk |