Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:42 Go to next message
sailor sailor is currently offline sailor sailorFriend
Messages: 2
Registered: January 2016
Junior Member
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 17:35 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
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] Wed, 13 January 2016 03:45 Go to previous message
sailor sailor is currently offline sailor sailorFriend
Messages: 2
Registered: January 2016
Junior Member
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: Sat Apr 20 00:09:57 GMT 2024

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

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

Back to the top