X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com X-Authenticated: #27081556 X-Provags-ID: V01U2FsdGVkX1+k0Z53UsekARaOVhr6CDp3NMyOpZTnkQN1cnRHd2 gSK8RIbG+H5dUG From: Juan Manuel Guerrero To: Eli Zaretskii Subject: Re: Difficulries with GDB 7.2 compiled with DJGPP Date: Wed, 19 Jan 2011 19:25:46 +0100 User-Agent: KMail/1.9.10 Cc: djgpp AT delorie DOT com References: <201101152018 DOT 51379 DOT juan DOT guerrero AT gmx DOT de> <201101190016 DOT 02772 DOT juan DOT guerrero AT gmx DOT de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <201101191925.46252.juan.guerrero@gmx.de> X-Y-GMX-Trusted: 0 Am Mittwoch, 19. Januar 2011 schrieb Eli Zaretskii: > > From: Juan Manuel Guerrero > > Date: Wed, 19 Jan 2011 00:16:01 +0100 > > > > The reason why the GDB produced with DJGPP 2.04 is brocken is that the go32-nat.o > > and i386-nat.o files are not compiled. This is because go32.mh snippet is not > > included to the gdb/Makefile by the configure script. The script checks for > > host system/build system = i786-pc-msdosdjgpp and for target system = i586-pc-msdosdjgpp > > As can be seen target and host system does not match and the configure scripts > > decides to build a cross debugger or something else. > > The reason is that config.sub has the i586-pc-msdosdjgpp value hardcoded and > > this does not match the value returned by config.sub. > > Thanks for investigating this snafu. > > How come the v2.03 build avoided this issue? config.sub produces for an input string that contains "djgpp" the hardcoded output string "i586-pc-msdosdjgpp". config.guess uses uname to detect the processer type. This script concatenates the output produced by "uname -m" together with the string "pc-msdosdjgpp". The 2.04 version of uname returns "i786" but the 2.03 version of uname returns "i586". In those cases we get for the 2.04 version: i786-pc-msdosdjgpp and for the 2.03 version: i586-pc-msdosdjgpp. It seems to be that the djgpp support for config.[sub|guess] stopped in those days when the 2.03 version of uname. Regards, Juan M. Guerrero