public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24527]  New: derived types not displayed correctly
@ 2005-10-25 19:58 tkoenig at gcc dot gnu dot org
  2005-10-27 23:24 ` [Bug fortran/24527] derived types not displayed correctly with gdb pinskia at gcc dot gnu dot org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: tkoenig at gcc dot gnu dot org @ 2005-10-25 19:58 UTC (permalink / raw)
  To: gcc-bugs

This may be a gdb bug, but anyway...

 cat type.f90
program main
  type foo
    real :: a
    integer :: b
  end type foo
  type(foo) :: q
  q = foo(3.14, 42)
  print *,q
end program main
$ gfortran -g type.f90
$ gdb ./a.out
GNU gdb 6.3-debian
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-linux"...Using host libthread_db library
"/lib/tls/libthread_db.so.1".

(gdb) b type.f90:7
Breakpoint 1 at 0x8048624: file type.f90, line 7.
(gdb) r
Starting program: /home/ig25/Krempel/Gdb/a.out

Breakpoint 1, MAIN__ () at type.f90:7
7         q = foo(3.14, 42)
Current language:  auto; currently fortran
(gdb) p q
$1 = Invalid F77 type code 3 in symbol table.
(gdb) q
The program is running.  Exit anyway? (y or n) y


-- 
           Summary: derived types not displayed correctly
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: wrong-debug
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkoenig at gcc dot gnu dot org


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


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

* [Bug fortran/24527] derived types not displayed correctly with gdb
  2005-10-25 19:58 [Bug fortran/24527] New: derived types not displayed correctly tkoenig at gcc dot gnu dot org
@ 2005-10-27 23:24 ` pinskia at gcc dot gnu dot org
  2005-10-28  4:39 ` woodzltc at sources dot redhat dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-27 23:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-27 23:24 -------
Confirmed.  This is a gdb bug as if I do:
"set lang c"
it works.

Oh, I think there is a dup around somewhere too.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-27 23:24:43
               date|                            |


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


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

* [Bug fortran/24527] derived types not displayed correctly with gdb
  2005-10-25 19:58 [Bug fortran/24527] New: derived types not displayed correctly tkoenig at gcc dot gnu dot org
  2005-10-27 23:24 ` [Bug fortran/24527] derived types not displayed correctly with gdb pinskia at gcc dot gnu dot org
@ 2005-10-28  4:39 ` woodzltc at sources dot redhat dot com
  2006-10-14 14:47 ` steven at gcc dot gnu dot org
  2006-10-14 15:16 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: woodzltc at sources dot redhat dot com @ 2005-10-28  4:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from woodzltc at sources dot redhat dot com  2005-10-28 04:39 -------
Yes. I agree that it is more like a gdb bug.  But I would rather say that it is
an enhancement request for gdb, because GDB never says that it supports
complete Fortran-95 syntax.  The support for Fortrn 77 is also not deemed as
complete.  

I coded a patch in gdb for that.  The link is
http://sourceware.org/ml/gdb-patches/2005-10/msg00208.html


-- 

woodzltc at sources dot redhat dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |woodzltc at sources dot
                   |                            |redhat dot com


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


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

* [Bug fortran/24527] derived types not displayed correctly with gdb
  2005-10-25 19:58 [Bug fortran/24527] New: derived types not displayed correctly tkoenig at gcc dot gnu dot org
  2005-10-27 23:24 ` [Bug fortran/24527] derived types not displayed correctly with gdb pinskia at gcc dot gnu dot org
  2005-10-28  4:39 ` woodzltc at sources dot redhat dot com
@ 2006-10-14 14:47 ` steven at gcc dot gnu dot org
  2006-10-14 15:16 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-10-14 14:47 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from steven at gcc dot gnu dot org  2006-10-14 14:47 -------
The patch in http://sourceware.org/ml/gdb-patches/2005-11/msg00217.html
implements this quite nicely AFAICT.  I'll try and take care of the rest.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |steven at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2006-01-29 17:58:09         |2006-10-14 14:47:24
               date|                            |


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


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

* [Bug fortran/24527] derived types not displayed correctly with gdb
  2005-10-25 19:58 [Bug fortran/24527] New: derived types not displayed correctly tkoenig at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-10-14 14:47 ` steven at gcc dot gnu dot org
@ 2006-10-14 15:16 ` steven at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: steven at gcc dot gnu dot org @ 2006-10-14 15:16 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from steven at gcc dot gnu dot org  2006-10-14 15:15 -------
This works with the patch I mentioned in comment #3.  That patch is in the GDB
source tree since 2006-02-24, so this is "fixed" in GDB 6.5.  On the GCC side
we seem to do the right thing for scalar components.  For array components
obviously we don't but there is a separate bug about that.

So I'm calling this FIXED.


-- 

steven at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2006-10-14 15:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-25 19:58 [Bug fortran/24527] New: derived types not displayed correctly tkoenig at gcc dot gnu dot org
2005-10-27 23:24 ` [Bug fortran/24527] derived types not displayed correctly with gdb pinskia at gcc dot gnu dot org
2005-10-28  4:39 ` woodzltc at sources dot redhat dot com
2006-10-14 14:47 ` steven at gcc dot gnu dot org
2006-10-14 15:16 ` steven at gcc dot gnu dot org

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).