]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
include: sframe: add SFRAME_V2_ prefixed macro names for FDE
authorIndu Bhagat <indu.bhagat@oracle.com>
Thu, 16 Oct 2025 18:41:19 +0000 (11:41 -0700)
committerIndu Bhagat <indu.bhagat@oracle.com>
Tue, 9 Dec 2025 08:26:11 +0000 (00:26 -0800)
Such a change for readability only.  SFrame V1 is now obsolete, and with
newer versions like V3 or later, its likely better to have macro names
reflect the applicable version.

Add new macro names for FDE information related macros.

include/
        * sframe.h (SFRAME_V2_FUNC_INFO): New definition.
        (SFRAME_V2_FUNC_FRE_TYPE): Likewise.
        (SFRAME_V2_FUNC_FDE_TYPE): Likewise.
        (SFRAME_V2_FUNC_PAUTH_KEY): Likewise.
        (SFRAME_V2_FUNC_INFO_UPDATE_PAUTH_KEY): Likewise.

include/sframe.h

index d2a3c8390bf87da3da90be561ea9e49f0fec8585..d90440330cdeb6ec834112dfe9d159dfa17a9617 100644 (file)
@@ -227,6 +227,18 @@ typedef struct sframe_func_desc_entry_v2
 #define SFRAME_V1_FUNC_INFO_UPDATE_PAUTH_KEY(pauth_key, fde_info) \
   ((((pauth_key) & 0x1) << 5) | ((fde_info) & 0xdf))
 
+/* SFrame V2 has similar SFrame FDE representation as SFrame V1.  */
+
+#define SFRAME_V2_FUNC_INFO(fde_type, fre_enc_type) \
+  (SFRAME_V1_FUNC_INFO (fde_type, fre_enc_type))
+
+#define SFRAME_V2_FUNC_FRE_TYPE(data)    (SFRAME_V1_FUNC_FRE_TYPE (data))
+#define SFRAME_V2_FUNC_FDE_TYPE(data)    (SFRAME_V1_FUNC_FDE_TYPE (data))
+#define SFRAME_V2_FUNC_PAUTH_KEY(data)   (SFRAME_V1_FUNC_PAUTH_KEY (data))
+
+#define SFRAME_V2_FUNC_INFO_UPDATE_PAUTH_KEY(pauth_key, fde_info) \
+  SFRAME_V1_FUNC_INFO_UPDATE_PAUTH_KEY (pauth_key, fde_info)
+
 /* Size of stack frame offsets in an SFrame Frame Row Entry.  A single
    SFrame FRE has all offsets of the same size.  Offset size may vary
    across frame row entries.  */