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
_______________________________________________
Bug-hurd mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-hurd