From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24379 invoked by alias); 22 Oct 2002 13:22:51 -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 24361 invoked from network); 22 Oct 2002 13:22:49 -0000 Received: from unknown (HELO localhost.seg.inf.cu) (63.170.174.196) by sources.redhat.com with SMTP; 22 Oct 2002 13:22:49 -0000 Received: from sfe.seg.inf.cu ([10.10.1.10]) by localhost.seg.inf.cu (8.12.0/8.12.0) with ESMTP id g9MERAuR027134 for ; Tue, 22 Oct 2002 10:27:10 -0400 Received: from tiger.seg.inf.cu ([10.10.1.2]) by sfe.seg.inf.cu with Microsoft SMTPSVC(5.0.2195.5329); Tue, 22 Oct 2002 09:21:36 -0400 Received: from Israel (Israel [10.10.1.202]) by tiger.seg.inf.cu (8.11.1/8.11.1) with ESMTP id g9MDo2o48704 for ; Tue, 22 Oct 2002 09:50:06 -0400 (CDT) Content-Type: text/plain; charset="us-ascii" From: Israel Fdez Cabrera Organization: Segurmatica To: gdb@sources.redhat.com Subject: debuggin problems Date: Tue, 22 Oct 2002 06:22:00 -0000 User-Agent: KMail/1.4.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Message-Id: <200210220920.15492.israel@seg.inf.cu> X-OriginalArrivalTime: 22 Oct 2002 13:21:36.0515 (UTC) FILETIME=[F298C530:01C279CD] X-SW-Source: 2002-10/txt/msg00155.txt.bz2 Hi, I'm new in the list and I subscribed because I have problems debugging= =20 with gdb. I recently upgrade my system from RedHat 7.3 to RedHat 8.0, I use KDevelop = to=20 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] =3D {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=20 message that the system has low memory. If I change it by it C equivalent, like the one above and debugg: #include #include int main (...){ ... FILE *f =3D fopen ("/root/install.log", "r"); char s [255] =3D {0}; fread (s, 255, 1, f); printf ("%s", s); ... return 0; } everything goes fine... is there any problem with gdb, gcc or the C++ std lib??? best reg@rds Israel