Message-ID: <3AD1E414.8D811D08@jps.net> From: Dennis Yelle X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: Re: gdb still doesn't work for me References: <3AD0B992 DOT 44D0D3C3 AT jps DOT net> <4634-Sun08Apr2001234906+0300-eliz AT is DOT elta DOT co DOT il> <3AD10B71 DOT 9019CC9 AT jps DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 67 Date: Mon, 09 Apr 2001 09:32:20 -0700 NNTP-Posting-Host: 216.119.27.12 X-Complaints-To: abuse AT onemain DOT com X-Trace: nntp1.onemain.com 986833696 216.119.27.12 (Mon, 09 Apr 2001 12:28:16 EDT) NNTP-Posting-Date: Mon, 09 Apr 2001 12:28:16 EDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I have been having problems with gdb. I am using gdb version 5.0 I downloaded it yesterday. My programs usually take at least 20 times as long to run when I run them under gdb rather than directly from the command line. Is this normal behavior for gdb? If this is not the proper place to report these problems, please tell me where to report them. Here is an extremely simple program that demonstrates the problem: ---------------------------------------- int count; int i, k; class Paths { public: static void car7() { for( i=0; i<10; i++) { for( k=0; k<1000000; k++) { if ( (i | k) == 127) ++count; } } } }; int main() { count = 0; Paths::car7(); count += 2; return count; } ------------------------------------------ I compile this program with: gxx -g -Os -Wall test.cpp -o test.exe When I run it from the command line like this: test It completes in less than 1/2 second. When I run it like this: gdb test.exe break main run n The program runs for more than 20 seconds. Can anyone else reproduce this problem? Am I doing something wrong? What is going on here? Does gdb ever work right? Dennis Yelle -- I am a computer programmer and I am looking for a job. There is a link to my resume here: http://table.jps.net/~vert/