By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,835 Members | 1,094 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,835 IT Pros & Developers. It's quick & easy.

How to debug the exec process in gdb?

P: 1
Hi, Im using gdb for debugging my application..
I was able to debug child process(when fork comes) .. and in child process we have an exec call...
So the problem is, when the control come to exec , the exec process is executing at a time...
I could not debug the exec. process...
So, is there any way to debug the exec process
Sep 21 '07 #1
Share this Question
Share on Google+
1 Reply

pntkiran
P: 16
Hi Bibek4u,
I am not sure but You can try the strace command.

$starce ./outputfile
likewise your source file is tmp.cpp and output file is tmp on current directory.
$strace ./tmp

The output of strace command will help you.
Cheers

Hi, Im using gdb for debugging my application..
I was able to debug child process(when fork comes) .. and in child process we have an exec call...
So the problem is, when the control come to exec , the exec process is executing at a time...
I could not debug the exec. process...
So, is there any way to debug the exec process
Sep 22 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.