|
|
Re: Gdb remote debugging error: Can't fine source file at ... [message #1753073 is a reply to message #1753024] |
Wed, 01 February 2017 15:21 |
chanthy toeung Messages: 2 Registered: January 2017 |
Junior Member |
|
|
Thank you for the quick response.
0. Are you using Cygwin tool-chain for Windows or a tool-chain for embedded development built with Cygwin? Explain your setup.
I m using tool-chain for embedded dev. built with Cygwin. I installed a gcc cross compiler for a PowerPC target using Cygwin. After that I install the GDB cross debugger for PowerPC the same manner i built my GCC tool-chain.
1. I cannot switch to debug as a local C/C++ Application because I am debugging with an Emulator. I don't have a HW target yet, and the only way i figure out how it works with Eclipse is to use the "C/C++ Remote Application"
2. Check if your binary parser is Cygwin
I don't know how to check this, can you provide a hint?
3. Is your main() located in test.c and "Stop on startup at main" checked in your debug configuration?
Yes. I configured the debugger tab to stop at the "main" of my application.
4. Check what GDB is used in local setup, is it GDB from Cygwin?
In my configuration, i configured it to use "cross-gdb" from Cygwin.
5. As a workaround, you can always try the "Source" tab to define source lookup path manually.
I tried it, but it didn't work. However, i tried another workaround, when my Eclipse is connected with GDBserver, then i can manually specify my source file by using "Locate File" button. However, i find this workaround is not practical, and i would like to find a solution that can avoid manual step.
6. To observe how the paths are defined for each source file, open the Executables view and add your binary.
After adding my binary file, i can see that each source file are located in \cygdrive\<drive>\<path>, so I guess the problem is from my binary file, and not Eclipse?
|
|
|
|
Powered by
FUDForum. Page generated in 0.03315 seconds