From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-HE1-obe.outbound.protection.outlook.com (mail-eopbgr70050.outbound.protection.outlook.com [40.107.7.50]) by sourceware.org (Postfix) with ESMTPS id 3B61C3858025 for ; Tue, 26 Apr 2022 13:55:13 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3B61C3858025 Received: from DB8PR06CA0013.eurprd06.prod.outlook.com (2603:10a6:10:100::26) by AM0PR08MB3729.eurprd08.prod.outlook.com (2603:10a6:208:fb::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Tue, 26 Apr 2022 13:55:09 +0000 Received: from DB5EUR03FT045.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:100:cafe::a) by DB8PR06CA0013.outlook.office365.com (2603:10a6:10:100::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.15 via Frontend Transport; Tue, 26 Apr 2022 13:55:09 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by DB5EUR03FT045.mail.protection.outlook.com (10.152.21.164) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.14 via Frontend Transport; Tue, 26 Apr 2022 13:55:09 +0000 Received: ("Tessian outbound 62985e3c34b6:v118"); Tue, 26 Apr 2022 13:55:09 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: 4e18c0e57a5b1bed X-CR-MTA-TID: 64aa7808 Received: from b2601245e4e7.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 367DD975-BEC8-4F14-BBDF-B2A1FEE76658.1; Tue, 26 Apr 2022 13:55:03 +0000 Received: from EUR03-VE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id b2601245e4e7.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 26 Apr 2022 13:55:03 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Iv1+ZE/lRkx0M5+0ezxgMBciqaEsqZzetns1KtKw0TLlqI3zgAIy4tbwDNpUKWqKtw4SYETCMDpejK3bmfnVJLG8dSY/LR0uhyY6wEvLFCMz/Y4mnc4GXh7IlvjcsuED6pWFXqydTqgkCjmPGXx6CUX57M91IihMr1XhXewfg9tw7Jcro9gsX1QrkhrCoq5Urm8CgNNmo6nIDLy9nQUG7fvwjrhMjduZ/GsWe38XDPs6TC7t64apfFJkWUcUPnMlEYzmTSdkyu80d54gB2cJI1ye+vSoLYUw1KCIoCzXl64KN7mNzXB9tkmLxYoRuJI4zB0L8iy6Zt71VCIwwXPUrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=MF2Xt4nJUoBsuEmNr2euY0xTR71uCCGCVtKwbwIcB6A=; b=oQOftL+uy2AeR0tEHxH9+iQRORPW03mYS2PmztJ/yE/q2heOW6AGgRsS3Fy0r24B1xrwyQS9WoyWBf6fnvuEb3ea94rIEf3ElB5vJlK86MDIZPP/vRONcsF/jl/TYZC0tD56bZsxzfob1fvMxCzGLrOmvteWhVzV1/7BMuXuE6BwflNbQmdv+rheVInZ/pqLuWnDF2iB8l6FtNqt2zx5NEgFp9hQu1VNPvOoI9ET6cRDvseAdkHJas2Cg/4hmvn2lIYWoN+a5h5ntrAtxcnKOm+/m0LMvw3MlhtiQNtdcTTMjjpbmknAYesHhufv1Ft2M/t21qmWS2Appaq0Jzlurg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none Authentication-Results-Original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; Received: from VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) by PA4PR08MB6015.eurprd08.prod.outlook.com (2603:10a6:102:e6::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5186.13; Tue, 26 Apr 2022 13:55:00 +0000 Received: from VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7080:6233:cf8f:a8a6]) by VI1PR08MB3919.eurprd08.prod.outlook.com ([fe80::7080:6233:cf8f:a8a6%7]) with mapi id 15.20.5186.021; Tue, 26 Apr 2022 13:55:00 +0000 Message-ID: <80a2bea2-587b-ad9d-93d6-5ca2075862ce@arm.com> Date: Tue, 26 Apr 2022 14:54:58 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: GDB 12.0.90 available for testing Content-Language: en-US To: Joel Brobecker , "Jose E. Marchesi" Cc: gdb-patches@sourceware.org, vapier@gentoo.org References: <20220320055815.2A90FA4D6C@takamaka.home> <87pmllq7jr.fsf@oracle.com> From: Luis Machado In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO2P265CA0148.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:9::16) To VI1PR08MB3919.eurprd08.prod.outlook.com (2603:10a6:803:c4::31) MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: c2961e6b-7b1b-48f1-98f4-08da278c60b8 X-MS-TrafficTypeDiagnostic: PA4PR08MB6015:EE_|DB5EUR03FT045:EE_|AM0PR08MB3729:EE_ X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: hvTDBjqh4QAYoBJyKvw3LZz/TRfzlR/IPjuc63j1NyciuzrRbjdAZehv6HarraVG8jOoAaBBOA20UwwtWkCU2uHz9g+I04nEdDI/wzLQz86ngl3kvsOl54oSlIDHDmujnXR/62UgQNBPsbfagJsjPAkXSRzZOQHnYJ2qTaEvzW5ZICin0m8+EITkgvRKsYkaVMRnDPhVTzGvuSFkpHe8XMwg9NydyEA+HQeVOuhh8J9YlQbs4wUf0jSswqGkPcwK8039oYOz3k+Y6i0j1DIF7KHw7yVoDfqkxkH1iDibgj1RNRaC/a70LMpZyQzUz2WTzR5H8wIZREeBV8AbO7O8wu5MdXm9gWRQfBphi53OXtSn3P3uV7zF+jGThlZYLhZvImCOLgp5t1UyfLVSqoEmzq0tjJrQqetAqkbriMxiY9b2TQYOxuCl4xKkKf0wtbqEjTRTYMtysvxWspWYgowAsF+CzEiVQMoXzEvePDzeRfNsx56bYVGFMYogvOsFD0FgBLBySKaODF7R/4JHJFOqA7iD66pJ9xljOuRHRAcAaj4s606cV4D3OX+1qCM8eRzjU2Ayv2GMf/cvvsXChMtDjZ+ReVx9Yp93v/y3HC5ViEAbU8BXeWfWLLDdVBcgJAEhIfCqhaYl2Qa7YfXnlceYgqeWvXRcfzeouNNSNdb9xzCsnRleUu69tXjerFZ4f7M/DVN+4QHnZ8yccW7p/xfSegHJ0Jh/bZeUhWPAvEhtPMR6zOxzrUTpu2tEJNvd1PxHhrLyz/RA4KZSgYk1EqqzmUOYNoVl2d3jc72KhG/+3il8vCOgsmGhLk1OJqqr4qgG X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR08MB3919.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(86362001)(26005)(186003)(31696002)(2906002)(6506007)(31686004)(6486002)(66476007)(66556008)(4326008)(83380400001)(8676002)(84970400001)(66946007)(8936002)(508600001)(2616005)(110136005)(38100700002)(53546011)(6512007)(36756003)(44832011)(316002)(5660300002)(45980500001)(43740500002); DIR:OUT; SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6015 Original-Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: DB5EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: e4e17e37-17af-4496-2017-08da278c5b24 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: OTuiOV/AA5hie701fKQdezmshP9KWPTu4O3T+Yf/89uoescuQHZbliKeKxf0WwoMrsUyHWtMlGqWX2qtj6jKQkzfkE1TOqAFEmAfpz4uQ7B1xI2Hr3zn6VbC8KpexPRqYQSrlmAB/kbKLo/XyAOP6muJSLAVx+dwC5dWU1r+HNj2hLwtKF8L+PvTjz9uOBHG8Agk/zwFjgdFWH9etekNabcrcW2UF4ZQh7YZxwiXLDxhkb1XOoVOIiWudthF4ofoXtVRIL2ajWNRslrXBp3vIuOmsVMXb1N1Du1g87VSHjaBmJf6Qg3PaBWLr0b4E2eiaocHm4KORB845TflX/SBufDOp/OqgbxEsCFklnohryM73fSR0T0AcNL9qi4rCFWdBPq5KmQFg309/CDCvN4jJLbJSZkl3qNSVE7LaNHvv+gftB+bs/cwm/UauNU35sI0NBYRmVcYZVFHGyM5LEerC0BOLaLD9NigmNPanyfh5p7ndH+msr91Wl90s1tnfM7q8Adj8qxam5GoozCFDJ8A3rvaYfpFjnBlDjz/8ZKbDLJM5ZiGEduP6w5Est5k6ikZ/pvH/xgTe8ti/6WFVB//vcfm1XelmxvKCxVNYYpVjifKtUq2K6Q9sSwude9T9sADy0HJCYdHLpwOBsvTaD/GAYbdhzUC42pRy7K4Vp6pozjLGkG2ezyMT7xur6dG0huORSvd2itI6JXBf8cwzC/1TgM3qayzGvQs8Ry8U4/MUjsWfWAsLL+yWylG0I0VnAWAarc7BVOX2ZqMvvqYvFTTMei5rF9z4D5zS1MSBIlV/Pg= X-Forefront-Antispam-Report: CIP:63.35.35.123; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:64aa7808-outbound-1.mta.getcheckrecipient.com; PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com; CAT:NONE; SFS:(13230001)(4636009)(46966006)(40470700004)(36840700001)(70206006)(8676002)(70586007)(4326008)(356005)(83380400001)(84970400001)(107886003)(2616005)(31696002)(316002)(110136005)(86362001)(47076005)(186003)(336012)(508600001)(6486002)(6512007)(81166007)(53546011)(6506007)(40460700003)(26005)(36860700001)(8936002)(31686004)(5660300002)(36756003)(44832011)(2906002)(82310400005)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2022 13:55:09.7805 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c2961e6b-7b1b-48f1-98f4-08da278c60b8 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d; Ip=[63.35.35.123]; Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: DB5EUR03FT045.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB3729 X-Spam-Status: No, score=-13.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, NICE_REPLY_A, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Apr 2022 13:55:16 -0000 Hi Joel, Just an update on this. It seems we might need further adjustments to makefiles to get 32-bit builds with --enable-targets=all working again. I'm not sure if we will be able to make it for GDB 12. I'll give it a try. Alternatively we could have a backport post-release. On 4/17/22 18:33, Joel Brobecker wrote: > Adding binutils@ to the list, since opcode is part of binutils. > > Can someone take a look at Luis' patch below, please? Luis noticed > this when he tried to build the GDB 12 release candidate with > --enable-target=all. > > Thank you! > > On Wed, Apr 13, 2022 at 06:20:24PM +0200, Jose E. Marchesi wrote: >> >>> This particular combination of switches and host has not been built in >>> a while, so bugs might've been introduced/uncovered. >>> >>> Mike, Jose, does this look reasonable? >> >> Sure, for BPF. >> >> I wonder how we missed TARGET32_LIBOCODES_CFILES back when we integrated >> the bpf backend... >> >> Thanks for fixing this. >> >>> From 387ef2492403c89ac7ac817488a49a3fd7d9d4ba Mon Sep 17 00:00:00 2001 >>> From: Luis Machado >>> Date: Wed, 13 Apr 2022 11:39:36 +0100 >>> Subject: [PATCH] Fix 32-bit build for --enable-targets=all >>> >>> The following fixes the GDB build for 32-bit (tested on 32-bit arm) >>> for the following combinations: >>> >>> * --enable-targets=all --disable-sim >>> * --enable-targets=all >>> >>> I do see quite a few internal errors when running >>> gdb.base/all-architectures.exp on arm 32-bit Ubuntu 18.04. They all >>> fail when checking for a default disassembling function, which doesn't >>> exists for some targets. >>> >>> This particular combination of switches has not been tested for 32-bit >>> hosts in a while (since November/December 2021), so there might be bugs >>> that we need to address. The patch makes things build cleanly though. >>> >>> Tested on aarch64-linux Ubuntu 20.04 and armhf-linux-gnueabi Ubuntu 18.04. >>> >>> It would be nice to exercise this on other 32-bit targets. >>> --- >>> opcodes/Makefile.am | 10 ++++++++++ >>> opcodes/Makefile.in | 10 ++++++++++ >>> 2 files changed, 20 insertions(+) >>> >>> diff --git a/opcodes/Makefile.am b/opcodes/Makefile.am >>> index afd19fa7785..681fbc07584 100644 >>> --- a/opcodes/Makefile.am >>> +++ b/opcodes/Makefile.am >>> @@ -124,6 +124,11 @@ TARGET32_LIBOPCODES_CFILES = \ >>> arm-dis.c \ >>> avr-dis.c \ >>> bfin-dis.c \ >>> + bpf-asm.c \ >>> + bpf-desc.c \ >>> + bpf-dis.c \ >>> + bpf-ibld.c \ >>> + bpf-opc.c \ >>> cgen-asm.c \ >>> cgen-bitset.c \ >>> cgen-dis.c \ >>> @@ -178,6 +183,9 @@ TARGET32_LIBOPCODES_CFILES = \ >>> lm32-ibld.c \ >>> lm32-opc.c \ >>> lm32-opinst.c \ >>> + loongarch-opc.c \ >>> + loongarch-dis.c \ >>> + loongarch-coder.c \ >>> m10200-dis.c \ >>> m10200-opc.c \ >>> m10300-dis.c \ >>> @@ -234,6 +242,8 @@ TARGET32_LIBOPCODES_CFILES = \ >>> ppc-opc.c \ >>> pru-dis.c \ >>> pru-opc.c \ >>> + riscv-dis.c \ >>> + riscv-opc.c \ >>> rl78-decode.c \ >>> rl78-dis.c \ >>> rx-decode.c \ >>> diff --git a/opcodes/Makefile.in b/opcodes/Makefile.in >>> index 3ab8bfb0548..d3eee49b169 100644 >>> --- a/opcodes/Makefile.in >>> +++ b/opcodes/Makefile.in >>> @@ -516,6 +516,11 @@ TARGET32_LIBOPCODES_CFILES = \ >>> arm-dis.c \ >>> avr-dis.c \ >>> bfin-dis.c \ >>> + bpf-asm.c \ >>> + bpf-desc.c \ >>> + bpf-dis.c \ >>> + bpf-ibld.c \ >>> + bpf-opc.c \ >>> cgen-asm.c \ >>> cgen-bitset.c \ >>> cgen-dis.c \ >>> @@ -570,6 +575,9 @@ TARGET32_LIBOPCODES_CFILES = \ >>> lm32-ibld.c \ >>> lm32-opc.c \ >>> lm32-opinst.c \ >>> + loongarch-opc.c \ >>> + loongarch-dis.c \ >>> + loongarch-coder.c \ >>> m10200-dis.c \ >>> m10200-opc.c \ >>> m10300-dis.c \ >>> @@ -626,6 +634,8 @@ TARGET32_LIBOPCODES_CFILES = \ >>> ppc-opc.c \ >>> pru-dis.c \ >>> pru-opc.c \ >>> + riscv-dis.c \ >>> + riscv-opc.c \ >>> rl78-decode.c \ >>> rl78-dis.c \ >>> rx-decode.c \ >