Re: Program received signal SIGFPE, Arithmetic exception

2012-11-27 Thread Eli Zaretskii
 Date: Tue, 27 Nov 2012 09:01:39 -0800 (PST)
 From: Alexandre Furlan alexandrepfur...@gmail.com
 
 I have the program a FORTRAN90 and when I debug with gdb, is shown
 
 Program received signal SIGFPE, Arithmetic exception.
 0x004060be in MAIN__ ()
 
 How to find the line where the error was found ?

Did you try typing bt, short for backtrace?

___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb


Re: Program received signal SIGFPE, Arithmetic exception

2012-11-27 Thread Eli Zaretskii
 Date: Tue, 27 Nov 2012 16:14:04 -0200 (BRST)
 From: alexandrepfurlan alexandrepfur...@gmail.com
 cc: Alexandre Furlan alexandrepfur...@gmail.com, bug-gdb@gnu.org
 
 
 I tried, and the result is
 
 Program received signal SIGFPE, Arithmetic exception.
 0x004060be in MAIN__ ()
 (gdb) bt
 #0  0x004060be in MAIN__ ()
 
 And now ?

Did you compile with -g?  It looks like there are no debug info in
this executable.

___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb


Re: Program received signal SIGFPE, Arithmetic exception

2012-11-27 Thread alexandrepfurlan


Yes. I use

gfortran -g program.f90

I'll try again.

On Tue, 27 Nov 2012, Eli Zaretskii wrote:


Date: Tue, 27 Nov 2012 16:14:04 -0200 (BRST)
From: alexandrepfurlan alexandrepfur...@gmail.com
cc: Alexandre Furlan alexandrepfur...@gmail.com, bug-gdb@gnu.org


I tried, and the result is

Program received signal SIGFPE, Arithmetic exception.
0x004060be in MAIN__ ()
(gdb) bt
#0  0x004060be in MAIN__ ()

And now ?


Did you compile with -g?  It looks like there are no debug info in
this executable.



___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb


Re: Program received signal SIGFPE, Arithmetic exception

2012-11-27 Thread alexandrepfurlan


I tried, and the result is

Program received signal SIGFPE, Arithmetic exception.
0x004060be in MAIN__ ()
(gdb) bt
#0  0x004060be in MAIN__ ()

And now ?


On Tue, 27 Nov 2012, Eli Zaretskii wrote:


Date: Tue, 27 Nov 2012 09:01:39 -0800 (PST)
From: Alexandre Furlan alexandrepfur...@gmail.com

I have the program a FORTRAN90 and when I debug with gdb, is shown

Program received signal SIGFPE, Arithmetic exception.
0x004060be in MAIN__ ()

How to find the line where the error was found ?


Did you try typing bt, short for backtrace?



___
bug-gdb mailing list
bug-gdb@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-gdb