On Wed, Jun 4, 2008 at 5:35 AM, john q public <[EMAIL PROTECTED]> wrote: > Hello all, > > I've asked about IDEs in the past and there are a lot to choose from so > for now I've put that off and just edit source > without anything else. BUT now I'm running into segfaults and such > (worse theyre sporadic so sometimes things mostly work other times > everything grinds to a halt). I saw no mention of gdb in either the LFS > or BLFS book. Is it > not a good thing to use?
gdb is a fine thing to use. I think it's mentioned briefly in the programming section. I have a half completed patch that adds strace and gdb to the book, but I never got around to finishing it. Building gdb is easy, but watch out on the install since it steps on parts of binutils if you don't do it right: ./configure --prefix=/usr && make && make -C gdb install > My REAL question is does anyone have advice on when its better to > comb the source versus chasing problems with the debugger? I believe that Mr. Torvalds thinks debuggers are almost always the wrong thing and a waste of time vs. just thinking about the source. But everyone has their preference. I personally don't know gdb that well, so it's usually is faster for me to debug problems by reading the code. -- Dan -- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
