re: Debuging PlugIn???
re: Debuging PlugIn???
- Subject: re: Debuging PlugIn???
- From: George Warner <email@hidden>
- Date: Sat, 13 Aug 2005 10:25:36 -0700
On Sat, 13 Aug 2005 15:12:08 +0100, David Burgun
<email@hidden> wrote:
> I finally managed to get the Debugger to stop at a breakpoint in my
> PlugIn! Great! But it seems to be acting strangely, for instance in
> the following code snippet:.
>
> MCstring matrixelement;
> char *convimage;
> int convmatrix[3][3];
> int width,height, bytesperline, scale,i,j;
> char keybuffer[8];
> Bool success = True; //A
> width = atoi(args[1]); //B
> height = atoi(args[2]); //C
> scale = atoi(args[3]); //D
>
>
> I hit the break point at the top of the function, I then use "Step
> Over" to step down to the line marked B above. However, when I step
> from B to C, the cursor jumps back to A. In I step again it moves to
> B and then to C and then back to A again!!!!!
Sounds like you're getting out-of-order execution. The most common cause of
this is having optimizations turned on for your debug build.
> Also I am getting a GDB: Program received signal "EXC_BAD_ACCESS"
> after my function returns. Which seems weird because this this plugin
> works just fine!
It may be "working just fine" but also thrashing the stack.
--
Enjoy,
George Warner,
Schizophrenic Optimization Scientist
Apple Developer Technical Support (DTS)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden