Mail Archives: djgpp/2015/07/01/04:20:27
06/30/2015, 07:41 PM, Eli Zaretskii (eliz AT gnu DOT org) kirjoitti:
>> Date: Mon, 29 Jun 2015 15:00:30 -0700 (PDT)
>> From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de)" <djgpp AT delorie DOT com>
>>
>> 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.
I guess we do not need so old GDB version as 7.0. gdb-7.7.1 seems to be
OK for COFF debugging info.
Eli, could You check it with debugging emacs?
Andris
PS. I used binutils-2.25 r2 for my tests.
- Raw text -