GDB can't access/step into file for debugging

819 views Asked by At

I'm trying to debug a piece of code, but GDB seems to be completely unable to read a specific single file. Any breakpoint inside that file or with content that refers to that file (like instantiating a class from that file) is skipped immediately upon reaching.

From what I could gather on Google, this is a bug that appeared first in GDB in the early 2000s, disappeared on 2005 but still happens somewhat rarely, and has no documented solution.

This is the affected file and this file and it's header(with only declarations) are the only files from this project that can not be accessed with GDB.

The project is being compiled using CMake and is using the flags -g3 -O0, so I think there are no missing debug information.

I'm using GDB via my IDE, CLion 1.0.3, but using the terminal renders the same problems.

0

There are 0 answers