From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from CAN01-QB1-obe.outbound.protection.outlook.com (mail-eopbgr660122.outbound.protection.outlook.com [40.107.66.122]) by sourceware.org (Postfix) with ESMTPS id 18D7738708AF for ; Sat, 23 May 2020 18:29:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 18D7738708AF 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=Jrob+a1sphCkGK8uwzIAsSjpZ3JfuOeY76ed6GE24+Jnpt18UK/ZXWmQpwUUTvI3SJjBlnWm9Q3K2ge6pSx5rYxgDFVArPX11Nwn5po8tWp/tDOohjpN5PR/QNIVpJ98HZsif6wCnpQrnUoh/OW35cgAcgeagyyG5gsUqsczLWbiwly2GXo5GCT6pS7MZCVag/MEMnmZUNBc7WeNxb/LLiD3uIr9q+AU+VyesTj1+lwUY1aNAdJZL0GogfTZuG1iTZe3S+VRH6Qvifr7WA3fKCewknwHYozihOfxOkWwVM5F+0wk0D8BcFdKhtUuf4FAZiGm4kJJkeF7zrRUrViSBA== 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=ot3DugpYrzZHThFgUMgWv2iUn5v4p1s3umqB8bnycRI=; b=FFTHjmyOFVqZX5Ek1WwnUfUvtdcFrlYO2RrYN09tlULZ261Lv7CXdR81Tf2QR4hPKSVUzYdLRf1C/t9CeksPSUzQ45eTVar/PnyQpah7F+TuPCFgbaxpyYs95tpA1H87Bm0HmmFvRf32dJ4ECYou1kughCbLNAMHHfwwdbIUdEBO65GIMY8pGcIF22eCTXZWqnz4fS8OGSsge8vj+a7hmdmk3t1LLa7/RCYWiUyIqTrK8eIiMQuGXgUMTAmcu8lbdZ0ANxWpcco7EzBKaivG/IXAfp6N1QCXvTL9DbGCcpm+FIE2K3Mx8sfeAUR80N8vGsVuc91LgMKEWWbcTBpuoA== 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=ot3DugpYrzZHThFgUMgWv2iUn5v4p1s3umqB8bnycRI=; b=iufWnf80L3N5vih24tACHEXvPcmnBfYjqTzctF0Das6QeCMPRuEnP0Z3YZfAUUTA5eIs67JBbClH6soISE3uu+bJUws8hxL3Ofa2Ya10/9O0HyNesgxMuY/bxwUPMcJDr36BlI9/aJT36svryVXsheQo45GZAk5DapDmL4wTUE0= 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 YQBPR0101MB1348.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Sat, 23 May 2020 18:29:53 +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.026; Sat, 23 May 2020 18:29:53 +0000 Subject: Re: gdb 8.3: "handler for the OSI ABI "FreeBSD" is not built into this configuration" To: Martin Simmons Cc: simark@simark.ca, 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> <359bdbb1-c4ab-b89c-6d0a-f18025c64da8@simark.ca> From: Chris Nicol Message-ID: Date: Sat, 23 May 2020 12:29:49 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MWHPR03CA0011.namprd03.prod.outlook.com (2603:10b6:300:117::21) 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 MWHPR03CA0011.namprd03.prod.outlook.com (2603:10b6:300:117::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Sat, 23 May 2020 18:29:53 +0000 X-Originating-IP: [70.75.207.33] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 87e4622f-cb72-4936-37bd-08d7ff47496a X-MS-TrafficTypeDiagnostic: YQBPR0101MB1348: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:8882; X-Forefront-PRVS: 0412A98A59 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: uabBFZFrmfoL7wpSXPfpGMjAYgn/RHtspYkPUbt615lD4eUGOzXfM97qLaIjfLznj78rdZKZ5SP+k1y1s60mU2Vjri/JVbWHcMQCY5Nn1/XPcxdIr2J8cseqJHRE18Lt3rsEHyU28jekxkmmEFeSHQ+K+CHGu+LBNLqwn21gri5MMUqteMLWK7QaaCnRGFTCoUPsefElg4rwAiEEz9Uy6kugVwc8S2Dd54Uph8qq+vU/kddlx0TAI5ljsR+D+EapesPK9/FczPTNuhzHzBTNAPdJ2kyNSnkMmtcQT7fjlaQ+EKXx1k59rWOfbSxnjDwNwE8ddKtwJxG2Jmbpcgmhxz4OBVCaaGob46/yAkFp2BGCW0+ysrGhYKGjdpBOKEDXpJV1PlrYblNiBGXc1vokAW411H2/pMvXvISwlAkTBWU5XMginMXNnJ1EmP2f/1uWjuoj7SeIdgLqhuUrv7c+lQ== 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:(136003)(396003)(39860400002)(366004)(346002)(376002)(36756003)(966005)(66946007)(8936002)(26005)(5660300002)(31696002)(31686004)(8676002)(6666004)(478600001)(956004)(2616005)(6486002)(86362001)(66556008)(66476007)(6916009)(316002)(186003)(4326008)(16576012)(53546011)(52116002)(786003)(2906002)(16526019)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: zvx+HfJMnqt3BPhYDM4Mx4rZzo8juljJchSEwi0YYHHAsNIFD7ERQuHjG7sOxsloM4A5jJYyrFT+l1RyT2KY/7mSRCqiRFdSS0ulfo1b3WB6gmJFIIgpdDOqnQAYda9iLgYKz0zuMkoVxjLI2Go3Y4MdITlgSatzulf1hJ4W4LlYMswC0Ucpj3ZqD6HH4BTBJ3hm9v07TW0RX8zBjNtCJo3m3DTlUNBvInZRtWhtMVoHoTdxpRay410Nmj9zKf0K3zamG9m0StKMajEbsKfDBOxJKAduenYAhDYaF8X26RQ2fz499XtOmA6yLVVeaSBh5ytGP+SUcXOeJnO6cDozucYv8Z7+vBWAlNHpfdHftdoLnWM5XJq4MU4c/UhzhwDOzXPgyasjHButjekih7BnPq/ePX1KX7/3X4rUShl4P7Fm0PsQ/ELaKcdxjLLXhJJnHehAbTQA5ZTj4Lf6FRHIbkmFvuyoxvE1gSoVOJxjEY4= X-OriginatorOrg: uleth.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 87e4622f-cb72-4936-37bd-08d7ff47496a X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2020 18:29:53.7432 (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: iUQp05hRc675FrJBFv0vtdDoIZZfhSVXJhm7+BbLMt1hDbENeAPp7yKxLAKRN1I9 X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB1348 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_NONE, 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: Sat, 23 May 2020 18:29:56 -0000 Martin, Thanks for the follow-up. "show osabi" indicates "The current OS ABI is "auto" (currently "FreeBSD"). The default OS ABI is "FreeBSD")." Not very informative, as "FreeBSD" seems to be what gdb is having trouble with when loading. Perhaps there is some configuration parameter I should be setting when I run ./configure? I have run the nested gdb gdb llvm... as you suggest, but am not sure where to go from there. What command sequence do I need to use to step through osabi initialisation, then "running code for"? If I run gdb on its own with no arguments, "show architecture" indicates "sparc". If I run it and load a binary, then run "show architecture", the result is "sparc:v9". But the problem seems to be with the identification of the OS? Thanks. Chris. On 5/23/2020 11:40 AM, Martin Simmons wrote: > 64-bit SPARC is always at least v9. > > What do the "show osabi" and "set osabi" commands show? > > Can you run gdb under gdb? I.e. (adjusting the paths as required): > > gdb/gdb --args gdb/gdb llvm-tblgen llvm-tblgen.core > > Then use the outer gdb to step through gdbarch_init_osabi and > can_run_code_for in the inner gdb to see why none of the gdbarch_info > objects match before it prints that warning? You might need to > configure gdb with CFLAGS=-g CXXFLAGS=-g to get useful debugging info. > > __Martin > > >>>>>> On Fri, 22 May 2020 13:35:15 -0600, Chris Nicol said: >> >> Simon, >> >> This link: >> >> https://wiki.freebsd.org/201110DevSummit?action=AttachFile&do=get&target=sparc64_status_201110DevSummit.pdf >> >> at page 4, "CPU Type" makes me suspicious that v9 does not correctly >> characterise my processor. In that same document, there is reference to >> support for "UltraSparc, UltraParc III and V9" processors, whereas the >> SunBlade 100 I am using is referenced as having an UltrasSparcIIe >> processor, which is maybe not "v9"? v9 is possibly something else, such >> as UltraSparc III+. There are sparc64-fbsd-nat.o, sparc64-fbsd.tdep.o , >> sparc64-nat.o and sparc64-tdep.o object files in my build directory. >> >> >> Chris. >> On 5/22/2020 12:51 PM, Simon Marchi wrote: >>> On 2020-05-22 2:22 p.m., Chris Nicol wrote: >>>> 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. >>> >>> I'm not really familiar with sparc machines... does that values sound >>> good to you? Does it seem to match the machine you have? >>> >>> In any case, that seems to match the osabi registration line in >>> sparc64-fbsd-tdep.c: >>> >>> gdbarch_register_osabi (bfd_arch_sparc, bfd_mach_sparc_v9, >>> GDB_OSABI_FREEBSD, sparc64fbsd_init_abi); >>> >>> Is the file sparc64-fbsd-tdep.c being compiled? In other words, does >>> the file gdb/sparc64-fbsd-tdep.o exist in your build directory? >>> >>> Simon >>> >> >> >> >> >>