X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com Message-ID: <52AAA870.8010102@iki.fi> Date: Fri, 13 Dec 2013 08:25:52 +0200 From: Andris Pavenis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.0 MIME-Version: 1.0 To: djgpp-workers AT delorie DOT com Subject: Re: How to compile gcc 4.9.0 with DWARF4 support enabled? References: <52A9E8E4 DOT 4060702 AT gmx DOT de> In-Reply-To: <52A9E8E4.4060702@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp-workers AT delorie DOT com On 12/12/2013 06:48 PM, Juan Manuel Guerrero wrote: > I am porting gdb 7.6.2 and I would like to try dwarf4 support. > To this purpose I want to compile gcc 4.9.0 and the question > arises how to enable dwarf4 support. I would also like to build > a gcc version with full dwarf2 debug support so I can step into > the compiler code with old gdb port. I am aware that dwarf4 > support has been disabled in previous compiler ports. It is not disabled at all. dwarf2 is used by default unless explicitly specified otherwise. So one can use gcc command line options to tell GCC to use dwarf3 or dwarf4. My last builds uses dwarf2 by default so simple bootstrapping GCC is sufficient. I myself had to do some debugging (lto1.exe) and worked OK Andris