[PATCH 2/4] libsframe: remove deprecated interface
Indu Bhagat
indu.bhagat@oracle.com
Tue Jul 8 07:53:20 GMT 2025
Soon, libsframe.so.2 will be released. Remove the already deprecated
(since X-2 release) interface.
include/
* sframe-api.h (sframe_get_funcdesc_with_addr): Remove
deprecated interface.
libsframe/
* sframe.c (sframe_get_funcdesc_with_addr): Likewise.
---
include/sframe-api.h | 8 --------
libsframe/sframe.c | 12 ------------
2 files changed, 20 deletions(-)
diff --git a/include/sframe-api.h b/include/sframe-api.h
index 753a91f5b3f..c4e95a5b5c6 100644
--- a/include/sframe-api.h
+++ b/include/sframe-api.h
@@ -158,14 +158,6 @@ sframe_decoder_get_fixed_fp_offset (sframe_decoder_ctx *dctx);
extern int8_t
sframe_decoder_get_fixed_ra_offset (sframe_decoder_ctx *dctx);
-/* Find the function descriptor entry which contains the specified address.
-
- Note: This function is deprecated and will be removed from future release
- X+2 of the library. */
-extern void *
-sframe_get_funcdesc_with_addr (sframe_decoder_ctx *dctx, int32_t addr,
- int *errp);
-
/* Find the SFrame Frame Row Entry which contains the PC. Returns
SFRAME_ERR if failure. */
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index 5c3337670e1..e53abe798f9 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -1060,18 +1060,6 @@ sframe_decoder_get_offsetof_fde_start_addr (sframe_decoder_ctx *dctx,
+ offsetof (sframe_func_desc_entry, sfde_func_start_address));
}
-/* Find the function descriptor entry which contains the specified address
- ADDR.
- This function is deprecated and will be removed from libsframe.so.2. */
-
-void *
-sframe_get_funcdesc_with_addr (sframe_decoder_ctx *ctx __attribute__ ((unused)),
- int32_t addr __attribute__ ((unused)),
- int *errp)
-{
- return sframe_ret_set_errno (errp, SFRAME_ERR_INVAL);
-}
-
/* Find the function descriptor entry starting which contains the specified
address ADDR. */
--
2.43.0
More information about the Binutils
mailing list