From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3397 invoked by alias); 10 Jun 2019 21:25:05 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 1159 invoked by uid 89); 10 Jun 2019 21:24:51 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=september, pouring, afford, Tuesday X-HELO: mail-qk1-f195.google.com Received: from mail-qk1-f195.google.com (HELO mail-qk1-f195.google.com) (209.85.222.195) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 10 Jun 2019 21:24:49 +0000 Received: by mail-qk1-f195.google.com with SMTP id w187so6321587qkb.11 for ; Mon, 10 Jun 2019 14:24:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cimeq-qc-ca.20150623.gappssmtp.com; s=20150623; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=MX4b6FeMGGD1OufZjIY2XqfG8hwGN916bRsMU6gVpjU=; b=p0C9dBPE2rRvyyTWPZwhVoTvIp30EoJLEcozF+v6tPtORzlDo94LM3QRt8WZxHvYYt IqR4c9rErNmrzmPhEOvTLiij4DhbMH/9Ejd9Sl+L7Uqm8KHIpBOW8jOPm5Vc+31wne0g xklbY0wsQPkRPOrDTDn242Bjf4gZj9GY3p7w3SEMcYLBPdh/njVcOdI/wX6vwMhZ9pN1 OeyEYSFKILN6FETFyEc7btLjbfpk3ktehrnAgMSzBcWjV23fd1oKS7HMHE0RAH0/4Zb5 7eFTtFqJFv40QI6XgktA5+ucVywr6iein+nn614RaV68CQ3bdYScKovfrHXg4ygvsUPo 0jWA== Return-Path: Received: from [10.0.28.1] ([204.19.10.194]) by smtp.gmail.com with ESMTPSA id o185sm5435884qkd.64.2019.06.10.14.24.42 (version=TLS1_3 cipher=AEAD-AES128-GCM-SHA256 bits=128/128); Mon, 10 Jun 2019 14:24:42 -0700 (PDT) Subject: Re: [PATCH] Fix exception unwinding for ARM Cortex-M To: Fredrik Hederstierna , Yao Qi , gdb-patches@sourceware.org References: From: James-Adam Renquinha Henri Message-ID: Date: Mon, 10 Jun 2019 21:25:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-SW-Source: 2019-06/txt/msg00205.txt.bz2 Hi everyone in this thread, (not many as I see) We could take another shot at integrating some changes to GDB so it works correctly, but that may only happen if there are the least amount of useless bike-shedding and that the right people in the mailing list contribute. Basically, we must 1) make *very* clear the fact that Cortex-M devices are used typically in a bare-metal system with no OS (read: Linux) whatsoever, only possibly a tiny scheduler and that's all. That means we don't have to be concerned about "user visible" registers and whatnot, they are all visible anyway, and if the spec says that a register exists, *it is visible*, period. Other thing though, 2) my patch achieved its goal in a rather weaselly way, and the correct way is indeed to have it integrated into target features. But I need more info on the matter, and I'm a bit clueless about what to do with those "target features", how they are handled by GDB and how I can test the new configuration in isolation, without being "altered" by e.g. OpenOCD, which handily provides a target description that I can use as I did before. I sure can figure it out all by myself, but that might be only after pouring an rather big amount of time into the matter that I cannot afford to do now. I need active collaboration and answers. Here, let that message be in the mailing list for everyone to see. James-Adam Renquinha Henri, Ing. jr Ingénieur d'application CIMEQ INC. On 19-06-02 03 h 31, Fredrik Hederstierna wrote: > Hi Yao, Adam, > > > Some years back there was done some work done on unwinding on Cortex-M. > > Only the very first start of the chain of patches was completed (new > function arm_m_pc_is_magic()). > > > The actual real patch work with code work by me/Adam for cortex-M4F > MSP/PSP and unwinding did never reached the repo. > > > What do you think of making another attempt to fix the stuff, I guess > all paper-work etc is in place, so we can try do a retake on this? > > > Thanks, Best Regards, Fredrik > > ------------------------------------------------------------------------ > *From:* Yao Qi > *Sent:* Tuesday, September 27, 2016 3:38 AM > *To:* Adam Renquinha > *Cc:* Fredrik Hederstierna; gdb-patches@sourceware.org > *Subject:* Re: [PATCH] Fix exception unwinding for ARM Cortex-M > On Mon, Sep 26, 2016 at 3:26 PM, Adam Renquinha > wrote: >> That looks correct. >> > > Patch is pushed into master and 7.12.  The rest of your original > patch is still welcome! > > -- > Yao (齐尧)