From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7452 invoked by alias); 1 Oct 2008 21:56:08 -0000 Received: (qmail 7443 invoked by uid 22791); 1 Oct 2008 21:56:08 -0000 X-Spam-Check-By: sourceware.org Received: from ugmailsb.ugent.be (HELO ugmailsb.ugent.be) (157.193.71.46) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 01 Oct 2008 21:55:25 +0000 Received: from localhost (localhost [127.0.0.1]) by ugmailsb.ugent.be (Postfix) with ESMTP id 97A0E2AB147 for ; Wed, 1 Oct 2008 23:55:21 +0200 (CEST) Received: from ugmailsb.ugent.be ([127.0.0.1]) by localhost (ugmailsb.ugent.be [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Bz-CVJ7zHBQ5 for ; Wed, 1 Oct 2008 23:55:21 +0200 (CEST) Received: from cedar.ugent.be (cedar.ugent.be [157.193.49.14]) by ugmailsb.ugent.be (Postfix) with ESMTP id A541E2AB127 for ; Wed, 1 Oct 2008 23:55:20 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApoEAFaO40idwc4w/2dsb2JhbAC/DoFq Received: from mail.elis.ugent.be ([157.193.206.48]) by relays9.ugent.be with ESMTP; 01 Oct 2008 23:55:20 +0200 Received: from localhost (localhost [127.0.0.1]) by mail.elis.UGent.be (Postfix) with ESMTP id 22BF32BABA8; Wed, 1 Oct 2008 23:55:16 +0200 (CEST) Received: from [127.0.0.1] (ssh2.elis.UGent.be [157.193.206.127]) by mail.elis.UGent.be (Postfix) with ESMTP id DB93B2BAB52; Wed, 1 Oct 2008 23:55:15 +0200 (CEST) Cc: Pierre Muller , gpc@gnu.de, gdb-patches@sourceware.org Message-Id: <93E24692-A1FE-4078-A76F-92AAF92AB4ED@elis.ugent.be> From: Jonas Maebe To: FPC Core Developer List In-Reply-To: <20081001163945.GI3665@adacore.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Core] [RFA/DWARF2] Handle nested subprograms in CU pc bound calculation Date: Wed, 01 Oct 2008 21:56: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> <20081001163945.GI3665@adacore.com> X-Mailer: Apple Mail (2.926) 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/msg00037.txt.bz2 On 01 Oct 2008, at 18:39, Joel Brobecker wrote: > The answer to the question above lies in the Pascal parser. But when > there are homonyms, how do you specify in your program exactly which > one you mean? unitname.functionname > And does GDB provide the same method for distinguishing > these homonyms? I don't think so. The main problem is that there is no common way of mangling procedure/function names in Pascal. FPC and GPC mangle them in different ways, and as far as I know gdb has no support to demangle either (it definitely does not support demangling FPC names). For this reason, I always use either symbol names or sourcefile:linenr to place breakpoints. Jonas