From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 599EB3858C56 for ; Tue, 21 Jun 2022 11:22:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 599EB3858C56 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-467-6jB-sKoMNNiLKb9GoKd8yA-1; Tue, 21 Jun 2022 07:22:54 -0400 X-MC-Unique: 6jB-sKoMNNiLKb9GoKd8yA-1 Received: by mail-wm1-f69.google.com with SMTP id p18-20020a05600c23d200b0039c40c05687so4189914wmb.2 for ; Tue, 21 Jun 2022 04:22:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=T84Pe98SN5MVLgrj6V0+gQPP42e/FX7paCTtYIqpnio=; b=whlX+z3+UGbBr3mfGvB6URT1D/40CeTUul8yrvyKEudLhAxnnvaf+In6TPVSZITzuX uoFeJhuBKbCkKxOsSfect15vk9TNYIzgPCfcfWg5EcV/lYI2YZEq2ZvFzIZ4Mrx0xUD5 wjub8Id/qkGbVsufPuPhrFnCx7djuuCxhp80DRWPkHWetp/6iXejFi17ER75fiilxHfo UYPkpPq7PXSYW5uuDaaib/HNE4PehvAPmmox1w6VI1lYQyl+uK3wEtkiFWpuhhfmr27r QOZhWyPLlt+w+DSrqGw5bRCVIDBfDia3SwkdTAvkR1nqvODTSzpdADR0l7r7koacijXs Ft/g== X-Gm-Message-State: AJIora/+GIDB0u5Lo78hkRBd0JaSrY4YHnqdCMMd2n0280bSMKgQELM7 Ezo+QQaa0ertyS4ZFOHHnersDWBvxOu/t1JlIlV9hv4IhQIQ92G/WE/YSlAWuSkhmKl0agpiAou b9Fq7LBE/ENEfREB/9zG7uS65+AHtP2hTmk3iweTq4VIFeTAMquMD2CvK0eudwg4fRQAQhA== X-Received: by 2002:a7b:c154:0:b0:39c:4f4a:79c0 with SMTP id z20-20020a7bc154000000b0039c4f4a79c0mr29457277wmi.152.1655810573362; Tue, 21 Jun 2022 04:22:53 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tcYridXs7lMAVyXJSZgSDJJew/lLFd0fMSGkqLVJw6M9dQADqF65Y0btqk2K5rRyOJFWOtoA== X-Received: by 2002:a7b:c154:0:b0:39c:4f4a:79c0 with SMTP id z20-20020a7bc154000000b0039c4f4a79c0mr29457261wmi.152.1655810573121; Tue, 21 Jun 2022 04:22:53 -0700 (PDT) Received: from localhost ([213.31.44.107]) by smtp.gmail.com with ESMTPSA id n6-20020adffe06000000b00213abce60e4sm15565995wrr.111.2022.06.21.04.22.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 04:22:52 -0700 (PDT) From: Andrew Burgess To: binutils@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/2] AArch64 libopcodes styling Date: Tue, 21 Jun 2022 12:22:47 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jun 2022 11:22:57 -0000 This series adds libopcodes based styling to the AArch64 disassembler output, this enables 'objdump -d --disassembler-color=extended-color' to work for AArch64. The first commit is a small refactor, while the second commit actually adds the styling support. There's a couple of questions that I still have, which I've detailed in the commit message of the second patch. All feedback welcome. Thanks, Andrew --- Andrew Burgess (2): opcodes/aarch64: split off creation of comment text in disassembler libopcodes/aarch64: add support for disassembler styling gas/config/tc-aarch64.c | 21 +- gas/testsuite/gas/aarch64/alias.d | 26 +- gas/testsuite/gas/aarch64/b_c_1.d | 42 +- gas/testsuite/gas/aarch64/float-fp16.d | 12 +- gas/testsuite/gas/aarch64/int-insns.d | 4 +- gas/testsuite/gas/aarch64/no-aliases.d | 26 +- .../gas/aarch64/programmer-friendly.d | 2 +- include/opcode/aarch64.h | 10 +- opcodes/aarch64-dis.c | 185 +++++++-- opcodes/aarch64-opc.c | 367 +++++++++++++----- 10 files changed, 504 insertions(+), 191 deletions(-) -- 2.25.4