* Fortran programs & list command output
@ 2004-05-17 17:43 Manoj Iyer
0 siblings, 0 replies; only message in thread
From: Manoj Iyer @ 2004-05-17 17:43 UTC (permalink / raw)
To: gdb
This is a follow up on an email I send out earlier wrt to list command not
able to output correct information. The list command does not see the
debug infomation in the case of fortran programs?? I have below a senario
on a PPC64 machine.
I compiled a simple hello world program in fortran
--------------------- hellow.f ---------------------
*
C Hello world program
*
PROGRAM HELLOW
WRITE(UNIT=*, FMT=*) 'Hello World'
END
----------------------------------------------------
g77 -g -m64 -o hellowf hellow.f
manjo@nefertiti:~/projects/src> ./gdb/gdb ~/tests/hellow
GNU gdb 2004-04-17-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc64-gnu-linux"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".
(gdb) list
1 ../sysdeps/powerpc/powerpc64/elf/start.S: No such file or
directory.
in ../sysdeps/powerpc/powerpc64/elf/start.S
(gdb)
In the above case, the list command does not see the debug information
even if the program is compiled with "-g" option.
The same program when written in C
-------------------------- test.c --------------------------
#include <stdio.h>
main()
{
printf("hello world\n");
}
-------------------------------------------------------------
cc -g -m64 -o test test.c
GNU gdb 2004-04-17-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you
are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "powerpc64-gnu-linux"...Using host libthread_db
library "/lib64/tls/libthread_db.so.1".
(gdb) list
1 #include <stdio.h>
2
3 main()
4 {
5 printf("hello world\n");
6 }
7
(gdb) quit
Which is the correct output for the list command.
Any thoughts??
--
Manoj Iyer
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-17 17:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-17 17:43 Fortran programs & list command output Manoj Iyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox