aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2024-04-26 11:28:38 -0700
committerIndu Bhagat <indu.bhagat@oracle.com>2024-04-30 15:09:37 -0700
commit72ca5c892d4a52734036b0148bc21b6c0401cfae (patch)
tree6dca220d01f16cda136c8aac9852b96531ad93af
parente47e027d6ce9d71d356d6183558713f6aed8212d (diff)
downloadgdb-72ca5c892d4a52734036b0148bc21b6c0401cfae.zip
gdb-72ca5c892d4a52734036b0148bc21b6c0401cfae.tar.gz
gdb-72ca5c892d4a52734036b0148bc21b6c0401cfae.tar.bz2
libsframest: use access API instead of direct access using FRE info
libsframe/testsuite/ * libsframe.stacktrace/libsframest/sframe-backtrace.c
-rw-r--r--libsframe/testsuite/libsframe.stacktrace/libsframest/sframe-stacktrace.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libsframe/testsuite/libsframe.stacktrace/libsframest/sframe-stacktrace.c b/libsframe/testsuite/libsframe.stacktrace/libsframest/sframe-stacktrace.c
index c15c329..5034f86 100644
--- a/libsframe/testsuite/libsframe.stacktrace/libsframest/sframe-stacktrace.c
+++ b/libsframe/testsuite/libsframe.stacktrace/libsframest/sframe-stacktrace.c
@@ -124,8 +124,8 @@ sframe_unwind (struct sframe_state *sf, void **ra_lst,
if (errnum == SFRAME_ERR_FREOFFSET_NOPRESENT)
return sframe_bt_ret_set_errno (&err, SFRAME_BT_ERR_CFA_OFFSET);
- cfa = (((frep->fre_info & 0x1) == SFRAME_BASE_REG_SP)
- ? rsp : rfp) + cfa_offset;
+ cfa = ((sframe_fre_get_base_reg_id (frep, &errnum)
+ == SFRAME_BASE_REG_SP) ? rsp : rfp) + cfa_offset;
ra_offset = sframe_fre_get_ra_offset (ctx, frep, &errnum);
if (errnum == 0)