From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by sourceware.org (Postfix) with ESMTPS id 8664F3858C54 for ; Fri, 12 May 2023 18:12:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8664F3858C54 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-763c3429aa6so772441839f.2 for ; Fri, 12 May 2023 11:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1683915159; x=1686507159; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=5OaJVA8wZtujTSTmIXQeydOdy9POIMRTh16Q0TFmCSs=; b=hAGhOi2bUzDshzkYmBsRBCSqa1GCuaujvTL36FXc+w2Kyr8DO5k1jLhOft3IlItgCK qU0XbT3u7U234WZCU7vYHmLnfDKgqmMx11U+h/ZRiRF83SIfrDkH8D2+ev+/EGvvjkKS 42LqmDv/F4EIV6jK9Y7/e6rHQMwmtZLsR6Gq9U7B7o7I9UDcmucM/7DlVPM2bQAj4dDd N3IaCmBpbTYHlNIHcCVKDuiGKljGg9XCNDUC2Tk4TJdonRiOnRrW8XxC+ivEs6b0XHiz ZJxqiM93jf0bpeO0gspSx7kcJEWxprZi1Wzh6owU+HvXhM2MCgvM+23rMRATHHNPokDW ++rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683915159; x=1686507159; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5OaJVA8wZtujTSTmIXQeydOdy9POIMRTh16Q0TFmCSs=; b=eoLfeTarJOvD0BT+OKvVRQRcAKtF2zCS8HLJP/oVZ0MFddz8K4Z9xt8L7D6uRzS0+e 2ZI2n59ZBkGt6WI10jIYNrAlKQC4i9b2eTWoJCaKCJM69CkiCCxMn7A13LlwowMpplhk 936A0uAoD7cB4x8Pc/6VkGY33Ea3HawyW/yEHVvezDVRsKQDAdqlphmMJLPJO8CIBVWf y3oEfe5udJ8YuGcUuNnil2FgkLvktX0ERRdm4fhzZG4QtlBEW2C54pm5PQaqTeQhyztl WpAtiqAS1zZeAZwZfSfXyv3+skhgeU0ZW/q0vorgPPP0Gn2SqCo0sXLguJLIMdn/XrEc dQxg== X-Gm-Message-State: AC+VfDzNIu4SE7hugm3WFnjfZR/jq7vMn6QY4/h4voEJQoy8ewSp8cuy FHwiOcirg96ZnpW1jB2mBgLm9DXzyhapuFcTuquyZA== X-Google-Smtp-Source: ACHHUZ5cIxJRZayBpGyvHV4i9rs2eS/eCGLa0+kDCA5p7NHjJUT6pfpMa7BbwXBwe6fTkRkfR984Rg== X-Received: by 2002:a5d:9a90:0:b0:769:82a4:4419 with SMTP id c16-20020a5d9a90000000b0076982a44419mr16543397iom.14.1683915158722; Fri, 12 May 2023 11:12:38 -0700 (PDT) Received: from murgatroyd (75-166-157-55.hlrn.qwest.net. [75.166.157.55]) by smtp.gmail.com with ESMTPSA id f18-20020a056638329200b0040fad7eb910sm5184115jav.176.2023.05.12.11.12.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 May 2023 11:12:38 -0700 (PDT) From: Tom Tromey To: Tom Tromey via Gdb-patches Cc: Tom Tromey Subject: Re: [PATCH] Fix calling debuginfo-less functions in Ada References: <20230417134149.511889-1-tromey@adacore.com> X-Attribution: Tom Date: Fri, 12 May 2023 12:12:37 -0600 In-Reply-To: <20230417134149.511889-1-tromey@adacore.com> (Tom Tromey via Gdb-patches's message of "Mon, 17 Apr 2023 07:41:49 -0600") Message-ID: <87a5y94dwq.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: >>>>> "Tom" == Tom Tromey via Gdb-patches writes: Tom> A co-worker at AdaCore noticed that calling a function without Tom> debuginfo yields: Tom> (gdb) print plus_one(23) Tom> 'pck.plus_one' has unknown return type; cast the call to its declared return type Tom> However, this also happens if you follow the directions and add the Tom> cast. Tom> This patch fixes the problem and adds a regression test. I'm checking this in now. Tom