Search code examples
c++eclipsedebuggingeclipse-cdt

Eclipse CDT "step into" doesn't work


I set up a breakpoint, and when I run the program in debug mode, and click "step into" when it reaches that breakpoint, it doesn't step into it.

Why?

EDIT: I'm compiling with these flags:

-Wall -pedantic -pedantic-errors -Wunused -Wunreachable-code -g -ggdb

EDIT 2: When I turn on the instruction stepping mode and immediately afterwards step into the function that I marked with a breakpoint, and then repeatedly call "step into", I get this:

No source available for "Indexer::index() at 0x8054de6" 

Solution

  • I fixed it, there was a problem with my makefile...

    I was missing this:

    %.o: %.cpp %.h
        $(CC) -c $(CFLAGS) $<