delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/06/29/16:15:29

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <5591A7A2.70505@gmx.de>
Date: Mon, 29 Jun 2015 22:16:34 +0200
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de)" <djgpp AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: gdb 7.0 and coff debug format failing.
X-Provags-ID: V03:K0:nBV+24PJpb35pw8JB6NDMU6ST8GmO40kcIl70IPK6unvItQhEmu
ry+ajwspngbnyG3gFUeLk+uzmzvGPNdrWDvsgGz1aHp3FCrp5ovROvlw/r8QE2JuwsKJUMm
B6dJnVLcNAjcGJE48sKh8c7UJQ9hw5Uu8bH4e0W2o+4EXxC95Xo+FmWdnvWePLSqx+K5UyW
OPD+/8kbXqEW6d671VFsA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:KkmuY37E3og=:7loncwTp7eOJhp5txvc8/P
9nupqhSizpJkgNPUEmdr9RrjH+FDfln4UMm/1qr3V6uXa5mbv6XcOklDCIricvu6AIGGpgDmm
wFXYbaUgI1V3e9lax37t/DQxPBw6VFXeBDqT4hbE2+HrS3CiiNmzUrlAY6wgMonbXVw79AWIe
GjahLY5QD2wL6dx4aMXOH+24TPN6f1xBCVSTGkaYsxtS+MpkuD1IYUm5S/4GmY3vKX+xxL2gH
yBeSYrd4QG0w1UhxvDsuUP0JBviv1Fc1K+OaOpzZ3CiDV78vcOQPKsBthj68OVKA5xVfIdAqp
qDzrzWyS9QuGD0s9AsCLB9YhrPOwTCd17SdbnRwblwyIMyBa/z2IhCFEiCkQmBnZiRlA9ZG81
fQHEZKeSxy2VIki9rZ/w8D14j4iiOdK+kKeu42WlVJFKLvRlId13t77eoqhxDjwxh2PwcVVhu
c9a0wC2Oozb+pZSl+IvbYjn0VIyXDf2e3Iws36bjD/UTgpwO+NigLPq0+5Vwwf0SOu1/5Phu8
TnZOAPvbI+usqnNuCN2WAVdmbWHdu/6On3sn7SqV8mrWofEwaBm0yfjES/q6ICxSkuoq2rTYg
mzUyb5h/nEMjm2ChGcj0CtoF/QAgq8wnNL7kHpdB+eNtpyQJRHN4fyT9DIuv28rHkTMoP4I9w
s+UjyOuk3RrZfWZvQDUJpHPAus33IlPHbkaCHjzomAOePRGAjGR8eyeXTbLYqeoaTECk=
Reply-To: djgpp AT delorie DOT com

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 <stdio.h>


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

- Raw text -


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