From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp00.avonet.cz (smtp00.avonet.cz [217.112.162.55]) by sourceware.org (Postfix) with ESMTP id 8D9AA3858D32 for ; Mon, 17 Oct 2022 20:20:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 8D9AA3858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=fbl.cz Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=fbl.cz Received: from ktus.lan (217-115-245-101.cust.avonet.cz [217.115.245.101]) by smtp00.avonet.cz (Postfix) with ESMTP id 4MrpJh0pcrz1xns for ; Mon, 17 Oct 2022 22:20:20 +0200 (CEST) Received: by ktus.lan (Postfix, from userid 209) id 00A8630BD6E; Mon, 17 Oct 2022 22:20:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, NICE_REPLY_A, SPF_FAIL, SPF_HELO_NONE, TXREP autolearn=no autolearn_force=no version=3.4.6 Received: from [10.22.99.53] (cst2-71-84.cust.vodafone.cz [31.30.71.84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: vanekt) by ktus.lan (Postfix) with ESMTPSA id D25EF30BD6A; Mon, 17 Oct 2022 22:20:16 +0200 (CEST) Message-ID: <939656b1-2189-4177-c29c-d0430a8f4dff@fbl.cz> Date: Mon, 17 Oct 2022 22:20:19 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.13.1 Subject: Re: [PATCH v2] gdb/arm: Terminate frame unwinding in M-profile lockup state Content-Language: en-US To: Luis Machado , gdb-patches@sourceware.org References: <615642c8-920c-fc1d-b5d9-0c5e480da94f@arm.com> From: Tomas Vanek In-Reply-To: <615642c8-920c-fc1d-b5d9-0c5e480da94f@arm.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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, 17 Oct 2022 20:20:22 -0000 Hi Luis, On 17/10/2022 13:06, Luis Machado wrote: > >> With the change: >> ---------------- >>    (gdb) c >>    Continuing. >> >>    Program received signal SIGINT, Interrupt. >>    warning: ARM M in lockup state, stack unwinding terminated. >>    >>    (gdb) bt >>    #0  >>    (gdb) >> ---------------- >> >> There is a visible drawback of emitting a warning in a cache buildnig >> routine >> as introduced in Torbjörn SVENSSON's > > True. We might need to move it somewhere else. Though it is not > something we will have to repeat over and over. Just an idea: What about a text message (describing something odd during unwind) which an unwinder can associate with the frame and  gets printed later by 'backtrace' command? It may also replace not too informative for SIGTRAMP_FRAMEs. Anyway the message about the CPU in lockup is useful even just after stopping the running target. > > There is also the issue of communicating these warnings in a better > way through the MI to IDE's. > >> [PATCH v4] gdb/arm: Stop unwinding on error, but do not assert >> The warning is printed just once and not repeated on each backtrace >> command. >> Tomas