// Frame Navigation Example for Debugging TV // Copyright (c) 2012 by Dmitry Vostokov. // GNU GENERAL PUBLIC LICENSE // http://www.gnu.org/licenses/gpl-3.0.txt #include #include void func_1(int param_1, char param_2, int *param_3, char *param_4); void func_2(int param_1, char param_2, int *param_3, char *param_4); void func_3(int param_1, char param_2, int *param_3, char *param_4); void func_4(); int g_val_1; char g_val_2; int *g_pval_1 = &g_val_1; char *g_pval_2 = &g_val_2; int main() { int local_0 = 0; char *hello = "Hello Crash!"; g_val_1 = 1; g_val_2 = '1'; func_1(g_val_1, g_val_2, (int *)g_pval_1, (char *)g_pval_2); return 0; } void func_1(int param_1, char param_2, int *param_3, char *param_4) { int local_1 = 1; g_val_1 = 2; g_val_2 = '2'; param_3 = &local_1; func_2(g_val_1, g_val_2, param_3, param_4); } void func_2(int param_1, char param_2, int *param_3, char *param_4) { int local_2 = 2; g_val_1 = 3; g_val_2 = '3'; param_3 = &local_2; func_3(g_val_1, g_val_2, param_3, param_4); } void func_3(int param_1, char param_2, int *param_3, char *param_4) { int local_3 = 3; *g_pval_1 += param_1; *g_pval_2 += param_2; func_4(); } void func_4() { puts("Hello Crash!"); int *pi = NULL; *pi = 1; }