www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/26/01:45:33

Date: Mon, 26 Feb 1996 08:31:29 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
Cc: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: Re: GDB woes
In-Reply-To: <Pine.SOL.3.91.960226135048.2185A-100000@gollum>
Message-Id: <Pine.SUN.3.91.960226082829.6409H-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019