From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7850) id 2EA193858C53; Tue, 27 Jun 2023 19:42:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2EA193858C53 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Indu Bhagat To: bfd-cvs@sourceware.org, gdb-cvs@sourceware.org Subject: [binutils-gdb] libsframe: use appropriate data types for args of sframe_encode X-Act-Checkin: binutils-gdb X-Git-Author: Indu Bhagat X-Git-Refname: refs/heads/master X-Git-Oldrev: a9f1da26dac0a9ee502a63c2633cf3b5dfd043b3 X-Git-Newrev: 3412dcec612b473adabdff0e5d6004bfc94c938c Message-Id: <20230627194252.2EA193858C53@sourceware.org> Date: Tue, 27 Jun 2023 19:42:52 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jun 2023 19:42:52 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D3412dcec612b= 473adabdff0e5d6004bfc94c938c commit 3412dcec612b473adabdff0e5d6004bfc94c938c Author: Indu Bhagat Date: Tue Jun 27 11:56:13 2023 -0700 libsframe: use appropriate data types for args of sframe_encode =20 include/ * sframe-api.h (sframe_encode): Use of uint8_t is more appropriate. libsframe/ * sframe.c (sframe_encode): Likewise. Diff: --- include/sframe-api.h | 2 +- libsframe/sframe.c | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/include/sframe-api.h b/include/sframe-api.h index 46614925c68..9cb2db0edb9 100644 --- a/include/sframe-api.h +++ b/include/sframe-api.h @@ -202,7 +202,7 @@ sframe_fre_get_ra_mangled_p (sframe_decoder_ctx *dctx, /* Create an encoder context with the given SFrame format version VER, FLA= GS and ABI information. Sets errp if failure. */ extern sframe_encoder_ctx * -sframe_encode (unsigned char ver, unsigned char flags, int abi, +sframe_encode (uint8_t ver, uint8_t flags, uint8_t abi_arch, int8_t fixed_fp_offset, int8_t fixed_ra_offset, int *errp); =20 /* Free the encoder context. */ diff --git a/libsframe/sframe.c b/libsframe/sframe.c index b885e3df5ec..40927f06933 100644 --- a/libsframe/sframe.c +++ b/libsframe/sframe.c @@ -1248,10 +1248,11 @@ sframe_encoder_get_funcdesc_at_index (sframe_encode= r_ctx *encoder, } =20 /* Create an encoder context with the given SFrame format version VER, FLA= GS - and ABI information. Sets errp if failure. */ + and ABI information. Uses the ABI specific FIXED_FP_OFFSET and + FIXED_RA_OFFSET values as provided. Sets errp if failure. */ =20 sframe_encoder_ctx * -sframe_encode (unsigned char ver, unsigned char flags, int abi_arch, +sframe_encode (uint8_t ver, uint8_t flags, uint8_t abi_arch, int8_t fixed_fp_offset, int8_t fixed_ra_offset, int *errp) { sframe_header *hp;