From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id iRBOJcmpGWp6HycAWB0awg (envelope-from ) for ; Fri, 29 May 2026 10:59:21 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=OwGfhCRC; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 8507E1E0A3; Fri, 29 May 2026 10:59:21 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 872921E062 for ; Fri, 29 May 2026 10:59:20 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4B8CD4BA23E1 for ; Fri, 29 May 2026 14:59:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B8CD4BA23E1 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=OwGfhCRC Received: from mail-oa1-x33.google.com (mail-oa1-x33.google.com [IPv6:2001:4860:4864:20::33]) by sourceware.org (Postfix) with ESMTPS id A9C604BA2E25 for ; Fri, 29 May 2026 14:58:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A9C604BA2E25 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A9C604BA2E25 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=2001:4860:4864:20::33 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780066734; cv=none; b=xj1vJL67tGdOur7qfr2Xj2bsPgJpOWRvUmfQ1dQFueDkPkGnhe+WasodvH2gNekrNi79foGc2dhNBcsGF8t0pCtBoYq/laqGtGFyeXyt2XlCtkOLsTyTPBElKlnTYvwsk/RuWuIf/zqd2bgKvQJH1UJAy8km6IiilOFbqywZsNo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1780066734; c=relaxed/simple; bh=FyFBjvj/F3JLQ1ZemZQksacDvH/x3kKlu61HGkfbN2s=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=GCqMLQx6lGogJYaqzP7VEVg2tVJlgsdwJCU8OKJpCNBJsTXqVtmTNKIuvrtCAupDdsa2h4dtbB2eWa2xJrMjBK2qDDtoYUF+aTKtlRgB8o/Qda/QgZWtY0cE10A8tZ/2pND4eW2ULUFqGuy+3Gep+84bZF/zA2G4Zm/2XDoLS28= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, secure) header.d=adacore.com header.i=@adacore.com header.a=rsa-sha256 header.s=google header.b=OwGfhCRC DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A9C604BA2E25 Received: by mail-oa1-x33.google.com with SMTP id 586e51a60fabf-40ef10ec84cso11582907fac.2 for ; Fri, 29 May 2026 07:58:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1780066734; x=1780671534; darn=sourceware.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=n+gnOqJU+9PYrTiFyR4NE9QTDJVn30d61YEK2hQKm70=; b=OwGfhCRCeFrn7vd8BkB2cZ4XBWJLpEq9/qx/V9y3M11YBp6i/zSoMWOMaswcj27csl kwtFGU4pV5Edj41jOkZ+qile8bheZJoBv/cIpY1B51fDNMq0z856cPInqmw2CAPfijJv 8dBhpKbJTLYXFCE8/z6Sp4yV/As/5XGt6ySwBHsfnRmrxgZi+uEovFDM4U82sfK+diAP x0okzpL6ce8nhwApSAfPv1r0wozfevQNkQ9SqeGy51P3h6eBo1uEGSGJWg0ZoqBZbQhr kpr82ULlsXpLNafctokestD3kyUVzsiH1J2uAug2OWptezn6WQeKzijXwxXOEmNDkO+W qjYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780066734; x=1780671534; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-gg:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=n+gnOqJU+9PYrTiFyR4NE9QTDJVn30d61YEK2hQKm70=; b=XMrIsri8X6TGKQG5XUD/WqSTMZsf8/lTMEMXS7x3/kKPl5tUVs8/O9awjn+SmEFQxy JUUiB0qIYh1bmm3If62iQwP9o0hTSiIU0N9TbJ1XTm3jzR4fwHrB8yokwhyoUyg4VBP1 Jr01QLR7CTFirKwstxl4UaoiwY1je11Ef4wO+KCjv8tsjSvBo8HIH5j0gReSewsdVgkV fyDoQeXnXjD5p81xLUJNONKXkmEegXfCoDu/gIQfpw7RmZaeNd6qY7kMWXzDKzj/zVrJ gkgYiFRBYsIKHU16mX4wtbj+M72su2YTDIQ2t/UhX2kkCFZPBv8aASqqrhI+WAxELER9 hVbw== X-Forwarded-Encrypted: i=1; AFNElJ+9ByTkWRQYEsBgcNAzhBNi+r5SQPTok6F1R3gqzj+TmYBjZLL96DWLqtXs/kGwRqWZkHGngpvJrJTFsw==@sourceware.org X-Gm-Message-State: AOJu0YyScEtuJwkq/9LA6GbVYbPkYD9KTW8FJ+T7++HqIG+ZYSs3VmUp 5XftKaxIX+VZIQRJj3d7Euq3Yqoqf/3JPIVZ/dhqM+LeuWSB2bbE/HDKavCPzq7XFI8zzQ3MJcr d6W8= X-Gm-Gg: Acq92OHtdYtD7nB9etiNQnjBd8idbNswf1qsNZP1aUZmgLg6qojVdgjvLV93k4DHYr6 sbDm+I1jT+D4lWnLAa7LLlUw/6iCFOTfFaXMrplgGPWGbEy1sF062narWHvCXvyYZEns5WJ9hzh nTs+qSZ6pd4mz7TWCwR2rlfEKZSjwVvAxnrjTjAyAG2MwerHRYs4CT4qNjCjV0pX5rMMpswPfYD qWa7NXMkpuyKPUsVfK16uzqp1sXIDrbdsfm/URDcSR00kAvS+yf1WwSt6QUWb6g8p8fe57AUTZs 8D9frkeDp+zEoF9sVgBkPpgFnWVHnLbdvsHSwb1SY8LEli5KJKLnbbhm0oSTE/pf36SNzuiFywe jGda0vER6R/JFyaiS7OPOkBPTYAogEAetb5FA9rCmzpAlEeZuxzWZwvq3oXjnKTmTYeOisEj2AB LAOl8QRSAy/mIOMy0yXR1JY8IYcyvczSvqOvdbM6ptGhOgwl2CJ1hbaA== X-Received: by 2002:a05:6870:5386:b0:42c:24f6:f190 with SMTP id 586e51a60fabf-43ca421d2eemr81451fac.17.1780066734023; Fri, 29 May 2026 07:58:54 -0700 (PDT) Received: from bapiya (75-166-225-82.hlrn.qwest.net. [75.166.225.82]) by smtp.gmail.com with ESMTPSA id 586e51a60fabf-43c93ef9687sm1102082fac.11.2026.05.29.07.58.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 May 2026 07:58:53 -0700 (PDT) From: Tom Tromey To: Tom de Vries Cc: Tom Tromey , gdb-patches@sourceware.org Subject: Re: [PATCH] Convert dw2-const.exp to use the DWARF assembler In-Reply-To: <1a2adcac-e470-43ae-8e32-58d6addb6775@suse.de> (Tom de Vries's message of "Sat, 23 May 2026 10:56:25 +0200") References: <20260522155505.3363510-1-tromey@adacore.com> <1a2adcac-e470-43ae-8e32-58d6addb6775@suse.de> X-Attribution: Tom Date: Fri, 29 May 2026 08:58:52 -0600 Message-ID: <87zf1i45zn.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain 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 >>>>> "Tom" == Tom de Vries writes: Tom> Then I ran it with target board unix/-m32, and ran into: Tom> ... Tom> (gdb) print/x val8^M Tom> $2 = 0x0^M Tom> (gdb) FAIL: gdb.dwarf2/dw2-const.exp: print/x val8 Tom> ... Yeah, me too. I wonder if there's some gas oddity here. The DWARF doesn't seem to be notably weird or word-size-dependent. I see in the old .S: >> -#if 0 /* gas encodes it explicitly. */ >> - .slab128 0xffffffff00000000 >> -#endif >> -#if 0 /* gas encoded it correctly - formed GDB FAILed. */ >> - .sleb128 -4294967296 >> -#endif >> -#if 1 /* Rather encode sleb128 by hand. */ >> - .byte 0x80, 0x80, 0x80, 0x80, 0x70 >> -#endif So hmm. But maybe this is some kind of extension we would want to support in the DWARF assembler. Anyway still looking into this. Tom