aboutsummaryrefslogtreecommitdiff
path: root/libsframe
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2023-06-27 11:56:26 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2023-06-27 12:01:56 -0700
commitdf6f1afb6d369a83ba34e1cb2122a061234e50ca (patch)
tree58f3a2f900ba8afe7f8b6df50231c9d4bb1b4c5c /libsframe
parent3412dcec612b473adabdff0e5d6004bfc94c938c (diff)
downloadgdb-df6f1afb6d369a83ba34e1cb2122a061234e50ca.zip
gdb-df6f1afb6d369a83ba34e1cb2122a061234e50ca.tar.gz
gdb-df6f1afb6d369a83ba34e1cb2122a061234e50ca.tar.bz2
libsframe: bfd: use uint32_t for return type of get_num_fidx APIs
Keep the data types usage in libsframe look consistent. bfd/ * elf-sframe.c (_bfd_elf_merge_section_sframe): Use uint32_t type alias. * libsframe/sframe.c (sframe_decoder_get_funcdesc_at_index): Likewise. (sframe_decoder_get_num_fidx): Likewise. (sframe_encoder_get_num_fidx): Likewise. include/ * sframe-api.h (sframe_decoder_get_num_fidx): Likewise. (sframe_encoder_get_num_fidx): Likewise.
Diffstat (limited to 'libsframe')
-rw-r--r--libsframe/sframe.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index 40927f0..2914243 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -349,7 +349,7 @@ sframe_decoder_get_funcdesc_at_index (sframe_decoder_ctx *ctx,
uint32_t func_idx)
{
sframe_func_desc_entry *fdep;
- unsigned int num_fdes;
+ uint32_t num_fdes;
int err;
num_fdes = sframe_decoder_get_num_fidx (ctx);
@@ -1119,10 +1119,10 @@ sframe_find_fre (sframe_decoder_ctx *ctx, int32_t pc,
/* Return the number of function descriptor entries in the SFrame decoder
DCTX. */
-unsigned int
+uint32_t
sframe_decoder_get_num_fidx (sframe_decoder_ctx *ctx)
{
- unsigned int num_fdes = 0;
+ uint32_t num_fdes = 0;
sframe_header *dhp = NULL;
dhp = sframe_decoder_get_header (ctx);
if (dhp)
@@ -1337,10 +1337,10 @@ sframe_encoder_get_abi_arch (sframe_encoder_ctx *encoder)
/* Return the number of function descriptor entries in the SFrame encoder
ENCODER. */
-unsigned int
+uint32_t
sframe_encoder_get_num_fidx (sframe_encoder_ctx *encoder)
{
- unsigned int num_fdes = 0;
+ uint32_t num_fdes = 0;
sframe_header *ehp = NULL;
ehp = sframe_encoder_get_header (encoder);
if (ehp)