From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7557 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Re: [PATCH] generate debug_frame info for __syscall_cp_asm (i386) so gdb can get backtrace Date: Wed, 29 Apr 2015 13:03:08 -0400 Message-ID: <20150429170308.GW17573@brightrain.aerifal.cx> References: <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 1430327009 11414 80.91.229.3 (29 Apr 2015 17:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Apr 2015 17:03:29 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7570-gllmg-musl=m.gmane.org@lists.openwall.com Wed Apr 29 19:03:29 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 1YnVOQ-0002Ld-2y for gllmg-musl@m.gmane.org; Wed, 29 Apr 2015 19:03:26 +0200 Original-Received: (qmail 22073 invoked by uid 550); 29 Apr 2015 17:03:24 -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 22024 invoked from network); 29 Apr 2015 17:03:20 -0000 Content-Disposition: inline In-Reply-To: <20150429165129.GA15839@alex-ThinkPad-L530> User-Agent: Mutt/1.5.21 (2010-09-15) Original-Sender: Rich Felker Xref: news.gmane.org gmane.linux.lib.musl.general:7557 Archived-At: On Wed, Apr 29, 2015 at 06:51:29PM +0200, Alex Dowad wrote: > 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...) Of course not; I meant for it to produce asm with cfi directives as output. If you'd like to give it a try that would be great. Some of the main criteria that would matter for inclusion in musl would be portable awk usage (standard awk, not gawk/etc., and compatible with Busybox) and the ability to support multiple archs -- even if the initial code is x86-only, it should take $ARCH as an argument and be reasonably easy for others to extend it to support other archs. Rich