bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: oskit-mach: -O2 and gdb


From: Kevin Kreamer
Subject: Re: oskit-mach: -O2 and gdb
Date: Tue, 9 Oct 2001 01:02:14 -0500
User-agent: Mutt/1.2.5i

On Tue, Oct 09, 2001 at 01:22:20AM +0200, Daniel Wagner said:
> Hello
> 
> When compiling oskit-mach without any optimation, the linker will
> complain about cli not defined in oskit-mach/i386/i386/pic.c. Compiling
> with -O2 helps, but then gdb is confused. Gdb doesn't know where the
> current pc refers to the right source file. Something seems to be
> broken, but what?

A workaround for this particular problem is to substitute cli(); with
asm("cli"); but you probably want to compile with -O2 anyway.  As far as
debugging the optimized code, from what I understand, most other debuggers 
won't debug optimized code at all.

Kevin
-- 
Kevin Kreamer
FsckIt on openprojects.net



reply via email to

[Prev in Thread] Current Thread [Next in Thread]