[binutils-gdb] include: sframe: rename sframe_func_desc_entry to use an explicit v2

Indu Bhagat ibhagat@sourceware.org
Mon Oct 20 04:10:56 GMT 2025


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=8ac9c2cda94341d148fee78396cca0a657d2cb19

commit 8ac9c2cda94341d148fee78396cca0a657d2cb19
Author: Indu Bhagat <indu.bhagat@oracle.com>
Date:   Sun Oct 19 21:03:27 2025 -0700

    include: sframe: rename sframe_func_desc_entry to use an explicit v2
    
    As SFrame format evolves, this will be useful to refer to v2 on-disk
    layout directly as the format evolves.
    
    Reviewed-by: Jens Remus <jremus@linux.ibm.com>
    
    include/
            * sframe.h (struct sframe_func_desc_entry): Rename to tag v2.

Diff:
---
 include/sframe.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/sframe.h b/include/sframe.h
index 127bf375057..44000413dce 100644
--- a/include/sframe.h
+++ b/include/sframe.h
@@ -183,7 +183,7 @@ typedef struct sframe_header
 #define SFRAME_AARCH64_PAUTH_KEY_A    0 /* Key A.  */
 #define SFRAME_AARCH64_PAUTH_KEY_B    1 /* Key B.  */
 
-typedef struct sframe_func_desc_entry
+typedef struct sframe_func_desc_entry_v2
 {
   /* Function start address.  Encoded as a signed offset, relative to the
      beginning of the current FDE.  */
@@ -210,7 +210,9 @@ typedef struct sframe_func_desc_entry
      SFRAME_FDE_TYPE_PCMASK.  */
   uint8_t sfde_func_rep_size;
   uint16_t sfde_func_padding2;
-} ATTRIBUTE_PACKED sframe_func_desc_entry;
+} ATTRIBUTE_PACKED sframe_func_desc_entry_v2;
+
+typedef sframe_func_desc_entry_v2 sframe_func_desc_entry;
 
 /* Macros to compose and decompose function info in FDE.  */


More information about the Binutils-cvs mailing list