public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
* [Bug fortran/17905] New: allocated arrays not visible with gdb @ 2004-10-09 8:41 bdavis at gcc dot gnu dot org 2004-10-09 14:00 ` [Bug fortran/17905] " tobi at gcc dot gnu dot org ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: bdavis at gcc dot gnu dot org @ 2004-10-09 8:41 UTC (permalink / raw) To: gcc-bugs see the example below along with gdb error. $ cat g.f90 program test integer,dimension(:),allocatable :: array allocate (array(10)) array(10000000)=8 end $ gfc g.f90 $ gdb a.out GNU gdb 6.2.1 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 "i686-pc-linux-gnu"...Using host libthread_db library "/lib/tls/libthread_db.so.1". (gdb) break g.f90:3 Breakpoint 1 at 0x80481f8: file g.f90, line 3. (gdb) run Starting program: /home/bdavis/a.out Breakpoint 1, MAIN__ () at g.f90:3 3 allocate (array(10)) Current language: auto; currently fortran (gdb) whatis array type = Invalid type code (3) in symbol table. more info : http://gcc.gnu.org/ml/fortran/2004-10/msg00069.html -- Summary: allocated arrays not visible with gdb Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: fortran AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: bdavis at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17905] allocated arrays not visible with gdb 2004-10-09 8:41 [Bug fortran/17905] New: allocated arrays not visible with gdb bdavis at gcc dot gnu dot org @ 2004-10-09 14:00 ` tobi at gcc dot gnu dot org 2004-10-09 16:32 ` pinskia at gcc dot gnu dot org 2005-06-30 8:48 ` woodzltc at sources dot redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: tobi at gcc dot gnu dot org @ 2004-10-09 14:00 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From tobi at gcc dot gnu dot org 2004-10-09 14:00 ------- Confirmed. -- What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 Last reconfirmed|0000-00-00 00:00:00 |2004-10-09 14:00:39 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17905] allocated arrays not visible with gdb 2004-10-09 8:41 [Bug fortran/17905] New: allocated arrays not visible with gdb bdavis at gcc dot gnu dot org 2004-10-09 14:00 ` [Bug fortran/17905] " tobi at gcc dot gnu dot org @ 2004-10-09 16:32 ` pinskia at gcc dot gnu dot org 2005-06-30 8:48 ` woodzltc at sources dot redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu dot org @ 2004-10-09 16:32 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-09 16:32 ------- I saw something like this too. -- What |Removed |Added ---------------------------------------------------------------------------- Keywords| |wrong-debug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905 ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug fortran/17905] allocated arrays not visible with gdb 2004-10-09 8:41 [Bug fortran/17905] New: allocated arrays not visible with gdb bdavis at gcc dot gnu dot org 2004-10-09 14:00 ` [Bug fortran/17905] " tobi at gcc dot gnu dot org 2004-10-09 16:32 ` pinskia at gcc dot gnu dot org @ 2005-06-30 8:48 ` woodzltc at sources dot redhat dot com 2 siblings, 0 replies; 4+ messages in thread From: woodzltc at sources dot redhat dot com @ 2005-06-30 8:48 UTC (permalink / raw) To: gcc-bugs ------- Additional Comments From woodzltc at sources dot redhat dot com 2005-06-30 08:48 ------- For array, ifc will output the following debuginfo: <2><7e>: Abbrev Number: 4 (DW_TAG_variable) ====> TAG for variable "array" DW_AT_decl_line : 2 DW_AT_decl_column : 42 DW_AT_decl_file : 1 DW_AT_accessibility: 1 (public) DW_AT_name : array DW_AT_type : <99> ====> next TAG, indicating that it is an array DW_AT_location : 5 byte block: 3 50 23 9 8 (DW_OP_addr: 8092350) DW_AT_external : 0 DW_AT_start_scope : 26 <1><99>: Abbrev Number: 5 (DW_TAG_array_type) DW_AT_ordering : 1 (column major) DW_AT_type : <cb> DW_AT_data_location: 2 byte block: 97 6 (DW_OP_push_object_address; DW_OP_deref) DW_AT_allocated : 11 byte block: 97 10 c 22 6 c 1 0 0 0 1a (DW_OP_push_object_address; DW_OP_constu: 12; DW_OP_plus; DW_OP_deref; DW_OP_const4u: 1; DW_OP_and) If gfortran could output similar debuginfo, gdb could handle it correctly. -- What |Removed |Added ---------------------------------------------------------------------------- CC| |woodzltc at sources dot | |redhat dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17905 ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-06-30 8:48 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2004-10-09 8:41 [Bug fortran/17905] New: allocated arrays not visible with gdb bdavis at gcc dot gnu dot org 2004-10-09 14:00 ` [Bug fortran/17905] " tobi at gcc dot gnu dot org 2004-10-09 16:32 ` pinskia at gcc dot gnu dot org 2005-06-30 8:48 ` woodzltc at sources dot redhat dot com
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).