From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5652 invoked by alias); 14 Sep 2007 21:55:53 -0000 Received: (qmail 5640 invoked by uid 22791); 14 Sep 2007 21:55:52 -0000 X-Spam-Check-By: sourceware.org Received: from igw1.br.ibm.com (HELO igw1.br.ibm.com) (32.104.18.24) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 14 Sep 2007 21:55:46 +0000 Received: from mailhub3.br.ibm.com (mailhub3 [9.18.232.110]) by igw1.br.ibm.com (Postfix) with ESMTP id 322ED148110 for ; Fri, 14 Sep 2007 18:37:31 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub3.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8ELthVu2678876 for ; Fri, 14 Sep 2007 18:55:43 -0300 Received: from d24av02.br.ibm.com (loopback [127.0.0.1]) by d24av02.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8ELthZS007855 for ; Fri, 14 Sep 2007 18:55:43 -0300 Received: from [9.18.238.58] ([9.18.238.58]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8ELthRh007846 for ; Fri, 14 Sep 2007 18:55:43 -0300 Message-ID: <46EB035B.4090802@linux.vnet.ibm.com> Date: Sat, 15 Sep 2007 11:37:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: gdb@sourceware.org Subject: Problems while debugging fortran OpenPGP: id=8BFFA900 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-09/txt/msg00135.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello I'm having some trouble while debugging this code: c------------------- c test.f c ------------------ program this i=ifunc(1) print *,i end function ifunc(i) print *,i*2 ifunc = 1 return end c ------------------ If I try to set a breakpoint by line number, gdb displays: No line xx in file "init.c" However, it works if I set the breakpoint by function name (e.g. "break this"). If I run the program, then clear all breakpoints and try to set a breakpoint by line number, it'll work IF the line is within the scope of that function (i.e. if I set "break this", I can't set a breakpoint by line in the line "print *,i*2"). What I believe is that the psymtab does not contain either function symbols, since it's behaving differently when the psymtab is read and when the corresponding symtab is read in. That's why GDB cannot find the lines (worse, it's looking for them in the wrong file). Is that line of thought correct? Any ideas where I should start looking for the problem? Thanks and regards, - -- Carlos Eduardo Seo Software Engineer IBM Linux Technology Center -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG6wNbqvq7Aov/qQARAq0OAJ0X+xgtyA7+MnPIJostKRmpY3iylACffdNc /3EYMQfX7tINpGHt03i/Cqg= =bvvo -----END PGP SIGNATURE-----