(In reply to Matej Cepl from comment #4) > (In reply to Martin Li��ka from comment #3) > > Yes, it worked fine for me I would say. But as enabled -flto it broke > > debugging experience completely. > > Isn't it just a question of gdb catching up? Or perhaps bug in the SUSE > build of gdb? Do you know? No, issue is that py-* commands rely on stack layout how python objects are passed. It's done then in: Tools/gdb/libpython.py. > > > There's devel project: > > https://build.opensuse.org/package/show/devel:languages:python:Factory/ > > python3 > > Of course, I know about that, I meant, ���Show me the code!���, a repo with > suggested changes in it. It's simple, they have a configure option: %if %{with debug_build} BuildPython debug \ "--without-ensurepip --with-pydebug" \ "-O0" %endif # with debug_build Take a look at the Fedora spec file I linked in the first comment.