[DynInst_API:] [dyninst/dyninst] a41383: Modifications to use the new ArchSpecificFormatter...


Date: Mon, 17 Oct 2016 17:44:46 -0700
From: Sunny Shah <shah28@xxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] a41383: Modifications to use the new ArchSpecificFormatter...
  Branch: refs/heads/att_syntax
  Home:   https://github.com/dyninst/dyninst
  Commit: a41383bc7229ccfad4c6c372edcd0bc39ac46126
      https://github.com/dyninst/dyninst/commit/a41383bc7229ccfad4c6c372edcd0bc39ac46126
  Author: Sunny Shah <shah28@xxxxxxxx>
  Date:   2016-10-17 (Mon, 17 Oct 2016)

  Changed paths:
    M instructionAPI/CMakeLists.txt
    M instructionAPI/h/ArchSpecificFormatters.h
    M instructionAPI/h/BinaryFunction.h
    M instructionAPI/h/Dereference.h
    M instructionAPI/h/Expression.h
    M instructionAPI/h/Immediate.h
    M instructionAPI/h/Instruction.h
    M instructionAPI/h/InstructionAST.h
    M instructionAPI/h/Operand.h
    M instructionAPI/h/Register.h
    A instructionAPI/src/ArchSpecificFormatters.C
    M instructionAPI/src/Immediate.C
    M instructionAPI/src/Instruction.C
    M instructionAPI/src/Operand.C
    M instructionAPI/src/Register.C

  Log Message:
  -----------
  Modifications to use the new ArchSpecificFormatter class for
instruction/operand formatting

The signature of the format() method in InstructionAST and all inherited
classes that override it is modified to include a pointer to an
ArchSpecificFormatter object. The methods for each operand type
(Register, Immediate and Dereference) call the appropriate method on
ArchSpecificFormatter. The pointer is initialized within the constructor
of the Instruction class which also includes a new method to retrieve it
from elsewhere (getFormatter()).

This commit also includes implementation of methods of the ArmFormatter
class. Instruction::format() currently returns an empty string for architectures other
than ARM64. Implementation for other architectures will be added in
future commits.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] a41383: Modifications to use the new ArchSpecificFormatter..., Sunny Shah <=