delorie.com/archives/browse.cgi | search |
From: | Hans-Bernhard Broeker <broeker AT acp3bf DOT physik DOT rwth-aachen DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: gdb problem or just silly me - please help |
Date: | 2 Mar 2000 14:04:50 GMT |
Organization: | Aachen University of Technology (RWTH) |
Lines: | 18 |
Message-ID: | <89lse2$dh5$1@nets3.rz.RWTH-Aachen.DE> |
References: | <20000226 DOT 001348 DOT -398121 DOT 2 DOT roberts DOT j DOT whitlock AT juno DOT com> <38B927C8 DOT EE0D58ED AT bigfoot DOT com> <38BB597F DOT 22B13248 AT caresystems DOT com DOT au> <83u2is4gax DOT fsf AT mercury DOT st DOT hmc DOT edu> <38BD9731 DOT 80042FBD AT caresystems DOT com DOT au> |
NNTP-Posting-Host: | acp3bf.physik.rwth-aachen.de |
X-Trace: | nets3.rz.RWTH-Aachen.DE 952005890 13861 137.226.32.75 (2 Mar 2000 14:04:50 GMT) |
X-Complaints-To: | abuse AT rwth-aachen DOT de |
NNTP-Posting-Date: | 2 Mar 2000 14:04:50 GMT |
User-Agent: | tin/1.4-19991113 ("No Labels") (UNIX) (Linux/2.0.0 (i586)) |
Originator: | broeker@ |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Reply-To: | djgpp AT delorie DOT com |
leon <Leon AT caresystems DOT com DOT au> 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?) You need to use the 'better' type of debugging information, to allow gdb to see that this code is actually at line 175 of the template header file, instead of line 175 of your test.cpp. See also node 12.8 of the FAQ, (the one titled "GDB cannot list source that was #include'd") -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |