From: Danny S. <dan...@cl...> - 2007-06-15 01:19:12
|
> -----Original Message----- > From: min...@li... > [mailto:min...@li...] On Behalf > Of Brandon Sneed > Sent: Friday, 15 June 2007 12:45 p.m. > To: MinGW Users List > Subject: Re: [Mingw-users] gcc 4.2 w/ gdb issue > > > > On Jun 14, 2007, at 5:35 PM, Pedro Alves wrote: > > > > When gcc sees that it is compiling a function called main, > it inserts > > an invisible call into __main on main's entry, so that the global > > ctors > > are run before any user code in the body of main. What > you're seeing > > may be an interaction with that. > > > > Cheers, > > Pedro Alves > > > > > > interesting! thanks for the heads up. one thing i did forget to > mention is that when its in the form of: > > int main(int argc, const char * argv[]) > > argc has some astronomical value and argv[] is jibberish. > > >From my experience global ctor's often muck up debug of main. Maybe it would help if __main and _do_globl_ctors were not stripped of debug info? Danny > > B > > -------------------------------------------------------------- > ----------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > MinGW-users mailing list > Min...@li... > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users > |