www.delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
From: | "Richard Stanton" <stanton AT Haas DOT Berkeley DOT EDU> |
To: | "Cygwin Mailing List" <cygwin AT sourceware DOT cygnus DOT com> |
Subject: | Problems with gdb and FORTRAN programs |
Date: | Tue, 25 May 1999 13:18:52 -0700 |
Message-ID: | <000a01bea6eb$ceaa8680$8f4b2080@berkeley.edu> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook 8.5, Build 4.71.2377.0 |
X-MimeOLE: | Produced By Microsoft MimeOLE V5.00.2014.211 |
Importance: | Normal |
In-Reply-To: | <199905132203.RAA09590@modi.xraylith.wisc.edu> |
I'm writing/debugging some FORTRAN code using egcs 1.1.2 and gdb 4.17.1. There seem to be some problems viewing variables with gdb in fortran mode. For example, Breakpoint 1, getdat_ (data=0xf0be20, m=0x30720d0, n=0x30720d4) at snpdata.f:40 (gdb) print n $2 = (PTR TO -> ( integer )) 0x30720d4 (gdb) set lang c Warning: the current language does not match this frame. (gdb) print n[0] $3 = 491 (gdb) set lang fortran (gdb) print n(1) Program received signal SIGSEGV, Segmentation fault. 0x30720d9 in ?? () The program being debugged stopped while in a function called from GDB. When the function (at 0x30720d4) is done executing, GDB will silently stop (instead of continuing to evaluate the expression containing the function call). (gdb) How can I view the contents of the variable n in fortran mode? Richard Stanton -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |