This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: debuggin problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]