469,951 Members | 2,295 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,951 developers. It's quick & easy.

How to debug the exec process in gdb?

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
1 3651
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.

Similar topics

4 posts views Thread by Alan Walkington | last post: by
1 post views Thread by Jimmy Jim | last post: by
1 post views Thread by Hal Vaughan | last post: by
2 posts views Thread by uwnewsgroup | last post: by
3 posts views Thread by Lingyun Yang | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.