Files
clang-p2996/lldb/test/API/functionalities/breakpoint/nested_breakpoint_commands/main.c
jimingham 870463519b Fix the managing of the session dictionary when you have nested wrappers (#132846)
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.
2025-03-25 09:56:58 -07:00

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];
}