Hello,
I am new to development in Eclipse/CDT, and not very experienced with gcc/gdb.
My project (a shared library) is built in Eclipse by using SCons. The generated .so is at the end of the SCons script copied to an other place (maybe it's an important point).
My application is so a plug-in that the user must load in the host application. So I want to launch the host application, load my plug-in/library, and then attach the debug session to the host application (I think that's what I am supposed to do).
I created a debug configuration. I chose "C/C++ Attach to Application" to create my configuration. In the main Tab, I set my Project, the Build Configuration (calling the SCons script), and for "C/C++ Application", I put the path to the host application.
But that doesn't work. Maybe because of the location of the generated .so. In the Builder Settings, the Build Location is ${workspace_loc:/myProjectName}. I don't understand this syntax, even if I understand workspace_loc stands for my project root. Anyway, iot isn't related where the SCons file generates the .so. Maybe that's the source of the problem ?
Thanks for your help. The Eclipse documentation is pretty porr about these points.
Update : I get the following error : ptrace: Operation not permitted.