From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17200 invoked by alias); 23 Sep 2007 02:36:52 -0000 Received: (qmail 17188 invoked by uid 22791); 23 Sep 2007 02:36:51 -0000 X-Spam-Check-By: sourceware.org Received: from igw2.br.ibm.com (HELO igw2.br.ibm.com) (32.104.18.25) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 23 Sep 2007 02:36:49 +0000 Received: from mailhub1.br.ibm.com (mailhub1 [9.18.232.109]) by igw2.br.ibm.com (Postfix) with ESMTP id DA47F17F4EA for ; Sat, 22 Sep 2007 23:34:35 -0300 (BRT) Received: from d24av02.br.ibm.com (d24av02.br.ibm.com [9.18.232.47]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8N2akYh2146458 for ; Sat, 22 Sep 2007 23:36:46 -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 l8N2ajug001333 for ; Sat, 22 Sep 2007 23:36:45 -0300 Received: from [9.18.203.36] ([9.18.203.36]) by d24av02.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8N2ajKE001328; Sat, 22 Sep 2007 23:36:45 -0300 Message-ID: <46F5D13D.2070303@linux.vnet.ibm.com> Date: Sun, 23 Sep 2007 02:52:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: Joel Brobecker CC: gdb@sourceware.org Subject: Re: Problems while debugging fortran References: <46EB035B.4090802@linux.vnet.ibm.com> <20070920173246.GJ16400@adacore.com> <46F2CE45.5020308@linux.vnet.ibm.com> <20070920204622.GB4368@adacore.com> In-Reply-To: <20070920204622.GB4368@adacore.com> 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/msg00182.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Joel Brobecker wrote: > > It should be the same if the "current file" is set to test.f. > It looks like it isn't. For some reason, GDB thinks that the current > file is something else. Again, perhaps a copy of your GDB session > might give a clue. > Here's a sample output with some comments: (gdb) b 25 No line 25 in file "init.c". (gdb) b this Breakpoint 1 at 0x10000670: file /tst111/ptr/fxdb1251.f, line 25. (gdb) b 31 No line 31 in file "init.c". (gdb) b ifunc Breakpoint 2 at 0x10000770: file /tst111/ptr/fxdb1251.f, line 30. As you can see, breakpoints by line number don't work. However, if I use the function name, it works correctly. At this point, if I clear all breakpoints and try to set them again by line number, it doesn't work. Now, if I run the program, this happens: (gdb) r Starting program: /home/cseo/gdb-bugs/pr36275/fxdb1251 [Thread debugging using libthread_db enabled] [New Thread 0xf7fb9000 (LWP 16185)] [Switching to Thread 0xf7fb9000 (LWP 16185)] Breakpoint 1, this () at /tst111/ptr/fxdb1251.f:25 25 i=ifunc(1) Current language: auto; currently fortran (gdb) c Continuing. Breakpoint 2, ifunc (i= During symbol reading, incomplete CFI data; unspecified registers (e.g., r0) at 0x100007dc. 1) at /tst111/ptr/fxdb1251.f:30 30 print *,i*2 (gdb) c Continuing. 2 1 Program exited normally. (gdb) del Delete all breakpoints? (y or n) y (gdb) b 25 Breakpoint 3 at 0x10000670: file /tst111/ptr/fxdb1251.f, line 25. (gdb) b 31 Breakpoint 4 at 0x100007cc: file /tst111/ptr/fxdb1251.f, line 31. (gdb) After running the program, if I clear all breakpoints and try to set them again by line number, it works. Any ideas? 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 iD8DBQFG9dE8qvq7Aov/qQARAnoGAJ9oAM2QSypensiZxsv1fJBvnucUQACfSWFD zbU+0hlFgADSvx1JGGzkU3E= =m8M+ -----END PGP SIGNATURE-----