]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
libsframe: refactor code for dumping section flags
authorIndu Bhagat <indu.bhagat@oracle.com>
Wed, 21 May 2025 04:22:21 +0000 (21:22 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Wed, 28 May 2025 04:58:13 +0000 (21:58 -0700)
commit3e20b9899e72431cf119f939ef0bf0ce5bd27eed
treef61eeb5e125ddb499c09cf9b23eaf105c2ff258b
parent7ece99ecf9bdd152a4c4a43acc2d0b54d52a7f8b
libsframe: refactor code for dumping section flags

To prepare code for accommodating new flag additions easily as the
format evolves.

libsframe/
        * sframe-dump.c (SFRAME_HEADER_FLAGS_STR_MAX_LEN): Rename from.
        (struct dump_flags_helper): New helper struct definition.
        (dump_sframe_header_flags): .. to here.  New definition.
        (SFRAME_FLAGS_STR_MAX_LEN): Rename to.
        (MAX_NUM_FLAGS): New definition.
        (dump_sframe_header): Move some implementation from here ..
libsframe/sframe-dump.c