Forum Topic - Momentics skips to next breakpoint when trying to step into libc function:
   
Momentics skips to next breakpoint when trying to step into libc function  
I am trying to debug an application in Momentics and everything seems to be working fine except for one instance: when I
 get to a line containing a function from libc.so such as memcpy and click Step Into. the program continues executing as
 if I pressed Resume. If there is a breakpoint somewhere it stops at that breakpoint, otherwise it continues executing 
until program end. 
I have seen that this might be a problem due to Momentics not being able to load library symbols. However, for libc I 
have in my search paths libc.so.5 and libc.so.5.sym
Both have debug symbols, checked with objdump --syms
Momentics automatically loads libc.so.5.sym and the name of library does not correspond with its SONAME, and I thought 
this would be issue.
However, I've renamed  libc.so.5.sym to  libc.so.5 so that SONAME should be ok and I still have the same problem.
Please help me solve this issue, it would be ok even if Momentics just did a Step Over instead of trying to go into the 
function when clicking Step Into
Re: Momentics skips to next breakpoint when trying to step into libc function  
Likely memcpy is inline function (compiler optimization to make it fasr) - there is some option you can do to prevent 
inlining something like -fnobuiltin (please google i don't remember exact name) 
Even if its not - you don't have code for libc so you need to do step instruction mode to go over assembly, unlikely it 
will help you
Re: Momentics skips to next breakpoint when trying to step into libc function  
Yes, I don't really need to do debugging inside libc, but it is annoying in cases such as:
my_function(some_string.c_str());

Since c_str() is called, when I want to step into my_function to debug it, Momentics will first go inside c_str() and 
behave like I have described in my original post
Re: Momentics skips to next breakpoint when trying to step into libc function  
In eclipse you can hold ctrl hover over function and press F5 to step in selected function (I am not sure of shortcut 
what step in shortcut but you need to ctrl hover the function).
If this does not work split into 2 lines

a(
   b()
);

if you step over b() first it should go back to line where a is and you can step in