* How to debug multiple fortran90 files with GDB
@ 2005-09-05 10:23 Hidetoshi CHIBA
2005-09-05 14:01 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Hidetoshi CHIBA @ 2005-09-05 10:23 UTC (permalink / raw)
To: gdb
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.
Thanks in advance,
-------
Hidetoshi Chiba
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug multiple fortran90 files with GDB
2005-09-05 10:23 How to debug multiple fortran90 files with GDB Hidetoshi CHIBA
@ 2005-09-05 14:01 ` Daniel Jacobowitz
2005-09-05 15:58 ` Hidetoshi CHIBA
2005-09-06 5:26 ` Hidetoshi CHIBA
0 siblings, 2 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2005-09-05 14:01 UTC (permalink / raw)
To: Hidetoshi CHIBA; +Cc: 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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug multiple fortran90 files with GDB
2005-09-05 14:01 ` Daniel Jacobowitz
@ 2005-09-05 15:58 ` Hidetoshi CHIBA
2005-09-06 5:26 ` Hidetoshi CHIBA
1 sibling, 0 replies; 5+ messages in thread
From: Hidetoshi CHIBA @ 2005-09-05 15:58 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 1262 bytes --]
> 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 #2: test.lzh --]
[-- Type: application/octet-stream, Size: 341 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug multiple fortran90 files with GDB
2005-09-05 14:01 ` Daniel Jacobowitz
2005-09-05 15:58 ` Hidetoshi CHIBA
@ 2005-09-06 5:26 ` Hidetoshi CHIBA
2005-09-06 7:04 ` David Lecomber
1 sibling, 1 reply; 5+ messages in thread
From: Hidetoshi CHIBA @ 2005-09-06 5:26 UTC (permalink / raw)
To: Daniel Jacobowitz; +Cc: gdb
[-- Attachment #1: Type: text/plain, Size: 1049 bytes --]
Dear helpers,
The testcase which was attached in my previous email had a mistake.
So, I'd be happy if you check the new testcase attached in this email.
Thanks in advance,
Hidetoshi Chiba
----- 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 #2: test.lzh --]
[-- Type: application/octet-stream, Size: 323 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: How to debug multiple fortran90 files with GDB
2005-09-06 5:26 ` Hidetoshi CHIBA
@ 2005-09-06 7:04 ` David Lecomber
0 siblings, 0 replies; 5+ messages in thread
From: David Lecomber @ 2005-09-06 7:04 UTC (permalink / raw)
To: Hidetoshi CHIBA; +Cc: Daniel Jacobowitz, gdb
On Tue, 2005-09-06 at 14:26 +0900, Hidetoshi CHIBA wrote:
> Dear helpers,
>
> The testcase which was attached in my previous email had a mistake.
> So, I'd be happy if you check the new testcase attached in this email.
>
> Thanks in advance,
Hi all,
I've certainly come across this one too. Often I'd find that one
couldn't add a breakpoint at a function in an included file, until you'd
stepped into that file once. It can probably be resolved by taking the
'-readnow' option (see google for syntax, am rusty here today) - but
this may not be an option for behemoth sized codes due to the time it
takes.
Regards
David
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2005-09-06 7:04 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-05 10:23 How to debug multiple fortran90 files with GDB Hidetoshi CHIBA
2005-09-05 14:01 ` Daniel Jacobowitz
2005-09-05 15:58 ` Hidetoshi CHIBA
2005-09-06 5:26 ` Hidetoshi CHIBA
2005-09-06 7:04 ` David Lecomber
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).