This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug debug/26754] [4.0/4.1/4.2 Regression] Wrong debug info for variable accessed non-locally



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-20 07:50 -------
I could not get 3.3.3 (or 3.4.0 to get the correct results):
(gdb) b main
Breakpoint 1 at 0x8048374: file t.c, line 16.
(gdb) run
Starting program: /home/peshtigo/pinskia/a.out 

Breakpoint 1, main () at t.c:16
16        foo ();
(gdb) step
foo () at t.c:3
3         int a = 0;
(gdb) 
10        bar ();
(gdb) 
bar.0 () at t.c:7
7           a = 1;
(gdb) p a
No symbol "a" in current context.
(gdb) step
8         }
(gdb) p a
No symbol "a" in current context.
(gdb) step
foo () at t.c:11
11        a = a + 1;
(gdb) 
12      }
(gdb) 
main () at t.c:17
17      }
(gdb) 
0x003e7ad4 in __libc_start_main () from /lib/tls/libc.so.6


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26754


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]