public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/9806] New: does not find local variables of module procedures.
@ 2009-02-02 12:12 Joost dot VandeVondele at pci dot uzh dot ch
  2009-02-02 12:26 ` [Bug fortran/9806] " jan dot kratochvil at redhat dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: Joost dot VandeVondele at pci dot uzh dot ch @ 2009-02-02 12:12 UTC (permalink / raw)
  To: gdb-prs

With Fortran code compiled with gcc 4.4.0 (i.e. current trunk), gdb can not
print /find local variables of module procedures. This was filed as a gcc PR
here, with a small testcase:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39073#c2

but it was suggested that the unwind info looks fine, and this is a bug with gdb
instead:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39073#c5

-- 
           Summary: does not find local variables of module procedures.
           Product: gdb
           Version: 6.8
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at sourceware dot org
        ReportedBy: Joost dot VandeVondele at pci dot uzh dot ch
                CC: gdb-prs at sourceware dot org


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
@ 2009-02-02 12:26 ` jan dot kratochvil at redhat dot com
  2009-02-07 14:41 ` jan dot kratochvil at redhat dot com
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-02-02 12:26 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jan dot kratochvil at redhat
                   |                            |dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
  2009-02-02 12:26 ` [Bug fortran/9806] " jan dot kratochvil at redhat dot com
@ 2009-02-07 14:41 ` jan dot kratochvil at redhat dot com
  2009-02-12  9:15 ` cvs-commit at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-02-07 14:41 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2009-02-07 14:41 -------
Post for FSF GDB:
http://sourceware.org/ml/gdb-patches/2009-02/msg00177.html

The testcase from http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39073#c2

GNU gdb (GDB) 6.8.50.20090207-cvs
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
(gdb) b 6
Breakpoint 1 at 0x400674: file aaa.f90, line 6.
(gdb) r
Starting program: /tmp/aaa 

Breakpoint 1, a () at aaa.f90:6
6	      if(i == 8) call abort()
Current language:  auto; currently fortran
(gdb) p i
$1 = 1


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
  2009-02-02 12:26 ` [Bug fortran/9806] " jan dot kratochvil at redhat dot com
  2009-02-07 14:41 ` jan dot kratochvil at redhat dot com
@ 2009-02-12  9:15 ` cvs-commit at gcc dot gnu dot org
  2009-02-12  9:17 ` Joost dot VandeVondele at pci dot uzh dot ch
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2009-02-12  9:15 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2009-02-12 09:15 -------
Subject: Bug 9806

CVSROOT:	/cvs/src
Module name:	src
Changes by:	jkratoch@sourceware.org	2009-02-12 09:15:07

Modified files:
	gdb            : ChangeLog dwarf2read.c 
	gdb/testsuite  : ChangeLog 
Added files:
	gdb/testsuite/gdb.fortran: module.exp module.f90 

Log message:
	gdb/
	PR fortran/9806
	* dwarf2read.c (process_die <DW_TAG_module>, read_module)
	(scan_partial_symbols <DW_TAG_module>, add_partial_module): New.
	
	gdb/testsuite/
	PR fortran/9806
	* gdb.fortran/module.exp, gdb.fortran/module.f90: New.

Patches:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.10187&r2=1.10188
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/dwarf2read.c.diff?cvsroot=src&r1=1.294&r2=1.295
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1807&r2=1.1808
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.fortran/module.exp.diff?cvsroot=src&r1=NONE&r2=1.1
http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.fortran/module.f90.diff?cvsroot=src&r1=NONE&r2=1.1



-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
                   ` (2 preceding siblings ...)
  2009-02-12  9:15 ` cvs-commit at gcc dot gnu dot org
@ 2009-02-12  9:17 ` Joost dot VandeVondele at pci dot uzh dot ch
  2009-02-12  9:33 ` jan dot kratochvil at redhat dot com
  2009-02-12  9:34 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: Joost dot VandeVondele at pci dot uzh dot ch @ 2009-02-12  9:17 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From Joost dot VandeVondele at pci dot uzh dot ch  2009-02-12 09:17 -------
(In reply to comment #2)
Thanks!

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
                   ` (3 preceding siblings ...)
  2009-02-12  9:17 ` Joost dot VandeVondele at pci dot uzh dot ch
@ 2009-02-12  9:33 ` jan dot kratochvil at redhat dot com
  2009-02-12  9:34 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-02-12  9:33 UTC (permalink / raw)
  To: gdb-prs



-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at sourceware dot|jan dot kratochvil at redhat
                   |org                         |dot com
             Status|NEW                         |ASSIGNED


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

* [Bug fortran/9806] does not find local variables of module procedures.
  2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
                   ` (4 preceding siblings ...)
  2009-02-12  9:33 ` jan dot kratochvil at redhat dot com
@ 2009-02-12  9:34 ` jan dot kratochvil at redhat dot com
  5 siblings, 0 replies; 7+ messages in thread
From: jan dot kratochvil at redhat dot com @ 2009-02-12  9:34 UTC (permalink / raw)
  To: gdb-prs


------- Additional Comments From jan dot kratochvil at redhat dot com  2009-02-12 09:34 -------
Checked-in.


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


http://sourceware.org/bugzilla/show_bug.cgi?id=9806

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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

end of thread, other threads:[~2009-02-12  9:34 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-02 12:12 [Bug fortran/9806] New: does not find local variables of module procedures Joost dot VandeVondele at pci dot uzh dot ch
2009-02-02 12:26 ` [Bug fortran/9806] " jan dot kratochvil at redhat dot com
2009-02-07 14:41 ` jan dot kratochvil at redhat dot com
2009-02-12  9:15 ` cvs-commit at gcc dot gnu dot org
2009-02-12  9:17 ` Joost dot VandeVondele at pci dot uzh dot ch
2009-02-12  9:33 ` jan dot kratochvil at redhat dot com
2009-02-12  9:34 ` jan dot kratochvil at redhat dot com

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