]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: s390: No further decode if sframe_get_fre_offset returns err
authorJens Remus <jremus@linux.ibm.com>
Wed, 15 Oct 2025 15:45:48 +0000 (17:45 +0200)
committerJens Remus <jremus@linux.ibm.com>
Wed, 15 Oct 2025 15:45:48 +0000 (17:45 +0200)
commit52308aeca881adb5c0cd7d29e19e41b4042d4d3a
tree9bccfa65e048fb3c39d517acb59e58562690f336
parentc47ec3b44a6457a950847fd984074a1c02f7fc54
libsframe: s390: No further decode if sframe_get_fre_offset returns err

SFrame FREs without any offsets will later be used to represent
.cfi_undefined RA in SFrame.

As a result the API to get the CFA offset can return an error value, if
there are no offsets.  Do not apply the s390x-specific decoding of CFA
offset on the error return value.

libsframe/
* sframe.c (sframe_fre_get_cfa_offset): Do not apply s390x-
specific decoding to error return value.

Signed-off-by: Jens Remus <jremus@linux.ibm.com>
libsframe/sframe.c