Description: I am working with the latest commit of the source code on an riscv64 machine. But gdb behaves not correctly. When I print a variable, such as xxx, gdb prints "No symbol 'xxx' in current context". I can't print the value of any variable. But other functions of gdbs are working fine, such as setting breakpoint and print stack. What should I do to fix this? Steps to Reproduce: On a riscv64 machine, build libreoffice with "--enable-debug". Then debug any .cxx file and print any variable. Actual Results: gdb prints "No symbol 'xxx' in current context" Expected Results: The value of the variable printed. Reproducible: Always User Profile Reset: No Additional Info: gdb version 13.2 gcc version 13.2
Since '--gsplit-dwarf' is broken on riscv64, passing '--disable-split-debug' to autogen.input solves this problem.