Re: XForms: Debugging xform application

Steve Lamont (spl@szechuan.ucsd.edu)
Tue, 10 Feb 98 20:01:41 PST

# To subscribers of the xforms list from spl@szechuan.ucsd.edu (Steve Lamont) :

> I was wondering whether anyone on the list has had experience debugging
> an xforms application using gdb (or dbx)? I'm getting an "Hit
> heuristic-fence-post without finding enclosing function ... " error
> which seems to mean it thinks it's got a stripped executable. I'm
> compiling my code with a '-g' switch but am still getting no joy in
> generating a stack trace.

On what machine? I've seen this mostly on SGIs and mostly when my
code has teleported the instruction pointer out into hyperspace and/or
badly trashed the stack. It can occasionally also happen when both -O
and -g are turned on in gcc, but usually something ugly has happened
as well.

About the only things I can suggest are to turn off any optimization
(if it's turned on) and to run the code from within the debugger with
breakpoints sprinkled liberally or by single stepping (using the
'next' function, where appropriate).

spl
_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bloch.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/