[DynInst_API:] [dyninst/dyninst] 6436c7: eliminate deprecated C++ function objects (#1331)


Date: Sun, 26 Feb 2023 23:55:33 -0800
From: kupsch <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 6436c7: eliminate deprecated C++ function objects (#1331)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: 6436c734eef50d55ed6c562aa3fabf0c7039c50c
      https://github.com/dyninst/dyninst/commit/6436c734eef50d55ed6c562aa3fabf0c7039c50c
  Author: James A. Kupsch <kupsch@xxxxxxxxxxx>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M dyninstAPI/h/BPatch_basicBlock.h
    M dyninstAPI/src/StackMod/StackLocation.h
    M dyninstAPI/src/addressSpace.C
    M instructionAPI/src/AMDGPU/cdna2/InstructionDecoder-amdgpu-cdna2.C
    M instructionAPI/src/AMDGPU/vega/InstructionDecoder-amdgpu-vega.C
    M instructionAPI/src/InstructionDecoder-aarch64.C
    M instructionAPI/src/InstructionDecoder-power.C
    M symtabAPI/h/Aggregate.h
    M symtabAPI/src/Aggregate.C
    M symtabAPI/src/Object-elf.C

  Log Message:
  -----------
  eliminate deprecated C++ function objects (#1331)

fix function objects that were deprecate in C++ 11 and removed in C++ 17

- replace mem_fun with mem_fn
- eliminate binary_function and unary_function base classes
- use const iterator when constructing boost::transform_iterator


  Commit: 198b54f56cbcdb82f058d007545bdf9f36c5dce5
      https://github.com/dyninst/dyninst/commit/198b54f56cbcdb82f058d007545bdf9f36c5dce5
  Author: James A. Kupsch <kupsch@xxxxxxxxxxx>
  Date:   2023-02-27 (Mon, 27 Feb 2023)

  Changed paths:
    M symtabAPI/doc/API/LineInfo/LineInformation.tex
    M symtabAPI/h/LineInformation.h
    M symtabAPI/src/LineInformation.C

  Log Message:
  -----------
  fix infinite recursion in LineInformation::addLine (#1331)

- gcc 12 reported an infinite recursion for LineInformation::addLine
  that takes the lineSource file
- fixed by computing the string table index of lineSource and then
  calling the addLine method that takes the index value
- also update the lineSource type from string to const string&
- updated documenation that had the method signature taking a const char*


Compare: https://github.com/dyninst/dyninst/compare/f049fe855640...198b54f56cbc
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] 6436c7: eliminate deprecated C++ function objects (#1331), kupsch <=