delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2016/04/28/13:12:49

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
X-Recipient: djgpp AT delorie DOT com
Message-ID: <5722455F.3020906@gmx.de>
Date: Thu, 28 Apr 2016 19:16:15 +0200
From: "Juan Manuel Guerrero (juan DOT guerrero AT gmx DOT de) [via djgpp AT delorie DOT com]" <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: Re: GCC 3.4.6 -gcoff produces executable without line number info
References: <83bn4uxben DOT fsf AT gnu DOT org> <837ffix9o7 DOT fsf AT gnu DOT org>
In-Reply-To: <837ffix9o7.fsf@gnu.org>
X-Provags-ID: V03:K0:oB9ws3LymYb8zM0MMn6XnAbr7oDimNt3pV/ESuPABZk2VlRBryz
WCwKwwbM/C6+WTlAELKwRleEErJRvS9p3bu92w0FfRHkuX/l7ox9u+fIDva94d8pXxuOnVL
FP/ydLETGi1As7CFFkZU+yGAdG4Y5DoEKLPM0rUSq5CcqcdbW1nkrDoHQm/kTwCJ9Rhg6dI
1RuRzVw+SQR6xxU1VHBpA==
X-UI-Out-Filterresults: notjunk:1;V01:K0:PvWjLWzFL7g=:3/DfZvQ5YY6h/gXdeE78Sx
utIGjMmIPWoSv+f3Pt2+jNVQVjVSKL/B43W/2377k/tnGdmoQMzAkY+P1OwgI03/m6sK8Qrl0
B+PwuGHkvnmBHBzV8yREDgtHeeWTGBPYogLNRyYm0ndkZwvjf+MWVrRM0wpjEt5YP6E/RGvbN
IDfJubqniCgso4en1+dKwZjz0EgykkkoQfUqcQNWYtXPV97d9yovhBkoDXKlXVLPwo+wgsGPS
4gupk34V8dC0Moyb6yN4IpQ6nax7AW6poDAzEDZRGTsK0NdLoO6tyUCUCVHZ2/+GhVFf5jXsh
rD6sYfG4g2H7rl2HDEfoOGi604V/4c+JAnF4T82DviAN26Bl7ZjEYiS5iMCw05TDWemHht9Ys
fQR9hTZlDiDNTaHDsxQksHlBdSuFJbqQViFEUIyjTujQrFQYfzmFkQM/FR12qgdlRUFvoqFw+
mgCEdprf/bgJzJpqtz7ylN77ODkAMQ3hXvgT+tJ5npEKZAlG7TNTg4RVQWIbuiWWxxpxSmdVf
HFPM/DUBE5m4BqsIZIoTxGWqZbFs40ZVSbAFQR9ohY3NvCBltctleSMN7d7+tUGkQAccA+qwt
eUgRV86yEo+YmjeV3CDNTZBeCguFHlxf7RN0rV1rTlMHRMHIhtnPEDgUbltUFEKPJbckDeV4c
3TgY4QJgKO45JjSw7OkFK7/Nxswcpqfv0OZALyuHmU4DQ5HxA1HVV54w0mtlL0rb8uXMjAzON
/aBm69qDZ9HqDmMvcjgu6qztVQ0H7ygFCg1OgSgTlfrCF2Qx+Q2EY7Ewr3s=
Reply-To: djgpp AT delorie DOT com

This is a multi-part message in MIME format.
--------------050409010704090304000807
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Am 28.04.2016 13:19, schrieb Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]:
>> Date: Thu, 28 Apr 2016 13:42:08 +0300
>> From: "Eli Zaretskii (eliz AT gnu DOT org) [via djgpp AT delorie DOT com]"<djgpp AT delorie DOT com>
>>
>> The problem seems to be in as.exe: as soon as I replace just that
>> program by the version from Binutils 2.19, the problem seems to
>> disappear, even though the rest of Binutils are from 2.26.
>
> Followup: I needed to replace the rest of Binutils as well, at least
> ld.exe and ar.exe.  Without that, the debug info in Emacs was bogus,
> and confused GDB.
>
>> Could someone please look into this?
>
> Please?...
>
> Thanks.


I have compiled the test progran attached to this mail.  I have used djdev206,
bnu226br3 and gcc346b.  To debug gdb711b has been used.  The test program was
compiled using -gcoff -O0 flags.  The produced binary works flawless.  If I try
to debug, gdb crashes like this:

H:\_TEST_PR>gdb main.exe
GNU gdb (GDB) 7.11
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i786-pc-msdosdjgpp --target=djgpp".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from main.exe...memblockpnxt: memory fouled
Exiting due to signal SIGABRT
Raised at eip=003bbda5
eax=00586444 ebx=00000120 ecx=00000011 edx=00000000 esi=00000088 edi=00000004
ebp=00000018 esp=00586430 program=C:\DJGPP-2.05\BIN\GDB.EXE
cs: sel=01a7  base=02990000  limit=0060ffff
ds: sel=01af  base=02990000  limit=0060ffff
es: sel=01af  base=02990000  limit=0060ffff
fs: sel=017f  base=00009130  limit=0000ffff
gs: sel=01bf  base=00000000  limit=0010ffff
ss: sel=01af  base=02990000  limit=0060ffff
App stack: [005869b0..005069b4]  Exceptn stack: [005068d0..00504990]

Call frame traceback EIPs:
   0x003bbda5

H:\_TEST_PR>

If I compile the same program with -g -O0 flags then it is possible to step
through the code flawlessly.  Absolute _no_ issues at all.  All binaries used
are the official ones as they can be downloaded from any ftp server.  Except
for libc.a that I have compiled yesterfay using -g -O0 flags and gcc484.  The
only reason for this was that I was experimenting with the libc code.  No other
reason.

It is difficult to say if the coff debug support is still functional.


Regards,
Juan M. Guerrero


--------------050409010704090304000807
Content-Type: application/x-bzip;
 name="cofftest.tar.bz2"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
 filename="cofftest.tar.bz2"

QlpoOTFBWSZTWS0ceMUAA0V/jM0SACBbf/+freeGjv/3//oCAAAAgAhQBB3vbM9IW9PVE6Bl
U0yDTQAaaAADQ0yBoAAAA0GKAmJIxABoGgGgAMgAAAASEkIpp6j0npq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XYEgLdhc7pngAlQFrCxMMZCSjMs1whU5BDWKARrC8K
wwF67IhlDvXMWOFu0Bp0h4RIC/MpSVKRDHlVP+LuSKcKEgWjjxig
--------------050409010704090304000807--

- Raw text -


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