public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug debug/40660]  New: [4.5 Regression] Wierd break points with 4.5, works with 4.4
@ 2009-07-06 16:10 burnus at gcc dot gnu dot org
  2009-07-15  7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: burnus at gcc dot gnu dot org @ 2009-07-06 16:10 UTC (permalink / raw)
  To: gcc-bugs

Maybe this is a side effect of fixing a DWARF bug, but using GCC 4.5 with
gdb (GDB) SUSE (6.8.50.20090302-41.3) [contains "Merge FC11 update 23"] does
not work while with GCC 4.4 it does.

Example (compile with gfortran -g):

PROGRAM test
  INTEGER, DIMENSION(3) :: a1,a2
  a1 = 1
  PRINT*, a1
  a2 = 2
end program test

GCC 4.4 with gdb:

(gdb) b 3
Breakpoint 1 at 0x4007a7: file test.f90, line 3.
(gdb) run
Starting program: /dev/shm/a.out
Breakpoint 1, test () at test.f90:3
3         a1 = 1
Current language:  auto; currently fortran
(gdb) n
4         PRINT*, a1
(gdb) pt a1
type = integer(kind=4) (3)
(gdb) p a1
$1 = (1, 1, 1)
(gdb) n
           1           1           1
5         a2 = 2


GCC 4.5 with gdb:

(gdb) b 3
Breakpoint 1 at 0x400738: file test.f90, line 3.
(gdb) run
Starting program: /dev/shm/a.out
Breakpoint 1, test () at test.f90:3
3         a1 = 1
Current language:  auto; currently fortran
(gdb) p a1
$1 = (8, 0, -1417923840)
(gdb) n
           1           1           1
0x00002aaaab48ca4d in __libc_start_main () from /lib64/libc.so.6


-- 
           Summary: [4.5 Regression] Wierd break points with 4.5, works with
                    4.4
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Keywords: wrong-debug
          Severity: normal
          Priority: P3
         Component: debug
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burnus at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2009-09-03  6:50 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-06 16:10 [Bug debug/40660] New: [4.5 Regression] Wierd break points with 4.5, works with 4.4 burnus at gcc dot gnu dot org
2009-07-15  7:28 ` [Bug debug/40660] " steven at gcc dot gnu dot org
2009-07-15  7:28 ` steven at gcc dot gnu dot org
2009-07-29 22:52 ` jsm28 at gcc dot gnu dot org
2009-08-07 14:41 ` burnus at gcc dot gnu dot org
2009-08-07 17:28 ` jv244 at cam dot ac dot uk
2009-08-14 13:36 ` burnus at gcc dot gnu dot org
2009-08-21 18:04 ` burnus at gcc dot gnu dot org
2009-08-21 18:34 ` burnus at gcc dot gnu dot org
2009-08-21 21:11 ` aldyh at gcc dot gnu dot org
2009-08-22  9:38 ` burnus at gcc dot gnu dot org
2009-08-24 18:34 ` [Bug debug/40660] [4.5 Regression] Weird " aldyh at gcc dot gnu dot org
2009-08-24 19:05 ` jv244 at cam dot ac dot uk
2009-08-25  0:28 ` aldyh at gcc dot gnu dot org
2009-09-03  6:50 ` jv244 at cam dot ac dot uk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).