Re: Debug code with pfLinux yet?

New Message Reply Date view Thread view Subject view Author view

From: Allen Bierbaum (allenb++at++vrac.iastate.edu)
Date: 12/20/2000 09:27:46


Here is a little more information.

Where my problem comes in is that to link against Performer, I have to
use the -O option to gcc. If you don't do this then there are several
performer functions that cause "undefined reference to" linking errors.
If I remember correct from the linux beta FAQ, this is caused because
inline functions need to be turned on. (I can't find the note any more
about needed -O with linux performer, is it still required?)

I can use the -g option with -O in order to get debug symbols, and this
does allow me to step through my code (I am using DDD), except for
functions that get inlined or optimized in other ways (most of my
code). I tried just disabling inlining but still having -O, but that
still caused linker errors.

So what I would really like is to be able to compile a performer
application under linux without having to turn any compiler
optimizations on at all. Is this possible?

-Allen

PS. I will try -g3 and see if that makes things any better.

Bram Stolk wrote:
>
> Allen Bierbaum wrote:
> >
> > Is it possible to do debug application compiling with pfLinux yet?
>
> pfLinux being a shorter notation for OpenGL|Performer on linux?
>
> Performer apps can choose to load debug versions of the shared
> objects dynamically. To force this, make sure that the shared
> lib directories...
>
> /usr/lib/Performer/Debug/libpfdb
> /usr/lib/Performer/Debug
>
> ...take precedent over the /usr/lib shared objs.
>
> Use $LD_LIBRARY_PATH for this purpose.
>
> This will help you debug inside the pf libs.
> For your own app, you could experiment with gcc's
> debug level (-g3) and with -ggdb
>
> Bram Stolk
>
> >
> > I know that you can compile an application "-g -O" to get debug symbols,
> > but that still turns on function inlining which makes stepping through
> > code with a debugger a real pain.
> >
> > -Allen
> > -----------------------------------------------------------------------
> > List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> > Open Development Project: http://oss.sgi.com/projects/performer/
> > Submissions: info-performer++at++sgi.com
> > Admin. requests: info-performer-request++at++sgi.com
>
> --
> ------------------------------------------------------------------------------
> Bram Stolk, VR Specialist.
> SARA Academic Computing Services Amsterdam, PO Box 94613, 1090 GP AMSTERDAM
> email: bram++at++sara.nl Phone +31-20-5923059 Fax +31-20-6683167
>
> "I heard if you play the NT-4.0-CD backwards, you get a satanic message."
> "Thats nothing, if you play it forward, it installs NT-4.0"
> ------------------------------------------------------------------------------


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 20 2000 - 09:24:35 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.