Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » C / C++ IDE (CDT) » Eclipse 2019-06 looks for glibc source code(Can't find a source file at "/build/glibc-LK5gWL/glibc-2.23/libio/ioputs.c")
Eclipse 2019-06 looks for glibc source code [message #1810507] Mon, 12 August 2019 21:08 Go to next message
Missing Name Missing Name is currently offline Missing Name Missing NameFriend
Messages: 6
Registered: July 2009
Junior Member
When I press F5 to step into the next line, I get the following error:

Can't find a source file at "/build/glibc-LK5gWL/glibc-2.23/libio/ioputs.c"

It seems like Eclipse is looking for the source code for the glibc file.

Is this normal behaviour, and how can I fix this please?

TIA

Keith
Re: Eclipse 2019-06 looks for glibc source code [message #1810643 is a reply to message #1810507] Thu, 15 August 2019 05:32 Go to previous messageGo to next message
David VavraFriend
Messages: 1426
Registered: October 2012
Senior Member
Don't step into it?

If you have the source, then you can set the path to it in
Run --> Debug Configurations ... -> <the applicable launcher> --> Source tab
Or use the handy Locate File ... button as shown in your image.

The debugger is searching for the source starting at the root directory named /build.

This will make setting the path much harder.
Maybe you could use a symlink for /build.
Assuming of course, you actually have the code.

[Updated on: Thu, 15 August 2019 05:35]

Report message to a moderator

[SOLVED] Re: Eclipse 2019-06 looks for glibc source code [message #1810654 is a reply to message #1810643] Thu, 15 August 2019 09:24 Go to previous message
Missing Name Missing Name is currently offline Missing Name Missing NameFriend
Messages: 6
Registered: July 2009
Junior Member
Thanks for your reply David.

Yes this is the correct behaviour.

I'm running Linux Mint Mate 18 Sarah 64 bit.

F5 steps into a function

F6 steps over a function

F7 steps out of a function

So if the debugger is on a libc function like printf() and I press F5 the debugger will attempt to step into the C source code for printf().

This is what you want if you are debugging the libc library.

I've not had this happen before so maybe the previous time the glibc library was not compiled with debugging info enabled.

I just need to remember to use F6 so I don't try to step into any libc functions.

Obviously if I did want to debug glibc functions, then I need to install the source code packages, and the error message should go then.

Kind Regards,

Keith

[Updated on: Thu, 15 August 2019 09:26]

Report message to a moderator

Previous Topic:creating shared library from c source files generated from matlab
Next Topic:printf and scanf behave poorly in Eclipse 3.5 on Windows
Goto Forum:
  


Current Time: Tue Apr 23 09:10:09 GMT 2024

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

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

Back to the top