https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92386
--- Comment #2 from Bernd Edlinger <edlinger at gcc dot gnu.org> --- (gdb) info locals v = 32767 v = 0 i = 0 (gdb) s 10 v++; (gdb) info locals v = 32767 v = 1 i = 0 (gdb) s 11 printf("i = %d outer v 1 is %d\n",i, v); (gdb) info locals v = 32767 v = 2 i = 0 at least "info locals" sees both "v" just p can't print the shadowed value is there a syntax for that?