skip __main

Pedro Alves pedro_alves@portugalmail.pt
Tue Jan 29 15:48:00 GMT 2008


Pierre Muller wrote:
> 
>   The problem for me is that I am currently 
> unable to do a testsuite on cygwin,
> the test stays forever on gdb.threads/manythreads.exp
> test and the timeout does not seem to work there :(
> 

Wild guess: nasty Anti-virus or anti-spyware doing
nasty things?

>   Concerning your patch:
>   I would suggest one change:
> instead of using hard coded "main" name,
> you should use the main_name function from symtab.c source
> defined in symtab.h

>   I am not really sure this is useful,
> (the modified main_name for GNU pascal compiler
> does not contain a call to __main), but
> it seems more logical to me.
> 

The pascal runtime would have an implementation of "main"
somewhere, which is where the __main call is inserted, before
reaching any pascal user code.

I just checked that gcc only emits the call on a identifier
called "main", which means that there is no point currently in
moving the "main" detection into the callback.

Here is result diff of the overnight test.  I'm running it
again to confirm the results.

-- 
Pedro Alves
-------------- next part --------------
A non-text attachment was scrubbed...
Name: skip_main_results.diff
Type: text/x-diff
Size: 43797 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20080129/4cc033ee/attachment.bin>


More information about the Gdb-patches mailing list