Re: -fprofile-arcs and gcov: data without exit()

2005-10-12 Thread Nathan Sidwell
Joe Buck wrote: On Tue, Oct 11, 2005 at 06:01:07PM +0100, Nathan Sidwell wrote: call __gcov_flush It seems you could just invoke that function from gdb, and not change the program at all, right? that's a neat idea :) nathan -- Nathan Sidwell:: http://www.codesourcery.com ::

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Joe Buck
On Tue, Oct 11, 2005 at 06:01:07PM +0100, Nathan Sidwell wrote: > Astroman (sent by Nabble.com) wrote: > > I am working on a piece of software that never exits and I am trying to > > use -fprofile-arcs and gcov to gather coverage data on it. > >The code looks like this: > >int main(){ > > whil

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Nathan Sidwell
Astroman (sent by Nabble.com) wrote: I am working on a piece of software that never exits and I am trying to use -fprofile-arcs and gcov to gather coverage data on it. The code looks like this: int main(){ while(1){ foo(); nanosleep(50); } } This is a child process that as

Re: -fprofile-arcs and gcov: data without exit()

2005-10-11 Thread Richard Guenther
On 10/11/05, Astroman (sent by Nabble.com) <[EMAIL PROTECTED]> wrote: > > I am working on a piece of software that never exits and I am trying to use > -fprofile-arcs and gcov to gather coverage data on it. > The code looks like this: > int main(){ >while(1){ > foo(); > nanosleep