This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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]

Re: How to debug multiple fortran90 files with GDB


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" <drow@false.org>
To: "Hidetoshi CHIBA" <hidetoshi_c@hotmail.com>
Cc: <gdb@sources.redhat.com>
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

Attachment: test.lzh
Description: Binary data


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