21 void *ptr
= malloc(1024);
22 if (!ptr
) // Set breakpoint here to test target stop-hook.
25 printf("ptr=%p\n", ptr
); // We should stop here after stepping.
26 return rc
; // End of the line range for which stop-hook is to be run.
34 int main (int argc
, char const *argv
[])
37 printf("a(1) returns %d\n", A1
);
39 int C2
= c(2); // Another breakpoint which is outside of the stop-hook range.
40 printf("c(2) returns %d\n", C2
);
43 printf("a(3) returns %d\n", A3
);