Cannot debug godot with gdb/lldb

Godot version:

3.2-dev master compiled with 7f80c1dca8892cab4f4fe7a2daf6699755024f09

OS/device including version:

Arch Linux x64

gcc (GCC) 9.1.0 GNU gdb (GDB) 8.3

clang version 8.0.0 (tags/RELEASE_800/final) lldb version 8.0.0

Issue description:

GDB and LLDB didn't work to debug godot editor any more. The program can be paused with breakpoints but got lost when step into or step over randomly.

Tested with a Qt GUI project don't have such problem.

Steps to reproduce:

I can't step over from L1866 to L1876 as below

  • In VSCode Peek 2019-07-09 21-58

  • In QtCreator Peek 2019-07-09 22-46

Minimal reproduction project: