[PATCHv4 0/2] AArch64 libopcodes styling

Andrew Burgess aburgess@redhat.com
Fri Jul 8 10:25:38 GMT 2022


Changed since v3:

  - Patch #1 is unchanged,

  - Removed debug code that was accidentally left in patch #2,

  - Patch #2 now sets the disassemble_info::created_styled_output flag
    correctly in disassembler.c.

Changes since v2:

  - Patch #1 is unchanged,

  - Patch #2, now with more OBSTACK!  This patch is pretty much a
    complete rewrite from the gound up based on Richard's feedback.
    The new iteration makes use of obstacks (in aarch64-dis.c and
    tc-aarch64.c) to format each chunk of disassembler output.  These
    chunks are then combined in aarch64-opc.c as required.

Changes since v1:

  - Original patch #1 has been merged,

  - New patch #1 adds a dis_style_sub_mnemonic style and updates
    objdump to handle this style,

  - Patch #2 has been updated to make use of the new style.

---

Andrew Burgess (2):
  opcodes: add new sub-mnemonic disassembler style
  libopcodes/aarch64: add support for disassembler styling

 binutils/objdump.c       |   2 +
 gas/config/tc-aarch64.c  |  45 +++-
 include/dis-asm.h        |   7 +
 include/opcode/aarch64.h |  28 ++-
 opcodes/aarch64-dis.c    | 247 +++++++++++++++++++---
 opcodes/aarch64-opc.c    | 440 ++++++++++++++++++++++++++-------------
 opcodes/disassemble.c    |   1 +
 7 files changed, 587 insertions(+), 183 deletions(-)

-- 
2.25.4



More information about the Binutils mailing list