Mail Archives: djgpp/1996/02/26/01:45:33
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.
- Raw text -