Building anything with clang -g associates symbols to addresses, but not to file/line, which is necessary to do anything useful in a debugger. (Except when it does) Reproducible: Always Steps to Reproduce: example: $ clang -o main -g -x c - <<< 'int main(){}' $ gdb ./main (gdb) start (gdb) step Attached is a patch to revert the faulty commit.
Created attachment 316731 [details, diff] make debug information usable again
Thanks for the report/test case/upstream link/patch! I've added the patch to 3.1-r1 ebuild (-9999 should get a fix upstream by itself)