From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17915 invoked by alias); 27 Sep 2007 12:35:39 -0000 Received: (qmail 17865 invoked by uid 22791); 27 Sep 2007 12:35:38 -0000 X-Spam-Check-By: sourceware.org Received: from ics.u-strasbg.fr (HELO ics.u-strasbg.fr) (130.79.112.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 12:35:34 +0000 Received: from ICSMULLER (laocoon.u-strasbg.fr [130.79.112.72]) by ics.u-strasbg.fr (Postfix) with ESMTP id 65917187021; Thu, 27 Sep 2007 14:40:26 +0200 (CEST) From: "Pierre Muller" To: "'Daniel Jacobowitz'" , "'Joel Brobecker'" Cc: "'Adriaan van Os'" , , References: <20070926175805.GA6208@adacore.com> <001501c80074$ff05ddc0$fd119940$@u-strasbg.fr> <20070926194950.GA21242@adacore.com> <000701c80089$815378f0$83fa6ad0$@u-strasbg.fr> <000801c8008e$0aa12c70$1fe38550$@u-strasbg.fr> <20070927060246.GB3787@adacore.com> <000001c800d8$21cbcf00$65636d00$@u-strasbg.fr> <46FB5E2C.6080606@microbizz.nl> <46FB5F76.9050501@microbizz.nl> <000001c800dc$14b0df00$3e129d00$@u-strasbg.fr> <20070927121107.GB27706@caradoc.them.org> In-Reply-To: <20070927121107.GB27706@caradoc.them.org> Subject: RE: [RFC-3] Handle GPC specific name for main function Date: Thu, 27 Sep 2007 12:35:00 -0000 Message-ID: <001b01c80102$e371af60$aa550e20$@u-strasbg.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us 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: 2007-09/txt/msg00406.txt.bz2 > -----Original Message----- > From: gdb-patches-owner@sourceware.org [mailto:gdb-patches- > owner@sourceware.org] On Behalf Of Daniel Jacobowitz > Sent: Thursday, September 27, 2007 2:11 PM > To: Pierre Muller > Cc: 'Adriaan van Os'; gpc@gnu.de; gdb-patches@sourceware.org > Subject: Re: [RFC-3] Handle GPC specific name for main function > > On Thu, Sep 27, 2007 at 09:57:41AM +0200, Pierre Muller wrote: > > > On second thought - are these symbols present when linking to a > dynamic > > > libgpc ? > > > > Does this matter anyhow? > > We are just trying to get the > > gdb command 'start' to end up at the right location, > > i.e. for a pascal program, at the start of > > the main procedure of the main source. > > Yes, it matters. libgpc will not be loaded yet, so _p_initialize > might be missing when we try to find the main function. Would then looking after __imp_p_initialize find something? You need to excuse me, but I have no idea of the library loading works... Anyhow, this can only lead to failures to detect GPC properly. I think that the patch, even if it might miss more cases, is also much more safe this way, because we only use (_p_MO__main_program or pascal_main_program) as start command breakpoint if '_p_initialize' was also found. Pierre