From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670109.outbound.protection.outlook.com [40.107.67.109]) by sourceware.org (Postfix) with ESMTPS id 2CA343851C3C for ; Sun, 24 May 2020 01:55:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2CA343851C3C 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=WBNPtyKg1YafzawhXsTv07nK/OGh/VTZukVz3MLSoPuOmUARpFJLsqwqruu2CQF33WCssHmsMDTk+0BM1ig8sLkJcu1gBT8U6+9jOGbEerFPuX5NCrgnsxoLF1ARoQmJzb16QyzEnyqOF+Jn6OlmkBkU4d25mwceCohLfwyW24dHZ30lkqmR1NCh6YrzGeU5zMEy8LzTrXkCLCf3x0ZjoFYz41LHJeJ7/OlEo6Myim2lKPw1wDEESxtXx8U3nO/5xSscALZQ3fNYHwmoBP3PYiBz8+NoLYWArMlDNtAe+3zZajf6CeCfaCMl1+H9MtjJBm7bQani6la5Wbp3h8pJ/A== 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=7VqHVJxkQYJsmhXUw+h4NwOlRyVAFjuvBol8cIVPztc=; b=Zk75rFgm1q60sZiJqCF6FtaZYl4xy3wvKPLCl21DuVECdz3v+IXpUIK99blCCxn7M7yMd5WoKb36X85l8X4pFIAtmCnUvG01WijyaIMwmXy7Dmb6qn/HJLshEGucu6MhM6Xhi66OweeO3XZIVnKyPirXOJY2TnBJpoXiuQlro1xaP0UHvYN5xg5TWR43d1JuIFRwINQFaqNv48OUNAyJDBdSnQXQQcr9TOP8Vpt21J3Xj5SJaXq+CGRSFXaTTwzYMZk08AkbUTomID8Ewup/QIRsvliwxc8G0Uf5BkKehzhnWNdSbCx5Ba2ZzDZ4jj4LmJ6NhXgJqNh1mA/bwhE0Yw== 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=7VqHVJxkQYJsmhXUw+h4NwOlRyVAFjuvBol8cIVPztc=; b=oa6WjjcxZQlQNwzZP1nSXat5Dm44fQuM82v3u/A119SMiNXufqBauVXMdOH56FkLxffwbz3v3OTeag62D9x0Ukjmyu0SeGrfiJt2pcv08Ra+YvTWhxxbokOdJ3Xga+O60rlTexgySepxni334sRzdPSiC3CMB8vuSCH6osFubpA= 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 YQBPR0101MB2276.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:5::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23; Sun, 24 May 2020 01:55:08 +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; Sun, 24 May 2020 01:55:08 +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 19:55:05 -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: CO2PR04CA0199.namprd04.prod.outlook.com (2603:10b6:104:5::29) 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 CO2PR04CA0199.namprd04.prod.outlook.com (2603:10b6:104:5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Sun, 24 May 2020 01:55:07 +0000 X-Originating-IP: [70.75.207.33] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e6409d3b-5261-48dc-9a4e-08d7ff857c54 X-MS-TrafficTypeDiagnostic: YQBPR0101MB2276: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-Forefront-PRVS: 0413C9F1ED X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lLL8gkcLS+ATzqQr2h0i66/DCiRFh0eB0W/GE9BBPrMWMJYGX+gBiPEEZZGT47NK9ZtBAuEeDQJxCtKJKJdRVvDo8A4ORfO8r8nwqeo4PoNEHVJzR68DdlL9l4PWpUoz/P/xybPxi1DERXjI1P9WeSfB63wFlrkp8lNbVq2O92ne7/okmsGu4ZXM14OAk/766NtPOBcZizufSvYMOC3EHw4cwBX12mc8IV9L4dJFAU9lEQiRSi/Z/+WQ41JBkd3iCEvuFIYWGmdQMYuKsnJkQbYQNQmOMFZLwGCSzqnTto9lsromyDQDS3qFuviWaEoyuyYvV0Zxw8F95i6xFsD2IJf0TISAcO3TSNz3h3cESs0WPyiAt1E5mPHdzQ5OlHWPFC4hOJXT44J6oVqFMW5TJKlcgShagAhq7+rL9b0f1JI6Q4qwYyIekplcp01s8kNguJfnE+vzh/r8D+7Q06H0Yg== 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:(396003)(376002)(39860400002)(136003)(346002)(366004)(66476007)(66556008)(66946007)(8936002)(31686004)(4326008)(6486002)(36756003)(6916009)(186003)(52116002)(16526019)(53546011)(26005)(2906002)(786003)(31696002)(316002)(966005)(478600001)(5660300002)(8676002)(16576012)(956004)(86362001)(2616005)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: EO4tXplpOiHjU7sy75G6iXOAqL9DN+n8FRDnYujA2yafH2tHh2N+Hal0aqqnepAlNgUOGO9sFegWnURQmK79LuykrJ1eyPhJ8ll0o3GbL9QC8QSVF0m/cDSAO1MW62jeLmy/k8eSclY5d+WH8Wl2hchLlMRVY6dykpREvxLl1sICZLMFs1Put/NuWtFV3g/uVzfBTBIUcAFplcMFwXOZlLxBNTSx6yqg6R1bgOnHJvV+Kq+yYbhom73vI8OjmaQQyBveyrBn5xvsVHKsxZXqW+dO0RutSeBgLZizyv1HRAA+Me79m5BQgyNcXy+pIBPKQhdYw21trz34qRxn0gbfAkvnXOIiG/fG+8FfFAQBKsDRxPpXF6gv5iXjj6gWUuxwG3LcN/zged2Afx4lni+DldocwtsO6Qmrxox7HLsUDNb4pG3gp9xXSI8Wiy/K1AowYQ2adITjtdciTmwhrWaN7ULHe5DU3NgHecv+GeFHSq0= X-OriginatorOrg: uleth.ca X-MS-Exchange-CrossTenant-Network-Message-Id: e6409d3b-5261-48dc-9a4e-08d7ff857c54 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2020 01:55:08.2994 (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: vMI21yfBjrjTnNFEGQUeMCKOdoWOT/ALZxyokdpfkii34s/SxLQ0sw0tv90CNkRK X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB2276 X-Spam-Status: No, score=-2.4 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: Sun, 24 May 2020 01:55:17 -0000 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