Since the inner wrapper call might have removed one of the entries from the global dict that the outer wrapper ALSO was going to delete, make sure that we check that the key is still in the global dict before trying to act on it.
14 lines
212 B
C
14 lines
212 B
C
#include <stdio.h>
|
|
|
|
int g_global[3] = {0, 100000, 100000};
|
|
|
|
void doSomething() {
|
|
g_global[0] = 1; // Set outer breakpoint here
|
|
}
|
|
|
|
int main() {
|
|
doSomething(); // Set a breakpoint here
|
|
|
|
return g_global[0];
|
|
}
|