aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-sframe.c
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 /bfd/elf-sframe.c
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 'bfd/elf-sframe.c')
-rw-r--r--bfd/elf-sframe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bfd/elf-sframe.c b/bfd/elf-sframe.c
index 069f756..013a892 100644
--- a/bfd/elf-sframe.c
+++ b/bfd/elf-sframe.c
@@ -403,10 +403,10 @@ _bfd_elf_merge_section_sframe (bfd *abfd,
/* Iterate over the function descriptor entries and the FREs of the
function from the decoder context. Add each of them to the encoder
context, if suitable. */
- unsigned int i = 0, j = 0, cur_fidx = 0;
+ uint32_t i = 0, j = 0, cur_fidx = 0;
- unsigned int num_fidx = sframe_decoder_get_num_fidx (sfd_ctx);
- unsigned int num_enc_fidx = sframe_encoder_get_num_fidx (sfe_ctx);
+ uint32_t num_fidx = sframe_decoder_get_num_fidx (sfd_ctx);
+ uint32_t num_enc_fidx = sframe_encoder_get_num_fidx (sfe_ctx);
for (i = 0; i < num_fidx; i++)
{