delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/07/01/04:20:27

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Subject: Re: gdb 7.0 and coff debug format failing.
To: djgpp AT delorie DOT com
References: <5591A7A2 DOT 70505 AT gmx DOT de>
<95c7ca20-6371-403a-a3dd-99ef7c081785 AT googlegroups DOT com>
<83mvzh2lnu DOT fsf AT gnu DOT org>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <djgpp AT delorie DOT com>
Message-ID: <5593A2B5.3020904@iki.fi>
Date: Wed, 1 Jul 2015 11:20:05 +0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101
Thunderbird/38.0.1
MIME-Version: 1.0
In-Reply-To: <83mvzh2lnu.fsf@gnu.org>
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

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019