If you look for a cross-platform IDE and debug environment, Eclipse is the best choice because it has a super feature: You can import source code from an executable programmer and debug a program, a feature that is ideal for customizing makefile projects without the need to change the project's existing results for free development and debugging.
Many ways to import source code,
1.project Explorer Panel, right-click menu to select the Import menu item.
2. In the Import dialog box, select C + +, in the expanded sub-selection, select C + + executable, then click Next.
3. Select the executable program that contains the debug information, then next, then click Finish, and the Debug message configuration box will automatically pop up.
4. Within this Debug configuration box, you can configure the GDB version and environment variables.
I am using the eclipse-cpp4.4 Luna version, the operating system is centos5.8
http://www.kxtry.com/archives/569
Eclipsecpp importing source code from an executable programmer and debugging