Date: Thu, 2 Mar 2000 11:47:36 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: leon cc: djgpp AT delorie DOT com Subject: Re: gdb problem or just silly me - please help In-Reply-To: <38BD9731.80042FBD@caresystems.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 2 Mar 2000, leon wrote: > I run the program and it hits a breakpoint. I then type "l" (for > listing of source code around break point). Then it says that the line > number of a breakpoint is out of range with the length of file test.cpp > (the one containing entry method int main()). In other words gdb reports > a breakpoint to be at line say 175 while the total lines it test.cpp is > 35 (because header file of template is included in test.cpp?) This is in the FAQ (sections 12.1 and 12.6). In a nutshell, you need to build your program with the -gstabs+ switch instead of -g.