Date: Thu, 14 May 1998 11:09:12 GMT Message-Id: <1.5.4.16.19980514110938.237f77da@um2gess0> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: djgpp AT delorie DOT com From: Michel JULIER Subject: BUG: debugging with gcc 2.8.1 Precedence: bulk This is a bug report made with RHIDE Version 1.4 (Sep 30 1997 23:06:59) I am running MS-DOS 6.20 (Windows 3.11). At the end of the message are some information collected by rhide - bug_report. My problem is the following: ============================ Using gcc 2.8.1, I noticed some problems to debug some programs. More precisely: -In a program that contains #include "sub_prog.c", it is impossible to follow the pointer while stepping with gdb (actually, I use rhide). However, I have no problem if I include the sub-program directly into the main file. -With another subprogram, I get an error compliling the program with "gcc -g -Wall -save-temps -c fit_gene.c" >Compiling: fit_gene.c >Assembler messages: >fit_gene.s(4208) Error: Fatal error: C_EFCN symbol out of scope >There were some errors This occurs only with the "-g" option, and does not depend on the other options. It does the same if I include the subprogram directly into the main file. Looking at fit_gene.s: "C_EFCN" does not show in this file, and the line 4208 is the last line of the file. If I compile without the "-g" option, everything is OK (except for debugging) ################################################# Information collected by rhide: Important environment variables: PATH=C:\WINDOWS;C:\DOS;C:\WINDOWS\NET\LAN;C:\BAT;C:\USERS\JULIER\PROG;D:\DJG PP\BIN;d:\djgpp\rsxntdj\bin;d:\bp\bin;d:\bp\exe DJGPP=D:\DJGPP\DJGPP.ENV LFN=y INFOPATH=d:/djgpp/info;d:/djgpp/gnu/emacs/info;d:/djgpp/info;d:/djgpp/gnu/em acs/info LOCALEDIR= LANGUAGE= SHELL= COMSPEC=C:\COMMAND.COM DJSYSFLAGS= Here is the output from a sample compilation and link for C executing: echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c - Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.81/specs gcc version 2.8.1 d:/djgpp/lib/gcc-lib/djgpp/2.81/cpp.exe -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 - d:/djgpp/tmp/RH1aaaaa/ccaygmef GNU CPP version 2.8.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: c:/numrecip/double d:/djgpp/lib/gcc-lib/djgpp/2.81/include d:/djgpp/include End of search list. d:/djgpp/lib/gcc-lib/djgpp/2.81/cc1.exe d:/djgpp/tmp/RH1aaaaa/ccaygmef -quiet -dumpbase -.c -version -o d:/djgpp/tmp/RH1aaaaa/ccbygmef GNU C version 2.8.1 (djgpp) compiled by GNU C version 2.8.1. as -v -o d:/djgpp/tmp/RH1aaaaa/cccygmef d:/djgpp/tmp/RH1aaaaa/ccbygmef GNU assembler version 2.8.1 (i386-pc-msdosdjgpp) ld -o /dev/null d:/djgpp/lib/gcc-lib/djgpp/2.81/crtf.o d:/djgpp/lib/crt0.o -Lc:/numrecip/double -Ld:/djgpp/lib/gcc-lib/djgpp/2.81 -Ld:/djgpp/lib -v d:/djgpp/tmp/RH1aaaaa/cccygmef -lgcc -lc -lgcc -Tdjgpp.djl GNU ld version 2.8.1 (with BFD 2.8.1) stubify -v /dev/null Warning: input file is not COFF or stubbed COFF .exe: No such file or directory (ENOENT) stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie End of the sample Here is the output from a sample compilation and link for C++ executing: echo "int main(){return 0;}" | redir -eo gcc -Xlinker -v -Wa,-v -v -o /dev/null -x c++ - Reading specs from d:/djgpp/lib/gcc-lib/djgpp/2.81/specs gcc version 2.8.1 d:/djgpp/lib/gcc-lib/djgpp/2.81/cpp.exe -lang-c++ -v -undef -D__GNUC__=2 -D__GNUG__=2 -D__cplusplus -D__GNUC_MINOR__=8 -Dunix -Di386 -DGO32 -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=1 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__DJGPP__=2 -D__DJGPP_MINOR__=1 -D__unix -D__i386 -D__GO32 -D__MSDOS -D__DJGPP=2 -D__DJGPP_MINOR=1 -D__EXCEPTIONS - d:/djgpp/tmp/RH1aaaaa/ccailnef GNU CPP version 2.8.1 (80386, BSD syntax) #include "..." search starts here: #include <...> search starts here: d:/djgpp/lang/cxx d:/djgpp/lib/gcc-lib/djgpp/2.81/include d:/djgpp/include End of search list. d:/djgpp/lib/gcc-lib/djgpp/2.81/cc1plus.exe d:/djgpp/tmp/RH1aaaaa/ccailnef -quiet -dumpbase -.cc -version -o d:/djgpp/tmp/RH1aaaaa/ccbilnef GNU C++ version 2.8.1 (djgpp) compiled by GNU C version 2.8.1. as -v -o d:/djgpp/tmp/RH1aaaaa/cccilnef d:/djgpp/tmp/RH1aaaaa/ccbilnef GNU assembler version 2.8.1 (i386-pc-msdosdjgpp) ld -o /dev/null d:/djgpp/lib/gcc-lib/djgpp/2.81/crtf.o d:/djgpp/lib/crt0.o -Lc:/numrecip/double -Ld:/djgpp/lib/gcc-lib/djgpp/2.81 -Ld:/djgpp/lib -v d:/djgpp/tmp/RH1aaaaa/cccilnef -lgcc -lc -lgcc -Tdjgpp.djl GNU ld version 2.8.1 (with BFD 2.8.1) stubify -v /dev/null Warning: input file is not COFF or stubbed COFF .exe: No such file or directory (ENOENT) stubify for djgpp V2.X executables, Copyright (C) 1995 DJ Delorie End of the sample