]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: stop search for SFrame FRE if its start IP is greater than PC
authorJens Remus <jremus@linux.ibm.com>
Mon, 26 May 2025 18:02:29 +0000 (11:02 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Mon, 26 May 2025 18:02:29 +0000 (11:02 -0700)
commitada5c6fa081410fa41df67013f3c1eb6d64e0680
treeff934bf79da04caac4ff2550d932f8deb9af914b
parent9d2a24349e23afe3ee5e6ac093ffca3901d39bc5
libsframe: stop search for SFrame FRE if its start IP is greater than PC

The SFrame FREs for an SFrame FDE are sorted on their start address.
Therefore the linear search for a matching SFrame FRE can be stopped,
if its start address is greater than the searched for PC.

libsframe/
* sframe.c (sframe_find_fre): Stop search if FRE's start IP is
greater than PC.

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