Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Debugging problem
@ 2000-04-05  4:00 Robert Kerr
  2000-04-07  4:00 ` Amy Kirschner /Peter Thompson
  0 siblings, 1 reply; 2+ messages in thread
From: Robert Kerr @ 2000-04-05  4:00 UTC (permalink / raw)


I'm trying to debug my program, but when I use dbx, or ddd on top of dbx
and try to enter a breakpoint, I get this:

stop at "SurfMeshTool.cpp":4460

beyond end of file at line "SurfMeshTool.cpp":4460

any ideas what's wrong?

thanks

-- 
-bob

Mouse movement detected, Reboot Windows to activate changes
**********************************************************************
* Robert Kerr, The morphing guy.  *    MS 0847 Sandia National Labs  *
* rakerr@sandia.gov               *    Albuquerque NM 87185-0847     *
* Robert_Kerr@byu.edu             *      Phone: (505) 844-8606       *
* http://www.et.byu.edu/~kerrr    *      Fax: (505) 844-9297         *
**********************************************************************




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Debugging problem
  2000-04-05  4:00 Debugging problem Robert Kerr
@ 2000-04-07  4:00 ` Amy Kirschner /Peter Thompson
  0 siblings, 0 replies; 2+ messages in thread
From: Amy Kirschner /Peter Thompson @ 2000-04-07  4:00 UTC (permalink / raw)




Robert Kerr wrote:

> I'm trying to debug my program, but when I use dbx, or ddd on top of dbx
> and try to enter a breakpoint, I get this:
>
> stop at "SurfMeshTool.cpp":4460
>
> beyond end of file at line "SurfMeshTool.cpp":4460
>
> any ideas what's wrong?
>
> thanks
>
> --
> -bob
>
> Mouse movement detected, Reboot Windows to activate changes
> **********************************************************************
> * Robert Kerr, The morphing guy.  *    MS 0847 Sandia National Labs  *
> * rakerr@sandia.gov               *    Albuquerque NM 87185-0847     *
> * Robert_Kerr@byu.edu             *      Phone: (505) 844-8606       *
> * http://www.et.byu.edu/~kerrr    *      Fax: (505) 844-9297         *
> **********************************************************************

Howdy Bob,
   I support dbx for Compaq, and I've got a few ideas.  The first thing that
occurs to me is that
SurfMeshTool.cpp is possibly a C file that's been run through the
preprocessor.  Or maybe fortran. Dbx has no special knowledge of
preprocessed files (which are normally hugely expanded from the original C
code) and would not necessarily be able to match the line number in the cpp
file with the
line in the original file.  So you would need to check the original source
to see where to put your
breakpoint.  If the spot you want to place the break point is in a section
of code #included from
another file, well, we have some stuff in the upcoming release to help take
care of that, but that particular portion isn't in dbx just yet (you might
be able to set the breakpoint, but the source
won't display yet for the included portion.)

Bottom line, dbx does not think there are any source lines to set a
breakpoint at that particular location.  If you dump out the executable with
"odump -Pv" or with stdump, you will see a number of fields associated with
each procedure (grouped under each file).  Two of these will show what dbx
inspects to determine which lines are in a file.  These are lnLow and
lnHigh, which are the low
and high line numbers for each procedure.  If the line you are trying to set
a breakpoint is not contained in the enclosed set formed by this pair, then
dbx will report, "beyond end of file".
It could be before lnLow also, as the error message is a bit generic.

If you must set a breakpoint where dbx does not think there are any lines,
you can always use
a "stopi at 0x..." giving an absolute address, if you have a good idea where
you want to stop.

Hope that helps,
PeterT

(petert@zk3.dec.com .   Do NOT reply to return address...)







^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-04-07  4:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-04-05  4:00 Debugging problem Robert Kerr
2000-04-07  4:00 ` Amy Kirschner /Peter Thompson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox