From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 100109 invoked by alias); 1 Jun 2018 22:57:22 -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 100094 invoked by uid 89); 1 Jun 2018 22:57:22 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-6.3 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:0410836, D*ca, H*M:mbx, breazeal X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 01 Jun 2018 22:57:21 +0000 Received: from svr-orw-mbx-02.mgc.mentorg.com ([147.34.90.202]) by relay1.mentorg.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-SHA384:256) id 1fOsz1-0001DB-8C from Don_Breazeal@mentor.com ; Fri, 01 Jun 2018 15:57:19 -0700 Received: from svr-orw-mbx-02.mgc.mentorg.com (147.34.90.202) by svr-orw-mbx-02.mgc.mentorg.com (147.34.90.202) with Microsoft SMTP Server (TLS) id 15.0.1320.4; Fri, 1 Jun 2018 15:57:17 -0700 Received: from svr-orw-mbx-02.mgc.mentorg.com ([fe80::b428:a08e:8ebc:bfa]) by svr-orw-mbx-02.mgc.mentorg.com ([fe80::b428:a08e:8ebc:bfa%22]) with mapi id 15.00.1320.000; Fri, 1 Jun 2018 15:57:17 -0700 From: "Breazeal, Don" To: Simon Marchi CC: "gdb-patches@sourceware.org" Subject: RE: Question: Is Dwarf CFI support required for new target? Date: Fri, 01 Jun 2018 22:57:00 -0000 Message-ID: <63178f9a96184f2a9192717d41c94e0e@svr-orw-mbx-02.mgc.mentorg.com> References: <0410836b-5744-f823-80c5-057c8f113914@codesourcery.com> <226ee236120250e03a0539f96eca720d@polymtl.ca> In-Reply-To: <226ee236120250e03a0539f96eca720d@polymtl.ca> x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2018-06/txt/msg00038.txt.bz2 > -----Original Message----- > From: Simon Marchi [mailto:simon.marchi@polymtl.ca] > Sent: Wednesday, May 30, 2018 11:49 AM > To: Breazeal, Don > Cc: gdb-patches@sourceware.org > Subject: Re: Question: Is Dwarf CFI support required for new target? >=20 > On 2018-05-29 12:14, Don Breazeal wrote: > > Hi, > > I have a question about the requirements for GDB port to a new target: > > is support for Dwarf Call Frame Information required for acceptance, > > or is prologue analysis sufficient? > > Thanks > > --Don >=20 > Hi Don, >=20 > Can you provide more context? I can interpret your question in two > ways: >=20 > - Your producer does not produce CFI, so you would be forced to always > use prologue analysis for unwinding. In that case, I guess it's fine, > GDB should do its best with the information at its disposal. > - Your producer produces CFI but GDB for your architecture won't use it. > In that case, I would ask why don't you use it. It's generally more > reliable and less hair-pulling than prologue analysis. >=20 > Simon Hi Simon, My scenario is currently a little less concrete than those you describe, bu= t this feedback is helpful. Thanks --Don