hi all
Please can you tell me that how can i debug a Daemon process using GDB debugger on freeBSD system.
suppose i want to debug following program
#include <stdio.h>
int main(void)
{
--- } some statements will come here
if(fork() == 0)
{
printf("\nchild\n");
--- } some statements will come here
}
printf("\nparent\n");
--- } some statements will come here
return 0;
}
you can modify the program if you want and send me all the commands which you type on the GDB debugger command prompt.
Please let me know if you want any other information.
thanks in advance