X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 8 Dec 2006 16:06:42 -0500 Message-Id: <200612082106.kB8L6gBW001006@envy.delorie.com> From: DJ Delorie To: Gordon DOT Schumacher AT seagate DOT com CC: djgpp AT delorie DOT com In-reply-to: (Gordon DOT Schumacher AT seagate DOT com) Subject: Re: Profiling with -pg and arguments to main() - GCC 4.1.0 References: Errors-To: nobody AT delorie DOT com > So I'm not quite sure where to go from here in debugging... ideas? Disassemble your main.o and see if the stack is getting corrupted. Profiling adds code to the beginning of each function to record the call graphs, usually with a call to _mcount. Stepping over that and watching bp/sp might give some clues.