From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 091D63851C0C for ; Fri, 22 May 2020 17:36:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 091D63851C0C Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark@simark.ca Received: from [172.16.0.95] (192-222-181-218.qc.cable.ebox.net [192.222.181.218]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 83BF51E76A; Fri, 22 May 2020 13:36:51 -0400 (EDT) Subject: Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" To: Chris Nicol , 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> From: Simon Marchi Message-ID: <04509e3f-e5d9-72fb-1b1a-6d58a08482a2@simark.ca> Date: Fri, 22 May 2020 13:36:50 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 MIME-Version: 1.0 In-Reply-To: <88abec76-ad36-1562-d93b-d1159430bf2d@uleth.ca> Content-Type: text/plain; charset=utf-8 Content-Language: tl Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, 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 17:36:55 -0000 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