[PATCH, RESEND 2/4] libsframe: remove old sframe_decoder_get_funcdesc API
Indu Bhagat
indu.bhagat@oracle.com
Mon Nov 3 20:02:24 GMT 2025
sframe_decoder_get_funcdesc () was added for SFRAME_VERSION_1. This has
since been obsoleted by introduction of SFRAME_VERSION_2 and its
corresponding sframe_decoder_get_funcdesc_v2 API.
Remove from the version script file as well. We will bump the version
of the library to 3.0.0 before release and consolidate the entries into
a new LIBSFRAME_3.0 node.
include/
* sframe-api.h (sframe_decoder_get_funcdesc): Remove.
libsframe/
* libsframe.ver: Likewise.
* sframe.c (sframe_decoder_get_funcdesc): Remove definition.
---
include/sframe-api.h | 11 -----------
libsframe/libsframe.ver | 1 -
libsframe/sframe.c | 34 ----------------------------------
3 files changed, 46 deletions(-)
diff --git a/include/sframe-api.h b/include/sframe-api.h
index 507f806ab4c..7084a4377bf 100644
--- a/include/sframe-api.h
+++ b/include/sframe-api.h
@@ -169,17 +169,6 @@ sframe_decoder_get_fre (sframe_decoder_ctx *ctx,
unsigned int fre_idx,
sframe_frame_row_entry *fre);
-/* Get the data (NUM_FRES, FUNC_START_ADDRESS) from the function
- descriptor entry at index I'th in the decoder CTX. If failed,
- return error code. */
-extern int
-sframe_decoder_get_funcdesc (sframe_decoder_ctx *ctx,
- unsigned int i,
- uint32_t *num_fres,
- uint32_t *func_size,
- int32_t *func_start_address,
- unsigned char *func_info);
-
/* Get the data (NUM_FRES, FUNC_SIZE, FUNC_START_ADDRESS, FUNC_INFO,
REP_BLOCK_SIZE) from the function descriptor entry at index I'th
in the decoder CTX. If failed, return error code.
diff --git a/libsframe/libsframe.ver b/libsframe/libsframe.ver
index 4286a72b93b..15a5de4725d 100644
--- a/libsframe/libsframe.ver
+++ b/libsframe/libsframe.ver
@@ -20,7 +20,6 @@ LIBSFRAME_2.0 {
sframe_decoder_get_fixed_ra_offset;
sframe_find_fre;
sframe_decoder_get_num_fidx;
- sframe_decoder_get_funcdesc;
sframe_decoder_get_funcdesc_v2;
sframe_decoder_get_fre;
sframe_encode;
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index e2d987f5822..146b6d8fd0f 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -1370,40 +1370,6 @@ sframe_decoder_get_num_fidx (sframe_decoder_ctx *ctx)
return num_fdes;
}
-/* Get the data (NUM_FRES, FUNC_START_ADDRESS) from the function
- descriptor entry at index I'th in the decoder CTX. If failed,
- return error code. */
-/* FIXME - consolidate the args and return a
- sframe_func_desc_index_elem rather? */
-
-int
-sframe_decoder_get_funcdesc (sframe_decoder_ctx *ctx,
- unsigned int i,
- uint32_t *num_fres,
- uint32_t *func_size,
- int32_t *func_start_address,
- unsigned char *func_info)
-{
- sframe_func_desc_entry *fdp;
- int err = 0;
-
- if (ctx == NULL || func_start_address == NULL || num_fres == NULL
- || func_size == NULL)
- return sframe_set_errno (&err, SFRAME_ERR_INVAL);
-
- fdp = sframe_decoder_get_funcdesc_at_index (ctx, i);
-
- if (fdp == NULL)
- return sframe_set_errno (&err, SFRAME_ERR_FDE_NOTFOUND);
-
- *num_fres = fdp->sfde_func_num_fres;
- *func_start_address = fdp->sfde_func_start_address;
- *func_size = fdp->sfde_func_size;
- *func_info = fdp->sfde_func_info;
-
- return 0;
-}
-
int
sframe_decoder_get_funcdesc_v2 (sframe_decoder_ctx *dctx,
unsigned int i,
--
2.43.0
More information about the Binutils
mailing list