-----Original Message----- From: gpc-owner@gnu.de [mailto:gpc-owner@gnu.de] On Behalf Of Adriaan van Os Sent: Thursday, September 27, 2007 9:45 AM To: gpc@gnu.de Subject: Re: [RFC-3] Handle GPC specific name for main function
Pierre Muller wrote:
Based on comments from Waldek and concerns from Joel, I propose that we first check for the presence of the '_p_initialize' minimal symbol, and only look for '_p_M0_main_program' and 'pascal_main_program' if the '_p_initialize' was found.
The check should certainly not be for _p_M0_main_program or pascal_main_program'. Waldek rightly remarked that e.g. shared
libraries
won't have these symbols. Better is to look for _p_initialize and/or GPC_RTS_VERSION_YYYYMMDD.
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.
This is of no meaning for a library, unless I am missing something... I doubt that you can use 'start' for a library.
Pierre