[DynInst_API:] [dyninst/dyninst] aaecf6: Convert TRAMP_*_OFFSET macros to functions (#1073)


Date: Wed, 14 Jul 2021 09:15:52 -0700
From: noreply@xxxxxxxxxx
Subject: [DynInst_API:] [dyninst/dyninst] aaecf6: Convert TRAMP_*_OFFSET macros to functions (#1073)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: aaecf68a1df443bff4c7f6ca7c70fc4b6b1e1a92
      https://github.com/dyninst/dyninst/commit/aaecf68a1df443bff4c7f6ca7c70fc4b6b1e1a92
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2021-07-14 (Wed, 14 Jul 2021)

  Changed paths:
    M dyninstAPI/src/inst-aarch64.h

  Log Message:
  -----------
  Convert TRAMP_*_OFFSET macros to functions (#1073)

The macro for the TRAMP_*_OFFSET_32 cases expanded into `({assert(0); 0;})` which is not legal C++. It was allowed by gcc by extension. Converting them to functions preserves the behavior without code changes. They are made `inline` to prevent ODR violations.

Co-authored-by: Tim Haines <thaines@xxxxxxxxxxx>


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] aaecf6: Convert TRAMP_*_OFFSET macros to functions (#1073), noreply <=