public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] libsframe: minor formatting nits
@ 2022-12-09 18:27 Indu Bhagat
0 siblings, 0 replies; only message in thread
From: Indu Bhagat @ 2022-12-09 18:27 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1e2a61ef2d94d6021793f7f59281aa2522ece15f
commit 1e2a61ef2d94d6021793f7f59281aa2522ece15f
Author: Indu Bhagat <indu.bhagat@oracle.com>
Date: Fri Dec 9 10:21:57 2022 -0800
libsframe: minor formatting nits
ChangeLog:
* libsframe/sframe.c: Fix formatting nits.
Diff:
---
libsframe/sframe.c | 30 ++++++++++++++----------------
1 file changed, 14 insertions(+), 16 deletions(-)
diff --git a/libsframe/sframe.c b/libsframe/sframe.c
index fce821e4414..6e0eb7b6511 100644
--- a/libsframe/sframe.c
+++ b/libsframe/sframe.c
@@ -202,8 +202,7 @@ sframe_header_sanity_check_p (sframe_header *hp)
/* Check preamble is valid. */
if ((hp->sfh_preamble.sfp_magic != SFRAME_MAGIC)
|| (hp->sfh_preamble.sfp_version != SFRAME_VERSION)
- || ((hp->sfh_preamble.sfp_flags | all_flags)
- != all_flags))
+ || ((hp->sfh_preamble.sfp_flags | all_flags) != all_flags))
return 0;
/* Check offsets are valid. */
@@ -723,7 +722,7 @@ sframe_decode_fre (const char *fre_buf, sframe_frame_row_entry *fre,
/* The FRE has been decoded. Use it to perform one last sanity check. */
fre_size = sframe_fre_entry_size (fre, fre_type);
sframe_assert (fre_size == (addr_size + sizeof (fre->fre_info)
- + stack_offsets_sz));
+ + stack_offsets_sz));
*esz = fre_size;
return 0;
@@ -980,8 +979,7 @@ sframe_find_fre (sframe_decoder_ctx *ctx, int32_t pc,
sp = (unsigned char *) ctx->sfd_fres + fdep->sfde_func_start_fre_off;
for (i = 0; i < fdep->sfde_func_num_fres; i++)
{
- err = sframe_decode_fre ((const char *)sp, &next_fre,
- fre_type, &esz);
+ err = sframe_decode_fre ((const char *)sp, &next_fre, fre_type, &esz);
start_address = next_fre.fre_start_addr;
if (((fdep->sfde_func_start_address
@@ -1074,7 +1072,7 @@ sframe_decoder_get_funcdesc (sframe_decoder_ctx *ctx,
static sframe_func_desc_entry *
sframe_decoder_get_funcdesc_at_index (sframe_decoder_ctx *ctx,
- uint32_t func_idx)
+ uint32_t func_idx)
{
/* Invalid argument. No FDE will be found. */
if (func_idx >= sframe_decoder_get_num_fidx (ctx))
@@ -1091,9 +1089,9 @@ sframe_decoder_get_funcdesc_at_index (sframe_decoder_ctx *ctx,
int
sframe_decoder_get_fre (sframe_decoder_ctx *ctx,
- unsigned int func_idx,
- unsigned int fre_idx,
- sframe_frame_row_entry *fre)
+ unsigned int func_idx,
+ unsigned int fre_idx,
+ sframe_frame_row_entry *fre)
{
sframe_func_desc_entry *fdep;
sframe_frame_row_entry ifre;
@@ -1157,7 +1155,7 @@ sframe_encoder_get_header (sframe_encoder_ctx *encoder)
static sframe_func_desc_entry *
sframe_encoder_get_funcdesc_at_index (sframe_encoder_ctx *encoder,
- uint32_t func_idx)
+ uint32_t func_idx)
{
sframe_func_desc_entry *fde = NULL;
if (func_idx < sframe_encoder_get_num_fidx (encoder))
@@ -1273,8 +1271,8 @@ sframe_encoder_get_num_fidx (sframe_encoder_ctx *encoder)
int
sframe_encoder_add_fre (sframe_encoder_ctx *encoder,
- unsigned int func_idx,
- sframe_frame_row_entry *frep)
+ unsigned int func_idx,
+ sframe_frame_row_entry *frep)
{
sframe_header *ehp;
sframe_func_desc_entry *fdep;
@@ -1371,10 +1369,10 @@ bad:
int
sframe_encoder_add_funcdesc (sframe_encoder_ctx *encoder,
- int32_t start_addr,
- uint32_t func_size,
- unsigned char func_info,
- uint32_t num_fres __attribute__ ((unused)))
+ int32_t start_addr,
+ uint32_t func_size,
+ unsigned char func_info,
+ uint32_t num_fres __attribute__ ((unused)))
{
sframe_header *ehp;
sf_funidx_tbl *fd_info;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-09 18:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-09 18:27 [binutils-gdb] libsframe: minor formatting nits Indu Bhagat
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).