Skip to content

Commit

Permalink
sframe: correct some typos
Browse files Browse the repository at this point in the history
include/
	* sframe.h: Correct a typo.

libsframe/
	* sframe.c: Likewise.
  • Loading branch information
ibhagatgnu authored and ouuleilei-bot committed Apr 19, 2023
1 parent 11f1288 commit 576c164
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/sframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ typedef struct sframe_header
not fixed, it is set to SFRAME_CFA_FIXED_RA_INVALID, and individual
FREs provide the applicable stack frame offset, if any. */
int8_t sfh_cfa_fixed_ra_offset;
/* Number of bytes making up the auxilliary header, if any.
/* Number of bytes making up the auxiliary header, if any.
Some ABI/arch, in the future, may use this space for extending the
information in SFrame header. Auxilliary header is contained in
information in SFrame header. Auxiliary header is contained in
bytes sequentially following the sframe_header. */
uint8_t sfh_auxhdr_len;
/* Number of SFrame FDEs in this SFrame section. */
Expand Down
2 changes: 1 addition & 1 deletion libsframe/sframe.c
Original file line number Diff line number Diff line change
Expand Up @@ -970,7 +970,7 @@ sframe_get_funcdesc_with_addr (sframe_decoder_ctx *ctx,
if (fdp[mid].sfde_func_start_address < addr)
{
if (mid == (cnt - 1)) /* Check if it's the last one. */
return fdp + (cnt - 1) ;
return fdp + (cnt - 1);
else if (fdp[mid+1].sfde_func_start_address > addr)
return fdp + mid;
low = mid + 1;
Expand Down

0 comments on commit 576c164

Please sign in to comment.