[PATCH] libsframe: Fix FP data index in flex FDE example
mengqinggang
mengqinggang@loongson.cn
Wed Nov 18 06:35:16 GMT 2026
Use index 4 for RA-valid entries and index 3 when RA uses
SFRAME_FRE_RA_OFFSET_INVALID.
libsframe/
* doc/sframe-spec.texi (Generating Stack Traces using SFrame):
Fix the FP data-word indexes in the flexible FDE example.
---
libsframe/doc/sframe-spec.texi | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/libsframe/doc/sframe-spec.texi b/libsframe/doc/sframe-spec.texi
index cd76bf9f8e3..1500ab0f81d 100644
--- a/libsframe/doc/sframe-spec.texi
+++ b/libsframe/doc/sframe-spec.texi
@@ -1371,11 +1371,11 @@ and apply the recovery rules accordingly.
ra_reg_data = sframe_fre_get_udata (fre, 2);
if (ra_reg_data != SFRAME_FRE_RA_OFFSET_INVALID)
ra_offset = sframe_fre_get_offset (fre, 3);
- fp_tracking_p = fre.num_offsets > 3;
- fp_data_index = 3;
- else
fp_tracking_p = fre.num_offsets > 4;
fp_data_index = 4;
+ else
+ fp_tracking_p = fre.num_offsets > 3;
+ fp_data_index = 3;
// Get the FP reg, offset, and deref_p (if present).
if (fp_tracking_p)
--
2.34.1
More information about the Binutils
mailing list