From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cp165172.hpdns.net (cp165172.hpdns.net [91.238.165.172]) by sourceware.org (Postfix) with ESMTPS id B9438395CC16 for ; Wed, 27 May 2020 21:31:22 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B9438395CC16 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dyxyl.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=qqxnjvamvxwx@dyxyl.com DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dyxyl.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References: In-Reply-To:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=19CBFJ0hcloINGXKKAnDa1oTamMQ2OPyXX4QGWTWkbU=; b=Rxy4eJNccX9KFc9tsikViLYAvj eyxLF3xpVtPaSzui+PromfsYUjLNAp3Cmet9FD0UOC+0XhoRh4hzFMUbAjeys7RgZkaEpAYrjN3n/ XW6Oe0VUHkeiLqX718l/HRfyXKvMPLsU3bFjsyyAR7tsDAk03+mBYqzCYz15w1N/gJrE=; Received: from cpc92314-cmbg19-2-0-cust794.5-4.cable.virginm.net ([82.11.187.27]:42004 helo=localhost.localdomain) by cp165172.hpdns.net with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1je3du-004AuD-BQ; Wed, 27 May 2020 22:31:18 +0100 Received: by localhost.localdomain (Postfix, from userid 597) id EB9676022B; Wed, 27 May 2020 22:31:17 +0100 (BST) From: Martin Simmons To: Chris Nicol Cc: qqxnjvamvxwx@dyxyl.com, simark@simark.ca, gdb@sourceware.org Subject: Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" In-Reply-To: (message from Chris Nicol on Sat, 23 May 2020 19:55:05 -0600) 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> <359bdbb1-c4ab-b89c-6d0a-f18025c64da8@simark.ca> Date: Wed, 27 May 2020 22:31:17 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-cPanel-MailScanner-Information: Please contact the ISP for more information X-cPanel-MailScanner-ID: 1je3du-004AuD-BQ X-cPanel-MailScanner: Found to be clean X-cPanel-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.801, required 5, ALL_TRUSTED -1.00, BAYES_50 0.80, HK_RANDOM_FROM 1.00, URIBL_BLOCKED 0.00) X-cPanel-MailScanner-From: qqxnjvamvxwx@dyxyl.com X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, HK_RANDOM_ENVFROM, HK_RANDOM_FROM, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.2 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - cp165172.hpdns.net X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - dyxyl.com X-Get-Message-Sender-Via: cp165172.hpdns.net: authenticated_id: dyxyl/from_h X-Authenticated-Sender: cp165172.hpdns.net: qqxnjvamvxwx@dyxyl.com X-Source: X-Source-Args: X-Source-Dir: 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: Wed, 27 May 2020 21:31:39 -0000 Hi Chris, Please post of the full output (including all start up messages) of running gdb 9.1 with the llvm-tblgen core file and the gdb commands info all where __Martin >>>>> On Sat, 23 May 2020 19:55:05 -0600, Chris Nicol said: > > Thanks, Martin. Yes, when the gdb_6.1.1 did not work, I first had a look > to build the 9.1 in /usr/ports/devel/gdb, but the Makefile indicates > NOT_FOR_ARCHS= sparc64, and a comment above it "untested on sparc64, > might work". Not encouraged, I went on to build the 9.1 from the gnu > source. Maybe I will try the /usr/ports version if I comment out the > NOT_FOR_ARCHS, since there might be some tweaks in there that is > specific to FreeBSD. > > I will also try what you are suggesting below. Hard to track down the > llvm-tblgen problem when I can't debug why it is seg. faulting... and > getting some help on the llvm list has been pretty fruitless. > > Chris. > > On 5/23/2020 4:17 PM, Martin Simmons wrote: > > Hi Chris, > > > > Yes, the architecture is detected from the binary if given, otherwise it > > defaults to the main architecture. > > > > BTW, have you tried building devel/gdb from the /usr/ports tree? That > > is the normal way to get any specific tweaks that the FreeBSD project > > already knows about. > > > > I can't give you comprehensive instructions on how to debug the nested > > gdb. I think you should start by looking at the function > > gdbarch_init_osabi in gdb/osabi.c to see what it does. In summary, it > > is looking in the list gdb_osabi_handler_list for something that matches > > the argument named info. It only finds a match if the osabi is the same > > and it has an acceptable arch_info (the function can_run_code_for). It > > prints the warning if it doesn't find a match. > > > > The command sequence to start debugging it is something like this: > > > > break gdbarch_init_osabi > > run > > > > It should then stop at the breakpoint, where it is useful to do: > > > > print info > > print *info.bfd_arch_info > > set $tmp=gdb_osabi_handler_list > > while $tmp > > print *$tmp > > print *$tmp->arch_info > > set $tmp=$tmp->next > > end > > > > That might be enough to find why there is no match, but otherwise you > > have to repeatedly use the step command and print other things that the > > code is examining. > > > > __Martin > > > -- > ______________________________________________________________________ > 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 >