[DynInst_API:] [dyninst/dyninst] c28e70: Use Zydis-decoded mnemonic for unknown instructions


Date: Mon, 08 Jun 2026 17:26:10 -0700
From: bbiiggppiigg <noreply@xxxxxxxxxx>
Subject: [DynInst_API:] [dyninst/dyninst] c28e70: Use Zydis-decoded mnemonic for unknown instructions
  Branch: refs/heads/bbiiggppiigg/default-unknown-cb
  Home:   https://github.com/dyninst/dyninst
  Commit: c28e7029e6c0c0af05d4bef1c62a752435e6bec7
      https://github.com/dyninst/dyninst/commit/c28e7029e6c0c0af05d4bef1c62a752435e6bec7
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2026-06-06 (Sat, 06 Jun 2026)

  Changed paths:
    M cmake/DyninstOptions.cmake
    M instructionAPI/src/InstructionDecoder.C

  Log Message:
  -----------
  Use Zydis-decoded mnemonic for unknown instructions

Report the mnemonic Zydis recovers instead of a hardcoded "nop", and use
e_No_Entry as the entry ID rather than e_nop since Zydis mnemonics don't
map onto Dyninst entry IDs. Register the callback via the public
register_callback() API. Also mark DYNINST_ENABLE_ZYDIS as advanced and
note it may be removed.

Co-Authored-By: Claude Opus 4.8 <noreply@xxxxxxxxxxxxx>


  Commit: 9fd8382012ef57b5edd371e3044a45511b7b9e7d
      https://github.com/dyninst/dyninst/commit/9fd8382012ef57b5edd371e3044a45511b7b9e7d
  Author: wuxx1279 <bbiiggppiigg@xxxxxxxxx>
  Date:   2026-06-08 (Mon, 08 Jun 2026)

  Changed paths:
    M instructionAPI/src/InstructionDecoder.C

  Log Message:
  -----------
  Install Zydis unknown-instruction callback by default

Initialize the callback pointer with zydis_unknown_instruction_callback
at static-init time when built with Zydis, so it is active without an
explicit register_default_callback() call.

Co-Authored-By: Claude Opus 4.8 <noreply@xxxxxxxxxxxxx>


Compare: https://github.com/dyninst/dyninst/compare/03c1c8bcff5f...9fd8382012ef

To unsubscribe from these emails, change your notification settings at https://github.com/dyninst/dyninst/settings/notifications
[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] c28e70: Use Zydis-decoded mnemonic for unknown instructions, bbiiggppiigg <=