Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PC indicator didn't locate on the correct line



On 2/28/07, Fei Li <email@hidden> wrote:


Hello all,
I'm debugging a software project with some static libraries linked in. When
I do the debug, the program do pause on the breakpoint I set, but when I do
step over, it jump back and forth on some line sometimes, or it jump to the
code several lines forwards, it didn't pause right after the line most of
the time. I have this problem before, and my co-worker had this problem
also.

Dose anyone know why it act like that. Sometimes it works fine.

Did you compile with optimizations enabled? Part of the optimizing process re-orders the machine code instructions so that the CPU can handle them more efficiently. This gives the effect you're seeing.

--
Mark
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/xcode-users/email@hidden

This email sent to email@hidden
References: 
 >PC indicator didn't locate on the correct line (From: "Fei Li" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.