From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7556 Path: news.gmane.org!not-for-mail From: Alex Dowad Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] generate debug_frame info for __syscall_cp_asm (i386) so gdb can get backtrace Date: Wed, 29 Apr 2015 18:51:29 +0200 Message-ID: <20150429165129.GA15839@alex-ThinkPad-L530> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1430326312 30988 80.91.229.3 (29 Apr 2015 16:51:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 16:51:52 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7569-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 29 18:51:51 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YnVDD-0001RT-5O for gllmg-musl@m.gmane.org; Wed, 29 Apr 2015 18:51:51 +0200 Original-Received: (qmail 16299 invoked by uid 550); 29 Apr 2015 16:51:49 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 16237 invoked from network); 29 Apr 2015 16:51:45 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=mwKazBPD4JQbow1H4zSUVPLvar+BInk0WwlKmvPoVoU=; b=NE5ISZQq0KHm1b1b/T/jEZ0nmmHHAT9uMS32KhR7o+TbBCA/xQyb3FFom8AdO3vDPq tMjL3rkcMmC1LcuJLBsKWJ91fdK33HQB1GPq6Joz9UxB8QHuxauzHbl2i/YlZIgKjqKp t/x2Z1wYTJxYQz1VckbJYgDCxi09UCjEFpV2In53OUfijqyq0JSUkGWiiccP9nj4ZrZs 68Vb1R5drdMGWQNCjO/2MD3LETb/jontDLoJFA5jSlDMR327HZW7s5ycsrYkI98yghhx K8V5ZM97Gz4C2oHvA3f9s8+8qOxb77Lbyh66KDvYw6lSUrO3ksE5K+5kO2HdtRYBYNci JMxw== X-Received: by 10.194.121.68 with SMTP id li4mr33785wjb.84.1430326294522; Wed, 29 Apr 2015 09:51:34 -0700 (PDT) Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:7556 Archived-At: On Wed, 29 Apr 2015 11:57:03 -0400, Rich Felkner wrote: > It would be either sed or awk most likely. Plain shell would work for > writing it too but would probably be uglier, and sed is already > required anyway for alltypes.h generation. If any new tool were > required (unlikely) then configure would just detect its absence and > turn off cfi generation for asm if it's missing/broken. I can try coding up an awk script if you like (no sed, sorry). It will be a filter which the asm passes through to add the .cfi_* directives. Does that sound good? (I really, really hope you weren't looking for an awk/sed script which takes asm as input and generates a DWARF file as output...) Regards, AD