From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 126263 invoked by alias); 30 May 2018 18:49:45 -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 126072 invoked by uid 89); 30 May 2018 18:49:35 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=Hx-languages-length:796, acceptance, H*i:sk:0410836, H*f:sk:0410836 X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 May 2018 18:49:34 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w4UInRd8030775 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 30 May 2018 14:49:32 -0400 Received: by simark.ca (Postfix, from userid 112) id 73B681E529; Wed, 30 May 2018 14:49:27 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id 312301E481; Wed, 30 May 2018 14:49:26 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 30 May 2018 19:04:00 -0000 From: Simon Marchi To: Don Breazeal Cc: gdb-patches@sourceware.org Subject: Re: Question: Is Dwarf CFI support required for new target? In-Reply-To: <0410836b-5744-f823-80c5-057c8f113914@codesourcery.com> References: <0410836b-5744-f823-80c5-057c8f113914@codesourcery.com> Message-ID: <226ee236120250e03a0539f96eca720d@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-Poly-FromMTA: (simark.ca [158.69.221.121]) at Wed, 30 May 2018 18:49:27 +0000 X-IsSubscribed: yes X-SW-Source: 2018-05/txt/msg00798.txt.bz2 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 Hi Don, Can you provide more context? I can interpret your question in two ways: - 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. Simon