Re: Debug code with pfLinux yet?

New Message Reply Date view Thread view Subject view Author view

From: jan p. springer (jsd++at++igroup.org)
Date: 12/20/2000 10:02:24


Allen Bierbaum wrote:
>
> 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?)
>

  yes. rh7, pfLinux 2.3.1, 2.4 (beta and release).

> 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.
>
  you may also have a look at the various levels for -ggdb.

[ snip ]

it would be nice if this could be solved somehow, but i expect that to
require work on the compiler/linker side than on the performer library
side.
just my $0.02.

        j.

-- 
+------------------------------------+--------------------------------------+
| jan p. springer                    | jsd++at++igroup.org                       |
| computer science, gmd.imk.ve       | jan.springer++at++gmd.de                  |
+------------------------------------+--------------------------------------+


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Wed Dec 20 2000 - 10:02:39 PST

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