Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » "cannt find a source file at C:/repo/*****/crt/crt_0.c" error when running gdb in eclipse("cannt find a source file at C:/repo/*****/crt/crt_0.c" error when running gdb in eclipse)
"cannt find a source file at C:/repo/*****/crt/crt_0.c" error when running gdb in eclipse [message #1718985] Mon, 04 January 2016 04:42 Go to next message
Eclipse UserFriend
hello,everyone,there is a mistake when using gdb to debug,it said :

" Can't find a source file at "C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c" Locate the file or edit the source lookup path to include its location."

and the problem is that the path "C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c" is doesnt exsit on my computer,there is no "C:/repo" dir on my computer.how to fix it, thank you in advance!
Re: "cannt find a source file at C:/repo/*****/crt/crt_0.c" error when running gdb in ecli [message #1719051 is a reply to message #1718985] Mon, 04 January 2016 12:35 Go to previous messageGo to next message
Eclipse UserFriend
It's not an error. GDB (Eclipse, really) is trying to display the source for crt0_c.c but can't find it. This only happens when you step into a function in crt0_c.c or when something went wrong within it which would otherwise terminate the program.

Are you stepping into this function (crt0) for a reason? If so, use the assembly view as you've been offered or go find the source for it and tell gdb (via Eclipse) where it is. Use the Source tab in debug configuration dialog

http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.cdt.debug.application.doc%2Ftasks%2Fcdt_t_run_dbg.htm
http://help.eclipse.org/mars/topic/org.eclipse.cdt.debug.application.doc/tasks/cdt_t_run_source.htm?cp=71_4_0_0_6m

If you didn't really mean to be inside the code for crt0_c.c then you can press the up arrow that bends toward the right in the Debug view tool bar and it will take you back to your code (the preceding call, actually). If you don't want these messages then don't step into library routines (with the 90 degree down arrow). Step over them instead (use the curved downward pointing arrow).


icon14.gif  Re: "cannt find a source file at C:/repo/*****/crt/crt_0.c" error when running gdb in ecli [message #1719906 is a reply to message #1719051] Tue, 12 January 2016 22:45 Go to previous message
Eclipse UserFriend
thank you for your reply! i got it, you are right, thanks again!
Previous Topic:uint32_t 'could not be resolved' and template inheritance issue.
Next Topic:Unsuccessful with JNI Implementation
Goto Forum:
  


Current Time: Sun Jul 13 20:12:41 EDT 2025

Powered by FUDForum. Page generated in 0.03845 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top