From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id Xr3hFcv8zWeDSgoAWB0awg (envelope-from ) for ; Sun, 09 Mar 2025 16:40:43 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dyxyl.com header.i=@dyxyl.com header.a=rsa-sha256 header.s=default header.b=Lfssl6Vh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 499821E105; Sun, 9 Mar 2025 16:40:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-4.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,HK_RANDOM_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D5B881E05C for ; Sun, 9 Mar 2025 16:40:41 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8D393858C60 for ; Sun, 9 Mar 2025 20:40:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8D393858C60 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (2048-bit key, unprotected) header.d=dyxyl.com header.i=@dyxyl.com header.a=rsa-sha256 header.s=default header.b=Lfssl6Vh Received: from cp165172.hpdns.net (cp165172.hpdns.net [91.238.165.172]) by sourceware.org (Postfix) with ESMTPS id C2CD83858D1E for ; Sun, 9 Mar 2025 20:40:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C2CD83858D1E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=dyxyl.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dyxyl.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C2CD83858D1E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=91.238.165.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741552812; cv=none; b=atsUWezYr6UMg5Fb2Qs/wIx35IE2FvB4U5er+2UL6QSugshuj4Ey9gGxsRAJVK0MsWzbWw9QVL4zW5Xk4o2SwtOs77CWryok9lxieaBKOlmgksFneflc18k4GqcRfFYg77VasOHJj3z4WdGfv/6Wj39U0xaI16i/GdZETXifusY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1741552812; c=relaxed/simple; bh=Mhe6u8kSftUAh2m3KzIivVFFAjmIYORSX3wmiUN7f/g=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=lL78wPxaD+ZUMyAQ6YhGJQubKkCoA5yrB/6bEEDJHr0sWo+Q3nLdArz+XRgbvwDtRSTYcewDabS6Ry8TglEc796WyGwpsEmROhHIjjsluK1HLbz9U6ccagLPEp4k1LoCpLfWQnCT0BB4pqGrywy9mSvkW5OT8FJz1CNXcH1uYck= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2CD83858D1E 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=CCo0+UzW1XPTD2lX3SCN4cUPK9SqmQYdsTQxefslAc4=; b=Lfssl6VhhTf+llvEqgmrABALmH fAzjZBaEpPDdAFn6TA+1YuovoIRG6xhw7q91BOzQcRBSu8XbwRTaHVg4TLLoCrhs3mPxbEYquXmvG bKnXv+hR2uKRyaHnyAAPInmc7RaWLJ1xVGHepNRili519uiYGKepgWowPaZj+JeWpnOZi4xuMnnMH sAGpQntEQjp3NxMxyCT79Az/I+6MRFIM7pDen6FC7Apb3gRhT27T6A0f+eCOJAopswtNzx0eEixRW 95ehSz3Q/1WVxhw7rpuVUA4L2N6VxYRU39j7ANQ4CWyXTWHNgfsKSzvnkRODsnDyuMAjAjMJT87Ai ivWphxNA==; Received: from cmbg-19-b2-v4wan-170160-cust2145.vm17.cable.virginm.net ([94.175.88.98]:52164 helo=localhost.localdomain) by cp165172.hpdns.net with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.1) (envelope-from ) id 1trNRM-0000000AXN1-2rer; Sun, 09 Mar 2025 20:40:04 +0000 Received: by localhost.localdomain (Postfix, from userid 597) id 22155E1428; Sun, 9 Mar 2025 20:40:04 +0000 (GMT) From: Martin Simmons To: Tom Tromey Cc: qqxnjvamvxwx@dyxyl.com, gdb-patches@sourceware.org Subject: {Spam?} Re: [PATCH][PR symtab/32658] Fix parsing .debug_aranges section for MIPS signed addresses In-Reply-To: <87frjno4t1.fsf@tromey.com> (message from Tom Tromey on Sat, 08 Mar 2025 09:39:06 -0700) References: <20250307235722.1D4CDEE05D@localhost.localdomain> <87frjno4t1.fsf@tromey.com> Date: Sun, 09 Mar 2025 20:40:04 +0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain X-YourOrg-MailScanner-Information: Please contact the ISP for more information X-YourOrg-MailScanner-ID: 1trNRM-0000000AXN1-2rer X-YourOrg-MailScanner: Found to be clean X-YourOrg-MailScanner-SpamCheck: spam, SpamAssassin (not cached, score=5.009, required 5, ALL_TRUSTED -1.00, BAYES_99 5.00, HK_RANDOM_FROM 1.00, KAM_DMARC_STATUS 0.01, URIBL_DBL_BLOCKED 0.00) X-YourOrg-MailScanner-SpamScore: sssss X-YourOrg-MailScanner-From: qqxnjvamvxwx@dyxyl.com X-MailScanner-SpamBox: yes 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-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> On Sat, 08 Mar 2025 09:39:06 -0700, Tom Tromey said: > >>>>> "Martin" == Martin Simmons writes: > > Martin> This patch fixes https://sourceware.org/bugzilla/show_bug.cgi?id=32658 by sign > Martin> extending the addresses read from the .debug_aranges section as required for > Martin> MIPS. I made it explicitly sign extend the addresses after they are read > Martin> (instead of using extract_signed_integer) because I don't know if the > Martin> address_size in the section will always be equal to the gdb arch_size. > > I wonder if perhaps the relevant gdbarch method should be used instead. Do you mean gdbarch_integer_to_address like in dwarf_expr_context::fetch_address? I considered that, but it looked like a kludge and it wasn't clear to me if that would be good for avr (calling avr_integer_to_address). Also, the old parser used comp_unit_head::read_address (called from dwarf_decode_lines_1) so that didn't do anything with gdbarch. __Martin