X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Received: by 10.66.248.193 with SMTP id yo1mr8071722pac.6.1378152612079; Mon, 02 Sep 2013 13:10:12 -0700 (PDT) X-Received: by 10.49.58.225 with SMTP id u1mr1511qeq.21.1378152610730; Mon, 02 Sep 2013 13:10:10 -0700 (PDT) Newsgroups: comp.os.msdos.djgpp Date: Mon, 2 Sep 2013 13:10:10 -0700 (PDT) In-Reply-To: <5224ADC3.6050608@iki.fi> Complaints-To: groups-abuse AT google DOT com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.56.201.102; posting-account=OsAajgoAAADdKJnkJkmhzqP0jo6I_P_0 NNTP-Posting-Host: 5.56.201.102 References: <5224ADC3 DOT 6050608 AT iki DOT fi> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8751db7a-0f08-44d8-aa7c-33912e8c3db4@googlegroups.com> Subject: Re: Used DWARF version for GCC-4.8.1 From: Juan Manuel Guerrero Injection-Date: Mon, 02 Sep 2013 20:10:12 +0000 Content-Type: text/plain; charset=ISO-8859-1 Bytes: 3294 Lines: 88 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id r82KU1as000963 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 Am Montag, 2. September 2013 17:24:51 UTC+2 schrieb Andris Pavenis: > Updated GCC-4.8.1 packages for DJGPP at > > > > http://ap1.pp.fi/djgpp/gcc/index.html > > > > to use DWARF2 by default (it means unless DWARF3/4 is explicitly required). > > Some problems seems to: > > > > I do not see: > > Breakpoint 1, main () at 1.c:10 > > 10 int a = 1; > > (gdb) s > > 11 f(a); > > (gdb) > > f (i=) at 1.c:5 > > 5 printf("a=%d\n", i); > > (gdb) p i > > can't compute CFA for this frame > > (gdb) > > > > any more with it. > > > > I simply tried to use xgcc.exe from GCC build directory for testing > > whether debugging works. For example: > > > > gdb --args xgcc.exe --help > > > > 1) Messages like 'error reading variable: can't compute CFA for this frame' > > does not appear any more as it was expected > > 2) Backtrace is often broken: gdb fails to display frame info > > > > I should perhaps check more with cross-compiler as building > > native compiler simply requires too much time > > > > Andris I have given the new compiler a try using it with libiconv 1.14 that I am porting. I have compiled with -g2 -O0 and I did not experienced the CTA issue anymore. I also had no difficulties with the bt command, but the function stack was only 4 functions deep. May be the debugged application that uses libiconv.a was not big enough to trigger the problem. I am also working on a port of gdb-7.6.1. Are there any issues that may be considered to allow DWARF4 support for djgpp? At least at a first glance of the configure script, there seems to be no switch to select the DWARF version that shall be supported by gdb. Maybe a lot of time must be invested in this port to implement djgpp specific issues concerning DWARF4 support. I do not know if this will happen with this gdb port. Regards, Juan M. Guerrero