I'm using the remote GDB server configuration to debug some C++ code built using CMake.
When I debug on my local machine (always using CLion) everything works perfectly, but when I use the remote GDB server, it is still able to connect and stop at breakpoints, but not in header files. In particular some header files will signal an invalid brekpoint (saying that no executable code is associated with that file), others will say it is valid, but still never stop there (even though the code in that lines is being executed).
Does anybody know what could be causing this? Maybe I'm missing something.
Thanks in advance.