From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9308 invoked by alias); 26 Sep 2007 21:51:43 -0000 Received: (qmail 9294 invoked by uid 22791); 26 Sep 2007 21:51:43 -0000 X-Spam-Check-By: sourceware.org Received: from igw3.br.ibm.com (HELO igw3.br.ibm.com) (32.104.18.26) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Sep 2007 21:51:41 +0000 Received: from mailhub1.br.ibm.com (unknown [9.18.232.109]) by igw3.br.ibm.com (Postfix) with ESMTP id 798D2390057 for ; Wed, 26 Sep 2007 18:46:44 -0300 (BRT) Received: from d24av01.br.ibm.com (d24av01.br.ibm.com [9.18.232.46]) by mailhub1.br.ibm.com (8.13.8/8.13.8/NCO v8.5) with ESMTP id l8QLpckZ3121350 for ; Wed, 26 Sep 2007 18:51:38 -0300 Received: from d24av01.br.ibm.com (loopback [127.0.0.1]) by d24av01.br.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id l8QLpcp1014390 for ; Wed, 26 Sep 2007 18:51:38 -0300 Received: from [9.18.238.59] (dyn531792.br.ibm.com [9.18.238.59]) by d24av01.br.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id l8QLpbKA014387; Wed, 26 Sep 2007 18:51:38 -0300 Message-ID: <46FAD46B.9000006@br.ibm.com> Date: Thu, 27 Sep 2007 08:29:00 -0000 From: Carlos Eduardo Seo User-Agent: Thunderbird 2.0.0.6 (X11/20070907) MIME-Version: 1.0 To: gdb@sourceware.org CC: drow@false.org Subject: Re: DWARF question References: <46FAC9D7.9080001@linux.vnet.ibm.com> <20070926212539.GA17502@caradoc.them.org> In-Reply-To: <20070926212539.GA17502@caradoc.them.org> OpenPGP: id=FC03B16C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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/msg00223.txt.bz2 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 It's generating one compilation unit for the "main" program and another one for a function called by that program. Both are implemented in the same source file. Carlos Eduardo Seo Software Engineer IBM Linux Technology Center Phone: +55 19-2132-4339 T/L: 839-4339 E-Mail: eduseo@br.ibm.com Daniel Jacobowitz wrote: > On Wed, Sep 26, 2007 at 06:06:31PM -0300, Carlos Eduardo Seo wrote: >> I found something strange in a binary generated from a fortran code: two >> compilation units for the same source file. Is that allowed by the DWARF >> specification? The binary was generated from a single source file. > > Yes, it happens in several cases, though I don't know why in your case. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+tRrkuArJ/wDsWwRAizRAKC801NR6yOlitCL2YD3WK0v2zN8mgCgucXp wrd5czl6wJv5xIrZnKJr0VU= =TvHT -----END PGP SIGNATURE-----