X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Message-ID: <51FD48FD.3090206@iki.fi> Date: Sat, 03 Aug 2013 21:16:29 +0300 From: Andris Pavenis User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130625 Thunderbird/17.0.7 MIME-Version: 1.0 To: djgpp AT delorie DOT com CC: Juan Manuel Guerrero Subject: Re: Programs compiled with gcc481 cannot be debugged with gdb. References: <51B36263 DOT 6080309 AT gmx DOT de> In-Reply-To: <51B36263.6080309@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com On 06/08/2013 07:57 PM, Juan Manuel Guerrero wrote: > I have compiled it using gcc-4.8.1 with the following command: > gcc -Wall -g2 -O0 a.c > When I try to use gdb to step through the code I get > the following error message: > > GNU gdb (GDB) 7.6 > Copyright (C) 2013 Free Software Foundation, Inc. > (gdb) > f (i=) at 1.c:5 > 5 printf("a=%d\n", i); > (gdb) p i > can't compute CFA for this frame > (gdb) > > > The important issue is to try to step into a function. > As long as I do not step into a function every thing works OK. > The same happens if I use gcc480. If I use gcc473 every thing > works OK. The program itself runs flawlessly. > Am I missing something? Is the coff/dwarf support in gcc-4.8.N > brocken? > > If more info is needed, please tell. I do not really know. I have the same problem with gcc-4.9 snapshots. So something has changed with release of gcc-4.8. I guess somebody should try to debug gdb and check what happens in dwarf2_frame_cfa() in dwarf2_frame.c. Tried to build gdb-6.6 for DJGPP myself (using gcc-4.6), but the built gdb.exe did not work (it failed when I tried to start debugging some program). Andris