From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21759 invoked by alias); 1 Oct 2008 08:33:02 -0000 Received: (qmail 21687 invoked by uid 22791); 1 Oct 2008 08:33:01 -0000 X-Spam-Check-By: sourceware.org Received: from ugmailsa.ugent.be (HELO ugmailsa.ugent.be) (157.193.49.116) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Oct 2008 08:32:16 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsa.ugent.be (Postfix) with ESMTP id 6DCB0306A6A for ; Wed, 1 Oct 2008 10:32:13 +0200 (CEST) Received: from ugmailsa.ugent.be ([127.0.0.1]) by localhost (ugmailsa.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id K39w97Hb1+d2 for ; Wed, 1 Oct 2008 10:32:13 +0200 (CEST) Received: from cypress.ugent.be (cypress.ugent.be [157.193.71.48]) by ugmailsa.ugent.be (Postfix) with ESMTP id C3E70306B02 for ; Wed, 1 Oct 2008 10:32:09 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjUGAKnS4kidwc4w/2dsb2JhbACEQrkRgWo Received: from mail.elis.ugent.be ([157.193.206.48]) by relayrec.ugent.be with ESMTP; 01 Oct 2008 10:30:16 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.elis.UGent.be (Postfix) with ESMTP id 07C2B2BAC21; Wed, 1 Oct 2008 10:30:08 +0200 (CEST) Received: from bigmac.elis.UGent.be (bigmac.elis.UGent.be [157.193.206.33]) by mail.elis.UGent.be (Postfix) with ESMTP id EA48E2BAB9D; Wed, 1 Oct 2008 10:30:07 +0200 (CEST) Cc: "'Joel Brobecker'" , , gpc@gnu.de Message-Id: From: Jonas Maebe To: FPC Core Developer List In-Reply-To: <003201c92399$3207f300$9617d900$@u-strasbg.fr> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v924) Subject: Re: [Core] [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation Date: Wed, 01 Oct 2008 08:33:00 -0000 References: <20080930152757.GC23135@adacore.com> <002601c92313$27d06790$777136b0$@u-strasbg.fr> <20080930170648.GI3811@adacore.com> <20080930173837.GA959@caradoc.them.org> <20081001011534.GA3665@adacore.com> <003201c92399$3207f300$9617d900$@u-strasbg.fr> X-Mailer: Apple Mail (2.924) Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-10/txt/msg00009.txt.bz2 On 01 Oct 2008, at 09:42, Pierre Muller wrote: > De : Joel Brobecker [mailto:brobecker@adacore.com] > >> This is only just for comments, as there is still one question open: >> For Ada, we store the symbols for nested subprograms in the global >> context. This allows us to break on these functions even when these >> functions are not defined in the current context. Do we want to do >> the >> same with Pascal? > > I believe that, at least with the Free Pascal compiler and > stabs debugging format (which is the format I worked on), all > nested subprograms where also in the global context and thus > I would not mind to do the same for pascal language. > > I must confess that I stopped working for the Free Pascal compiler > more or less when the dwarf debugging format was added, and I almost > don't > know > anything about that format... > The only thing that I can tell, is that last time I checked > Free Pascal (version 2.2.0 windows 32bit target) with -gw (dwarf > debugging > format) > I still got lots of errors while trying to load the compiler inside > gdb :( At least under Mac OS X, FPC with dwarf works fairly well. I believe it works ok under Linux too. I don't know about win32. > I must confess that I don't even know if the full specification > would work for pascal in case the same name is used globally and as > a nested procedure (I do know that you are allowed > to reuse a name defined globally as a local procedure, function or > variable > inside a function, but I don't know if the > (gdb) break GlobalFuntion.LocalFunction > would work) It doesn't work with FPC and stabs under 6.6-45.fc8rh at least (neither when using only upper case nor when using the casing as it appears in the source code). Was support for this only added in a later gdb version? Jonas