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

Date: Mon, 26 Feb 1996 13:54:57 -0800 (GMT)
From: Orlando Andico <oandico AT eee DOT upd DOT edu DOT ph>
To: DJGPP Mailing List <djgpp AT delorie DOT com>
Subject: GDB woes
Message-ID: <Pine.SOL.3.91.960226135048.2185A-100000@gollum>
MIME-Version: 1.0

Hello people:

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).

So, I decide to set the breakpoint in the *function* included in the 
header file, like so:

    break init_driver

So GDB replies, "Breakpoint 1 at 0x1bbe: file rtdsp.c, line 138." 
(although it really should be file video.h, line 138). Ok, I run the 
program. GDB says: "Breakpoint 1, init_driver (vector=128) at rtdsp.c:138 
Line number 138 out of range; rtdsp.c has 66 lines.

So what gives?

                                             ------------------------
                                              Orlando A. Andico
                                              oandico AT eee DOT upd DOT edu DOT ph
                                             ------------------------

- Raw text -


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