From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670113.outbound.protection.outlook.com [40.107.67.113]) by sourceware.org (Postfix) with ESMTPS id 49062386F432 for ; Fri, 22 May 2020 18:22:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 49062386F432 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uleth.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nicolc@uleth.ca ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XIgCWDDrmi4vY8ZFZ19RJWWdD3Li2llp0mNAIkSiJQG2eHB0EWGY1C/l/Gt9D2TIoKnsIMPZr2m6Q1eJ32hhUPTSytdHMwtd1+Aw84pi+pfvehSRyFbEFr7EsCML94GOU/Bkv245/swYWjMIsamlhVidkyEIkROaJlq+9NoVjELnsMzLrZCWC0i6W0Lan6sCFXK7n8BM86b2Q2hf7ji7039fkKWRmxnLbOz26o29u5fIIyJMl+7+/45PS5+bGlkQxVp3+toW6165y78mIkQ83HdAXNa6BYYRF+9R5Z2oSEixSKBOqibB6SPM9fRl3xXgjhoZ2rzGjNzkoIZRgwNSjA== 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-SenderADCheck; bh=5NMS5NjQaRu6wGZEJbXE9+mQzPCT3NskjJQ/JmalgSM=; b=XrO40v/1qyuZ06O+JNwbBQ7dsYHrxDcaYu/0ELJh9TYgn6XmKcG5DxPG2gvmZg4fQaeFuZDyHSfTMQZwRNRcWNg9ciXPDyfqgGPvm/iXLSbSnuE6O8X8vG9T+qURTzGDkL76ECdMq+Yu0IKwc+LENfQn2sTkOLR6cOju5A2LADGqrQt9BddysDoR8867J6feJebE03rzBXCO8swyNcMhWUNc9dtQZqyLu0oonASOo6O0oz4vUG2NHRhxi0ovnMKspqHxwMfNfZiWMCOvkyd83qsojbz7MURWjTCBRFu6Oa3drOD0cku8+BI1GUaFZgpJ8A2iNwVxwGQaueom8DN2uA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uleth.ca; dmarc=pass action=none header.from=uleth.ca; dkim=pass header.d=uleth.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uleth.onmicrosoft.com; s=selector2-uleth-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5NMS5NjQaRu6wGZEJbXE9+mQzPCT3NskjJQ/JmalgSM=; b=pXF1oYW8zdM59pIn/V9yVmGbAzeGXeKapTCJNuOALOBL8n7cQyPd+40iHiF7A98271XmvOp+XKYML/1I5+jxZkf4rgKYJ8ci9fGqWPTqi1r9amcHFsAUgZj5Ps+WFXmeqIYyzd5CWBUKK+ofjD6h68/dQmL6s5jt8xERUGJGVLw= Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=uleth.ca; Received: from YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:12::16) by YQBPR0101MB2083.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:3::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Fri, 22 May 2020 18:22:46 +0000 Received: from YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM ([fe80::8492:5f7d:52dd:ad46]) by YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM ([fe80::8492:5f7d:52dd:ad46%2]) with mapi id 15.20.3021.020; Fri, 22 May 2020 18:22:46 +0000 Subject: Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" To: Simon Marchi , gdb@sourceware.org References: <052613da-fdbe-707b-3a52-da7ce437d424@uleth.ca> <1b20f6d8-9736-02d8-73dc-bc4843e36ed3@simark.ca> <198ff4bc-8195-750e-84f5-e3d76974a223@uleth.ca> <88abec76-ad36-1562-d93b-d1159430bf2d@uleth.ca> <04509e3f-e5d9-72fb-1b1a-6d58a08482a2@simark.ca> From: Chris Nicol Message-ID: Date: Fri, 22 May 2020 12:22:42 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 In-Reply-To: <04509e3f-e5d9-72fb-1b1a-6d58a08482a2@simark.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: CO1PR15CA0096.namprd15.prod.outlook.com (2603:10b6:101:21::16) To YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:12::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.11] (70.75.207.33) by CO1PR15CA0096.namprd15.prod.outlook.com (2603:10b6:101:21::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Fri, 22 May 2020 18:22:46 +0000 X-Originating-IP: [70.75.207.33] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 5c14d41f-2914-4d8a-cf53-08d7fe7d207e X-MS-TrafficTypeDiagnostic: YQBPR0101MB2083: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 04111BAC64 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: whwVt5jcBGbcXZsLdMOS4XSUlMmHiNZeknsdZWdkYc41JH2YXLJuTuI/Gqg21If6MoZ06bfLCFC7FUmc6fbrwDvEp/caqYyk4dUFexFfoVjqZauoYTaMLAwRBUFatQQi6fYTTNdrqE1crmcvo0KXyAR/oUmBseIrsH50paTwSL8428WkeJMML8cyBwxieYywWjLTyD6+gxM7qiSU69cl4OosDacz+8BDX9bYP41Z8qAOgYihjryot9QbBwRhnnrwZwNFzEdMaGIzHV+qv6oMUKNJmG14TtMgqRs1FTPkvwpdrmTmCUeFrYMhzcKUlLEODyQOfPTS2i/impBNF9VrBS/s1aFHF9qYwpFqSEJtxKUN/Kwh8HCJXTqMr/jQSGrqKWA6e7fMs1/t8vFwmdVmJMW9UWymv4aDA6yxu5FIhHcmx7Wk+g4YsitkwBD9IoEEdhmOkPyr8BchRQ7RqRZqFQ== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(376002)(346002)(396003)(39860400002)(136003)(366004)(16576012)(66476007)(6486002)(966005)(66556008)(66946007)(86362001)(31686004)(478600001)(786003)(316002)(8676002)(8936002)(2906002)(186003)(6666004)(52116002)(31696002)(956004)(36756003)(16526019)(26005)(53546011)(5660300002)(2616005)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: QJRSux2szfU82jQ8/l+IM/vOBz9ZzW+rF9OwXAwtH5N7EJfF5uuQMSQCLVyuZ5hjqpbnIgso/DLC5Lv+SErEfSnBuNSwP/h6i7tPDllvVgTnjHs3aZmGwIlmu4ipN8qvjMIqUAKIQbjqbrxDBA94Gvx3Y0C/nxKwgnJ5Sl4eie/qS5a/njWs6zizWx87vAYQ/mP+CiPBxdaaB/p++5tamOFqPMiXyobDWqI7ZdjIps+OtaAwbKETGrwCk0Dzav5+lkDeEwvUeBRUaBNvdEhkyIr0E2kqr2alIkTg2oLZRpjgnNJyglFR0oZfaPYO88sa791QRpLnqNv8zjvf085ANBWICKaeRKaD83rZAtEbja8CKaNNR7A17bdtxjLZ+yl4bCg9kuHd7E3laE5ZsRfqd1J17EnS+TmPhIdCXc1phKkYfqhSCXfUJ0Rp8bTgMaeglOu13QLcYaDACeWcxPBXyeeHylSnsiu24Jm9+v9tfIY= X-OriginatorOrg: uleth.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 5c14d41f-2914-4d8a-cf53-08d7fe7d207e X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2020 18:22:46.8821 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8cd360c2-068b-4e36-8db5-27b35792f53f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: EvkqmdpmYRkoGxxb8hBN32UHXkq3frjqsdwYC+R1V9MK7rXDSbAUeJ8vvIDFzHEK X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB2083 X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 18:22:50 -0000 Dear Simon, Thanks for your reply. I went ahead and completed the build of gbd-9.1, which had been the original plan. With the gdb-9.1 executable, I re-ran it against the llvm-tblgen binary and its core dump, with the same result as in gdb-8.3. So this is progress of a sort, I suppose. Taking now the gdb-9.1 and loading gcc9 into the debugger, then "show architecture" yields "The target architecture is set automatically (currently sparc:v9)". The system I am using is based on the 500-MHz UltraSPARC IIe processor. So maybe this setting, sparc:v9, is wrong for this platform? Best wishes, Chris. On 5/22/2020 11:36 AM, Simon Marchi wrote: > On 2020-05-22 1:56 a.m., Chris Nicol wrote: >> Dear List, >> >> My system - SunBlade 100 running FreeBSD 12.1 had a stock gdb 6.1.1 >> version of the debugger, which came with the FreeBSD 12.1 I am running. This version would not would not run against some core dumps I had from llvm-tblgen in the >> build of llvm90. This was being built with gcc9, a gcc9 which I built >> and installed on the SunBlade 100 from the /usr/ports tree. When I run >> the gdb-8.3 against that llvn-tblgen.core, I get an initial message "A >> handler for the OSI ABI "FreeBSD" is not built into this configuration >> of GDB. Attempting to continue with the default sparc settings". > > Let's start with this, as it's a sign that there's probably something wrong > already. > > There should be a call to gdbarch_register_osabi that registers a handler > for the (cpu, os) pair. In sparc64-fbsd-tdep.c, I see this call, for > example: > > gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9, > GDB_OSABI_FREEBSD, sparc64fbsd_init_abi); > > > However, maybe your particular machine does not match the machine > bfd_arch_sparc / bfd_mach_sparc_v9? What does it show if you load > some binary file into GDB, then do "show architecture"? > > Simon > -- ______________________________________________________________________ Dr. Christopher J. Nicol, Phone: (403) 329-2261 University Librarian and FAX: (403) 329-2234 Professor of Economics, The University of Lethbridge, E-Mail: nicolc@uleth.ca Lethbridge, Alberta, T1K 3M4, CANADA. http://people.uleth.ca/~nicolc