From: Brian Elmegaard Newsgroups: comp.os.msdos.djgpp Subject: running gdb on g77 program Date: Wed, 08 Nov 2000 10:56:19 +0100 Organization: DTU Lines: 44 Message-ID: <3A092343.F21B9C51@et.dtu.dk> NNTP-Posting-Host: ip128.et.dtu.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.net.uni-c.dk 973677449 32784 130.225.70.128 (8 Nov 2000 09:57:29 GMT) X-Complaints-To: usenet AT news DOT net DOT uni-c DOT dk NNTP-Posting-Date: Wed, 8 Nov 2000 09:57:29 +0000 (UTC) X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi group, I am not sure I am in the right group, but nevertheless I will try. I am trying to switch my programming efforts from using salford ftn77 to use g77 under win98. The program compiles and runs fine, but one main obstacle is that I cannot convince gdb to run my program. I have compiled the files with g77 -fpedantic -Wall -g -c foo.for and linked with g77 -o $(PROG).exe $(OBJS) including -g in the link step makes an error like C:\EMX\BIN\ld.exe: malformed input file (not rel or archive) dna.exe so I think this is not needed for linking. However if I try to do anything with the program in gdb it exits without further notice. A gdb session goes like this: C:\dna\g77>gdb GDB is free software and you are welcome to distribute copies of it under certain conditions; type "show copying" to see the conditions. There is absolutely no warranty for GDB; type "show warranty" for details. GDB 4.16 (rsxnt), Copyright 1996 Free Software Foundation, Inc. (gdb) file dna Reading symbols from dna...done. (gdb) info functions C:\dna\g77> So I don't get any response from the info, and if I try to run, it also stops like this. What am I doing wrong? Regards, Brian -- Brian http://www.et.dtu.dk/energysystems http://www.rk-speed.dk http://fiduso.dk http://sunsite.auc.dk/dk-tug \TeX, tak