total view debugger - debugging a process thats forked from a startup process at launch

111 views Asked by At

I have application that has two executables. One that we launch and it forks n instances of the other.

Now I have to debug the second tsk file at launch. I can do it later using the attach to process option. But during launch, there seems to be some memory stuff that I need to debug.

Is there a way to do this.

1

There are 1 answers

0
Chris On

If you link your program with the dbfork library, totalview should automatically attach to the forked process.

See “Linking with the dbfork Library” contained in the “Compilers and Platforms” Chapter of the TotalView Reference Guide.