X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.67.7.232 with SMTP id df8mr21990480pad.34.1435615231101; Mon, 29 Jun 2015 15:00:31 -0700 (PDT) X-Received: by 10.140.85.11 with SMTP id m11mr59447qgd.29.1435615231049; Mon, 29 Jun 2015 15:00:31 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Mon, 29 Jun 2015 15:00:30 -0700 (PDT) In-Reply-To: <5591A7A2.70505@gmx.de> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.5.89.9; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0 NNTP-Posting-Host: 46.5.89.9 References: <5591A7A2 DOT 70505 AT gmx DOT de> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <95c7ca20-6371-403a-a3dd-99ef7c081785@googlegroups.com> Subject: Re: gdb 7.0 and coff debug format failing. From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de)" Injection-Date: Mon, 29 Jun 2015 22:00:31 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 2928 Lines: 55 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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 On Monday, June 29, 2015 at 10:15:30 PM UTC+2, Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) wrote: > I have compiled gdb 7.0 with both compilers gcc 5.1.0 and gcc 3.4.6 using > in both cases djdev205. The result is disapointing. I have compiled the > following small hello-world program: > > #include > > > int print(const char *message) > { > int bytes; > > bytes = printf("This is the message: \"%s\"\n", message); > > return bytes; > } > > int main(void) > { > char message[] = "qwertz"; > int bytes; > > bytes = print(message); > > return bytes; > } > > > If I use DWARF2 format everthing works as expected but if I use the coff debug > format I cannot step into the function that prints. I can step through the main > function with problems but I cannot step into functions. Off course the test program > has been compiled using gcc 3.4.6. The output of the info source command is: > > (gdb) info source > Current source file is a.c > Located in m:/_tests_gdb/a.c > Contains 21 lines. > Source language is c. > Compiled with COFF debugging format. > Does not include preprocessor macro info. > > so gcc 3.4.6 seems to produce coff debug info and gdb 7.0 seems to recognize > this. I will compile gdb 7.0 using djev203 and see if there is any difference. > I will also compile gdb 6.8a with djdev205, bnu225br2 and gcc346 to see if it > works better. Of course, all binaries used have been downloaded from > http://ap1.pp.fi/djgpp/next/v2gnu. > Any suggestions are welcome. > > Regards, > Juan M. Guerrero 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. Regards, Juan M. Guerrero