]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: reuse static function sframe_decoder_get_funcdesc_at_index
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 7 Jun 2023 22:13:35 +0000 (15:13 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 7 Jun 2023 22:14:39 +0000 (15:14 -0700)
commit676cb9d2e019685a357a02b7a15999e7c3414de2
tree2ee3140a2aa174076ddd2680ed52c5cfdf2f72c3
parentf0874f419209510d2a55e994f6ca10eb9f7905bc
libsframe: reuse static function sframe_decoder_get_funcdesc_at_index

sframe_decoder_get_funcdesc_at_index () is the function to access SFrame
FDEs in the SFrame decoder context.  Use it consistently.

Avoid unnecessary type cast and include minor enhancements as the code
is moved around.

libsframe/
* sframe.c (sframe_decoder_get_funcdesc_at_index): Move some
checks here.  Move the static function definition before the new
use.
(sframe_decoder_get_funcdesc): Use
sframe_decoder_get_funcdesc_at_index instead.
libsframe/sframe.c