X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Tue, 30 Jun 2015 19:41:57 +0300 From: "Eli Zaretskii (eliz AT gnu DOT org)" Subject: Re: gdb 7.0 and coff debug format failing. In-reply-to: <95c7ca20-6371-403a-a3dd-99ef7c081785@googlegroups.com> X-012-Sender: halo1 AT inter DOT net DOT il To: djgpp AT delorie DOT com Message-id: <83mvzh2lnu.fsf@gnu.org> References: <5591A7A2 DOT 70505 AT gmx DOT de> <95c7ca20-6371-403a-a3dd-99ef7c081785 AT googlegroups DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Mon, 29 Jun 2015 15:00:30 -0700 (PDT) > From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de)" > > OFYI, I have compiled gdb 7.0 using gcc346, bnu225br2 and djdev203 and the test program fails the same way for coff debug format. It seems to be something different than djdev205. Yes, I see the same with my old snapshot of GDB 7.0: I cannot step into the 'print' function, unless I use "stepi". then I see this: 0x00001611 16 bytes = print(message); (gdb) si 0x000015ac in print (message=0x8f950 "qwertz") (gdb) n Single stepping until exit from function print, which has no line number information. This is the message: "qwertz" main () at a.c:17 17 return bytes; So the problem is that GCC doesn't produce line number information for GDB to use in this case. Anyway, please try to debug larger programs. If that works, it's good enough. Thanks.