| www.delorie.com/archives/browse.cgi | search |
| Date: | Thu, 2 Mar 2000 11:47:36 +0200 (IST) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| X-Sender: | eliz AT is |
| To: | leon <Leon AT caresystems DOT com DOT au> |
| 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: | <Pine.SUN.3.91.1000302114716.25214A-100000@is> |
| MIME-Version: | 1.0 |
| 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 |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |