From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25010 invoked by alias); 5 Sep 2005 15:58:10 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 24992 invoked by uid 22791); 5 Sep 2005 15:58:06 -0000 Received: from bay102-dav4.bay102.hotmail.com (HELO hotmail.com) (64.4.61.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 05 Sep 2005 15:58:06 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 5 Sep 2005 08:58:04 -0700 Message-ID: Received: from 64.4.61.201 by BAY102-DAV4.phx.gbl with DAV; Mon, 05 Sep 2005 15:58:03 +0000 X-Originating-Email: [hidetoshi_c@hotmail.com] X-Sender: hidetoshi_c@hotmail.com From: "Hidetoshi CHIBA" To: "Daniel Jacobowitz" Cc: References: <20050905140128.GB27407@nevyn.them.org> Subject: Re: How to debug multiple fortran90 files with GDB Date: Mon, 05 Sep 2005 15:58:00 -0000 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000A_01C5B27E.08B17C40" X-SW-Source: 2005-09/txt/msg00025.txt.bz2 This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C5B27E.08B17C40 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Content-length: 1262 > Sorry, we can't help you without a testcase. OK. Could you try the testcase attached in this email? You can use "compile.bat" for compile. Then, on GDB, set a breakpoint at anywhere in "main.f90", for example on the line #7 in "main.f90", then after running, please try to print variable "itest". In my case, it is not possible to refer to the variable "itest" defined in "test.f90" from "main.f90". ----- Original Message ----- From: "Daniel Jacobowitz" To: "Hidetoshi CHIBA" Cc: Sent: Monday, September 05, 2005 11:01 PM Subject: Re: How to debug multiple fortran90 files with GDB > On Mon, Sep 05, 2005 at 07:24:06PM +0900, Hidetoshi CHIBA wrote: >> I have a problem on debugging my application which is generated by >> multiple >> fortran90 files with GDB. >> GDB seems not to read a value which is defined in a different fortran90 >> file. >> Or, is this a problem due to compiler? >> I usually use "g95" or "f90" for compile. >> Please tell me how to solve this problem. > > Sorry, we can't help you without a testcase. However, I know that g95 > has had some problems emitting correct debugging information in the > past. > > -- > Daniel Jacobowitz > CodeSourcery, LLC > ------=_NextPart_000_000A_01C5B27E.08B17C40 Content-Type: application/octet-stream; name="test.lzh" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="test.lzh" Content-length: 464 MgAtbGg1LUUAAABWAAAAvmMcQyACvSdNBQAANSUIAAJ0ZXN0/wsAAW1haW4u ZjkwAAAAQUpyjahca/wB+MjAWQ8D8LRKDrqbV47KxGAAAQYvbm9KmtGcBO8K ZXEhGrHTbtJezr4lvTHY66BIuzycsz8QBX4P8gAyAC1saDUtKgAAADEAAACq YxxDIAJtFU0FAAAt5wgAAnRlc3T/CwABdGVzdC5mOTAAAAAgQm5tQuM+gHUC +hX4TgvQXNPLDXAABOdR3BCPEzWmkbnYdxPhGoH4wDUALWxoNS1MAAAAdwAA AH5lHEMgAiF1TQUAAEqACAACdGVzdP8OAAFjb21waWxlLmJhdAAAAEFKcrUo fn/wB9Fjg+thsDwTpFZwL8FYLjrSljnAARWeQX1Wi+IzW2vJFBmwOAs6tlPZ qDT2aA24ZLeM8M8n+z7peLu3EVJA3jRSEAA= ------=_NextPart_000_000A_01C5B27E.08B17C40--