From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) by sourceware.org (Postfix) with ESMTPS id 5E9F73858D28 for ; Wed, 24 May 2023 16:37:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5E9F73858D28 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-xd2a.google.com with SMTP id ca18e2360f4ac-76c636b6306so94100639f.3 for ; Wed, 24 May 2023 09:37:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1684946244; x=1687538244; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=X813gv5U+ZDrYn4sTkHpO1/BI1JjV0kcFr/XuxWL1ms=; b=MNIurjgS3iCFWCY9SRKzxr6Ze8esEi0usOutn0NtKmQll8XpWynlsR0vKnO+0lxIHA uSg4JgygRpQKiBSBGrmHMyNL3ikuaq3vIR2SAIdIEGTNkKuRsGc+UxCKvbcoJvCiNih0 ck6V80Ek8Voao5eWJYASwxMySujpBeYfWc4iDonNDUiUoluOi/OvVXztdhdbPUSm+Q4G r8R1ppgbocTaPQKHpw8LYjqFvA2czCdekZdw28yrBSGjgwf0tq5DXCqRfqAtJ2ho7+/Q r+xR6RHotKcsONvpNjIG2PlpuJ1byi9Zic8RLqUnDfGDkSkm5VTzkGVxmSOUw9w9jP4t 33VA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684946244; x=1687538244; h=to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=X813gv5U+ZDrYn4sTkHpO1/BI1JjV0kcFr/XuxWL1ms=; b=bUHHm2L1/uqBBM0q8ZNTHHrx8uYrW3qDuk+mbYFilEPtdwNmBDwCJHPgxeQBjY7BYO qLxyvJIQKH5FaqYntIS11s3LtHlXeGb6IjImw7RU19TbJ/R5FchVJy8U/UR64P5vQl7F Igz11ioRw+pE6kxmQcTkVKH61C655PEWDL5oPCr3QJ9URrLz3Rc9smQ2JvQmZxy2tOOo 2kTvWha31Wi3qF/TYSpXZ9mK32GKTyLqUeCKeoNWGQJ+kY2vKnqPuKGIc8lsopQATO1T MPzQPfdkE+MkZOmtIbGY5MMzMYexjl3vyciy57k7qfyEvrqdG08vGEju9jdlnXwszyHb /47Q== X-Gm-Message-State: AC+VfDyPn16HVtOndLlAwyqOEroKNHUF1Fzn3/Xw7ycGIuD8j/UAxjaN gGyL+CCoMYmJURuCeBWUsjiIcEMxi86z79a9MX3Arg== X-Google-Smtp-Source: ACHHUZ7k+i7y/MXtFxjHBWk/A8YWGfHdefEZTZ0XuYWvbObfAdkmvwq+cR0MeSKuSxSiMLzbx3NJeQ== X-Received: by 2002:a5d:93d1:0:b0:76c:7fb0:9d91 with SMTP id j17-20020a5d93d1000000b0076c7fb09d91mr12914921ioo.10.1684946244620; Wed, 24 May 2023 09:37:24 -0700 (PDT) Received: from localhost.localdomain (71-211-130-244.hlrn.qwest.net. [71.211.130.244]) by smtp.gmail.com with ESMTPSA id o22-20020a6bcf16000000b0076c81bf2731sm3397266ioa.20.2023.05.24.09.37.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 May 2023 09:37:24 -0700 (PDT) From: Tom Tromey Date: Wed, 24 May 2023 10:36:52 -0600 Subject: [PATCH 01/25] Stop gdb in gnat_runtime_has_debug_info MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20230427-ada-catch-exception-v1-1-947caa9905e3@adacore.com> References: <20230427-ada-catch-exception-v1-0-947caa9905e3@adacore.com> In-Reply-To: <20230427-ada-catch-exception-v1-0-947caa9905e3@adacore.com> To: gdb-patches@sourceware.org X-Mailer: b4 0.12.2 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,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: gnat_runtime_has_debug_info starts a new gdb to do its work. However, it also leaves this gdb running, which can potentially confuse the calling test -- I encountered this when writing a new DAP test. This patch changes the proc to shut down gdb. --- gdb/testsuite/lib/ada.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gdb/testsuite/lib/ada.exp b/gdb/testsuite/lib/ada.exp index b728e3a2aba..b4a93faefa5 100644 --- a/gdb/testsuite/lib/ada.exp +++ b/gdb/testsuite/lib/ada.exp @@ -204,5 +204,7 @@ gdb_caching_proc gnat_runtime_has_debug_info {} { } } + gdb_exit + return $has_debug_info } -- 2.40.0