]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: make flip_header version aware
authorIndu Bhagat <indu.bhagat@oracle.com>
Sat, 1 Nov 2025 08:42:02 +0000 (01:42 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Sat, 1 Nov 2025 08:42:02 +0000 (01:42 -0700)
commitf264ead9fb99b9c7627611900e7a18ba13da89f0
treef9e20cea0b10301496b00962d56448849c2a18f7
parentbdb0d62281aad8ef8dcc713c06c94580889af95a
libsframe: make flip_header version aware

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

flip_header () now takes the SFrame version as argument and also returns
SFRAME_ERR in case of error.  Currently the SFrame version as argument
remains unused.

SFrame encoder, at the momemnt, writes the SFrame data in the most recent
format version by default.

libsframe/
        * sframe.c (flip_header): Make version aware.
        (sframe_decode): Adjust usage of flip_header.
        (sframe_encoder_write): Likewise.
libsframe/sframe.c