From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io1-xd31.google.com (mail-io1-xd31.google.com [IPv6:2607:f8b0:4864:20::d31]) by sourceware.org (Postfix) with ESMTPS id A9D54385802E for ; Mon, 22 Aug 2022 18:03:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A9D54385802E Received: by mail-io1-xd31.google.com with SMTP id i77so8957506ioa.7 for ; Mon, 22 Aug 2022 11:03:35 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:user-agent:message-id:in-reply-to:date:references :subject:cc:to:from:x-gm-message-state:from:to:cc; bh=NcjgFFCTQohVhjGj1lAYCNv4zDN+Ghfi5eQLoaaQkCo=; b=npYDsB4GXDExGDlvXe7VOTqbPX1xu45KbmypYUAVL8vV6FrV+W2E0EUf4rfAJv/7fU ZaYWjXMFk6u3yBlFkdi2T6uLIj17/QukMagpeTvEo4ws3LZA9Q/Rg9x+clrkRBngzaI2 hT7urVlArY31LJaSoMNzbiPGabUC9AlrpGZ1Y0mROb+noBg3PXuZdzEFdHU+hw/MzEYr An/prLFkl3U//L57vTqPzVpHEAGZMmNsCYhUN937WWAjFmfwQyVFpG1eSsYqZscy73uH YuEBw51UTwk08u+ShM5vPrHz/MlpWR8UGUevskWa/si7KxRWy8bDozkyDL6rUp8TKxP/ zKiA== X-Gm-Message-State: ACgBeo1jIB4WYVItd5VY5mZliGRAKnWgbmxiKBEPLewp2f4VR+vbHyoY Qvktq+0iG0kIlCaoBPejpIuKzA== X-Google-Smtp-Source: AA6agR4DBjdtfwC5X4nTO7MZuUJE1SjrkJhO2Vy9kkhgfgdrEW0xegkdfuY+dy7zTw7yvn5jqlYxQg== X-Received: by 2002:a05:6638:1356:b0:343:77c2:cad8 with SMTP id u22-20020a056638135600b0034377c2cad8mr9951796jad.156.1661191415059; Mon, 22 Aug 2022 11:03:35 -0700 (PDT) Received: from murgatroyd (71-211-185-105.hlrn.qwest.net. [71.211.185.105]) by smtp.gmail.com with ESMTPSA id o13-20020a02220d000000b00349e37a5880sm833143jao.139.2022.08.22.11.03.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Aug 2022 11:03:34 -0700 (PDT) From: Tom Tromey To: Tom Tromey via Gdb-patches Cc: Tom Tromey Subject: Re: [PATCH] Avoid crash with Ravenscar tasks References: <20220811150010.991599-1-tromey@adacore.com> X-Attribution: Tom Date: Mon, 22 Aug 2022 12:03:34 -0600 In-Reply-To: <20220811150010.991599-1-tromey@adacore.com> (Tom Tromey via Gdb-patches's message of "Thu, 11 Aug 2022 09:00:10 -0600") Message-ID: <87pmgscg09.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Aug 2022 18:03:38 -0000 >>>>> "Tom" == Tom Tromey via Gdb-patches writes: Tom> When using Ravenscar, gdb can crash if the user sets a breakpoint very Tom> early in task startup. This happens because gdb thinks the runtime is Tom> initialized, but in practice the particular task isn't sufficiently Tom> initialized. This patch avoids the issue by turning an assertion into Tom> an early return. Tom> I tested this using the AdaCore internal test suite. I don't know how Tom> to test Ravenscar using the FSF test suite. I'm checking this in. Tom