From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27406 invoked by alias); 22 Oct 2002 14:28:58 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 27396 invoked from network); 22 Oct 2002 14:28:57 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 22 Oct 2002 14:28:57 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 1840x3-0004eG-00; Tue, 22 Oct 2002 10:28:13 -0500 Received: from drow by nevyn.them.org with local (Exim 3.35 #1 (Debian)) id 18401g-0004Sc-00; Tue, 22 Oct 2002 10:28:56 -0400 Date: Tue, 22 Oct 2002 07:28:00 -0000 From: Daniel Jacobowitz To: Israel Fdez Cabrera Cc: gdb@sources.redhat.com Subject: Re: debuggin problems Message-ID: <20021022142856.GA17086@nevyn.them.org> Mail-Followup-To: Israel Fdez Cabrera , gdb@sources.redhat.com References: <200210220920.15492.israel@seg.inf.cu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200210220920.15492.israel@seg.inf.cu> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-10/txt/msg00156.txt.bz2 On Tue, Oct 22, 2002 at 09:20:15AM -0400, Israel Fdez Cabrera wrote: > Hi, I'm new in the list and I subscribed because I have problems debugging > with gdb. > I recently upgrade my system from RedHat 7.3 to RedHat 8.0, I use KDevelop to > work. The new release of RedHat Linux comes with gcc 3.2 and gdb 5.2.1-4. > I notice that when I debugg a C++ code like this: > > #include > #include > > using namespace std; > > int main (...){ > ... > ifstream f ("/root/install.log"); > char s [255] = {0}; > while ( ! f.eof () ){ > f.getline (s, 255); > cout << s << endl; > } > ... > return 0; > } > > My system turns very slow, I can't even move the mouse, and once I got a > message that the system has low memory. Well, C++ takes more memory, but it shouldn't be that much more - how much memory do you have, anyway? What are you doing in the debugger? C++ debugging for GCC 3.2 isn't working perfectly, but most things should work. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer