|
Re: follow-fork-mode child makes exception [message #668624 is a reply to message #668603] |
Fri, 06 May 2011 13:29 |
Marc Khouzam Messages: 357 Registered: July 2009 |
Senior Member |
|
|
You didn't mention which GDB version you are using, so I'm not totally sure what "follow-fork-mode" does in your case. However, the message "No source available for _kernel_vsyscall ()" happens when you interrupt a process in the middle of an operation, like when you attach to a running process.
So, my guess is that the "follow-fork-mode" tells GDB to replace the parent process with the forked process and attach to it immediately. When GDB attaches to the new processes, it interrupts it in the middle of an operation and you see the message you mention. If you resume execution, it should continue all the way to your breakpoint.
So, I don't think you are doing anything wrong, assuming you want to debug the forked process, instead of the parent.
Marc
P.S. In the next release of Eclipse, coming this June, you will be able to automatically debug a forked process and the parent process at the same time, using multi-process. Look for the CDT New and Noteworthy when it comes out.
|
|
|
|
Powered by
FUDForum. Page generated in 0.13093 seconds