Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!ukma!widener!netnews.upenn.edu!msuinfo!loach.cps.msu.edu!bourd From: bourd@loach.cps.msu.edu (Robert Bourdeau) Newsgroups: comp.lang.c++ Subject: gdb & c++ Keywords: debugging, gdb Message-ID: <1991Jun6.185008.28844@msuinfo.cl.msu.edu> Date: 6 Jun 91 18:50:08 GMT Sender: news@msuinfo.cl.msu.edu Reply-To: bourd@loach.cps.msu.edu (Robert Bourdeau) Organization: Computer Science, Michigan State University, E. Lansing Lines: 24 I am using g++ for a small scale project right now, and am trying to isolate a particularly annoying bug. As far as I can tell, gdb is about the only debugger that works with g++. The project I am working on consists of many source files, and the bug is occuring somewhere other than the main. QUESTION: HOW DO YOU SET BREAKPOINTS IN MULTIPLE FILES? This program, consists of about 5000 lines of my code, so I don't want to step through it. I am also using X-Window in the program, and when the error occurs, X exits the program. Because of this, gdb can not give me the current stack frame, a backtrace, or the values of any variables, everything is freed up. HELP, before I go crazy!! --- Robert Bourdeau --- bourd@cps.msu.edu --- Department of Computer Science --- Michigan State University