Date: Mon, 26 Feb 1996 08:31:29 +0200 (IST) From: Eli Zaretskii To: Orlando Andico Cc: DJGPP Mailing List Subject: Re: GDB woes In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Mon, 26 Feb 1996, Orlando Andico wrote: > Is there something wrong with my GDB? > I want to set a breakpoint in a header file, not the main C program. So I > say something like: > > break video.h:138 > > (which seems to be the correct invocation, says the holy Info). GDB > replies, "no source file named video.h" (even though I'm *sure* my main > program includes this header). I think this is a known problem in GDB: it doesn't get enough info from the pre-processor to treat this correctly. If you really need to put code on header files, just drop the contents of that header into your source during debugging. You can restore the original #include when your debugging is over.