On Tue, Apr 23, 2002 at 06:38:44PM +0200, Ludovic Court�s wrote:
> On Mon, Apr 22, 2002 at 12:59:47PM +0200, Marcus Brinkmann wrote:
> > On Mon, Apr 22, 2002 at 10:30:30AM +0200, Ludovic Court�s wrote:
> > > I got the same kind of problem. First of all, I think you should not compile
> > > with optimization if you want to debug it with gdb (otherwise you get weird
> > > think).
> > 
> > You should always compile with optimization when compiling the Hurd or
> > glibc (or Hurd components for that matter).  Some parts depend on that
> > (notably libthreads).
> 
> All right. But never try to debug a program that has been compiled with
> optimization or you'll get confused on what happens (I asked about it not long
> ago).

Well, gdb can trick you into seeing things that are not there.  You have to
keep that in mind, sure.
 
> And what do you mean by "depends on that"?

Try to build the Hurd without optimization, and you will see.  AFAIR, it has
to do with inlining.

Thanks,
Marcus

-- 
`Rhubarb is no Egyptian god.' Debian http://www.debian.org [EMAIL PROTECTED]
Marcus Brinkmann              GNU    http://www.gnu.org    [EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.marcus-brinkmann.de

_______________________________________________
Help-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-hurd

Reply via email to