search for: mainscop

Displaying 2 results from an estimated 2 matches for "mainscop".

Did you mean: mainscope
2020 Apr 15
2
Seeking clarification and way forward on limited scope variables.
...9 } 10 11 return 0; 12 } -------------------------------------------- When compiled in debug mode with compilers including (trunk gcc and trunk clang) and debugging with GDB at Line No.6, the following behavior is observed Breakpoint 1, main (Argc=1, Argv=0x7fffffffe458) at MainScope.c:6 6 printf("%d\n",Local); (gdb) print Local $1 = 2102704 -- some Garbage value, (gdb) info addr Local Symbol "Local" is a variable at frame base reg $rbp offset 0+-24. -- *This is location of *Local* declared inside scope, but as you may notice that the var...
2020 Apr 15
4
Seeking clarification and way forward on limited scope variables.
...11 return 0; > 12 } > -------------------------------------------- > When compiled in debug mode with compilers including (trunk gcc and trunk clang) and debugging with GDB at Line No.6, the following behavior is observed > Breakpoint 1, main (Argc=1, Argv=0x7fffffffe458) at MainScope.c:6 > 6 printf("%d\n",Local); > (gdb) print Local > $1 = 2102704 -- some Garbage value, > (gdb) info addr Local > Symbol "Local" is a variable at frame base reg $rbp offset 0+-24. -- This is location of *Local* declared inside scope, but as you...