]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: make flip_fde version aware
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 1 Nov 2025 08:35:34 +0000 (01:35 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sat, 1 Nov 2025 08:35:34 +0000 (01:35 -0700)
commitbdb0d62281aad8ef8dcc713c06c94580889af95a
treeb549b4dcc52230be20afa353ee14f44958c7bf41
parenta7e0ca446d4a016c985e9fbb4af7a8e86a7d1873
libsframe: make flip_fde version aware

Future versions of the format may have a different representation of an
SFrame FDE.  As the format evolves, endian flipping will need to be version
aware.

Refactor flip_fde a bit by carving out an internal sframe_decode_fde API
which can read information from an on-disk SFrame FDE.

libsframe/
        * sframe.c (flip_fde): Make version aware.
        (sframe_decode_fde): New internal definition.
        (flip_sframe): Use the new definitions.
libsframe/sframe.c