This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: debuggin problems
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Israel Fdez Cabrera <israel at seg dot inf dot cu>
- Cc: gdb at sources dot redhat dot com
- Date: Tue, 22 Oct 2002 10:28:56 -0400
- Subject: Re: debuggin problems
- References: <200210220920.15492.israel@seg.inf.cu>
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 <iostream>
> #include <fstream>
>
> 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