[DynInst_API:] [dyninst/dyninst] 919f5a: Replace assert with try-catch in function call gen...


Date: Fri, 27 Jan 2017 13:54:47 -0800
From: Bill Williams <bill@xxxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] 919f5a: Replace assert with try-catch in function call gen...
  Branch: refs/heads/wrwilliams/leak-fixes
  Home:   https://github.com/dyninst/dyninst
  Commit: 919f5ac668d61bc1f3df26f8a8d1e659559f8fb6
      https://github.com/dyninst/dyninst/commit/919f5ac668d61bc1f3df26f8a8d1e659559f8fb6
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M dyninstAPI/src/ast.C
    M dyninstAPI/src/baseTramp.C
    M patchAPI/h/Command.h
    M symtabAPI/src/Region.C
    M symtabAPI/src/Symtab.C
    M symtabAPI/src/emitElf.h
    M symtabAPI/src/emitElfStatic.C

  Log Message:
  -----------
  Replace assert with try-catch in function call generation.


  Commit: cd1cfb32994f56ed7e2e613ff3dcaece67727a34
      https://github.com/dyninst/dyninst/commit/cd1cfb32994f56ed7e2e613ff3dcaece67727a34
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M dyninstAPI/CMakeLists.txt
    M dyninstAPI/src/BPatch.C
    M dyninstAPI/src/BPatch_binaryEdit.C
    M dyninstAPI/src/BPatch_object.C
    M dyninstAPI/src/Parsing.h
    M dyninstAPI/src/Relocation/DynCFGMaker.C
    M dyninstAPI/src/Relocation/DynObject.C
    M dyninstAPI/src/Relocation/DynObject.h
    M dyninstAPI/src/addressSpace.C
    M dyninstAPI/src/addressSpace.h
    M dyninstAPI/src/binaryEdit.C
    M dyninstAPI/src/binaryEdit.h
    M dyninstAPI/src/codeRange.C
    M dyninstAPI/src/dynProcess.C
    M dyninstAPI/src/dynProcess.h
    M dyninstAPI/src/function.h
    M dyninstAPI/src/hybridCallbacks.C
    M dyninstAPI/src/image.C
    M dyninstAPI/src/image.h
    M dyninstAPI/src/linux-x86.C
    M dyninstAPI/src/linux.C
    M dyninstAPI/src/mapped_module.C
    M dyninstAPI/src/mapped_object.C
    M dyninstAPI/src/mapped_object.h
    M dyninstAPI/src/parRegion.C
    M dyninstAPI/src/parRegion.h
    M dyninstAPI/src/parse-cfg.h
    M dyninstAPI/src/pcEventHandler.C
    M dyninstAPI/src/unix.C
    M dyninstAPI/src/variable.C
    M parseAPI/h/CFGFactory.h
    M parseAPI/h/CFGModifier.h
    M parseAPI/h/CodeObject.h
    M parseAPI/h/CodeSource.h
    M parseAPI/h/ParseCallback.h
    M parseAPI/src/Block.C
    M parseAPI/src/BoundFactCalculator.C
    M parseAPI/src/CFGFactory.C
    M parseAPI/src/CFGModifier.C
    M parseAPI/src/CodeObject.C
    M parseAPI/src/Function.C
    M parseAPI/src/IA_powerDetails.C
    M parseAPI/src/IndirectASTVisitor.C
    M parseAPI/src/IndirectASTVisitor.h
    M parseAPI/src/IndirectAnalyzer.C
    M parseAPI/src/ParseCallback.C
    M parseAPI/src/ParseData.C
    M parseAPI/src/ParseData.h
    M parseAPI/src/Parser-speculative.C
    M parseAPI/src/Parser.C
    M parseAPI/src/Parser.h
    M parseAPI/src/ParserDetails.C
    M parseAPI/src/ProbabilisticParser.C
    M parseAPI/src/ProbabilisticParser.h
    M patchAPI/h/PatchObject.h
    M patchAPI/src/AddrSpace.C
    M patchAPI/src/ParseCallback.C
    M patchAPI/src/PatchModifier.C
    M patchAPI/src/PatchObject.C

  Log Message:
  -----------
  Fix memory leaks and ambiguous ownership. This introduces many shared pointers to ParseAPI interfaces; I have tried to allow generic options wherever possible as long as they're convertible to shared_ptr so that existing client code continues to work. It is now actually safe and mostly non-leaky to delete BPatch_addressSpaces, images, etc.


  Commit: a292e580400f6a6451f1a539e7a3444141e0479a
      https://github.com/dyninst/dyninst/commit/a292e580400f6a6451f1a539e7a3444141e0479a
  Author: Bill Williams <bill@xxxxxxxxxxx>
  Date:   2017-01-27 (Fri, 27 Jan 2017)

  Changed paths:
    M dataflowAPI/src/SymEval.C
    M symtabAPI/h/Module.h
    M symtabAPI/src/Object-elf.C
    M symtabAPI/src/dwarfWalker.C
    M symtabAPI/src/emitElf.C
    M symtabAPI/src/emitElf.h

  Log Message:
  -----------
  More leak fixes.


Compare: https://github.com/dyninst/dyninst/compare/919f5ac668d6^...a292e580400f
[← Prev in Thread] Current Thread [Next in Thread→]