Bug 158591 - gdb prints "No symbol 'xxx' in current context" when debuging on riscv64
Summary: gdb prints "No symbol 'xxx' in current context" when debuging on riscv64
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: Other Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords:
Depends on:
Blocks:
 
Reported: 2023-12-08 05:42 UTC by Sakura286
Modified: 2024-01-29 02:43 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sakura286 2023-12-08 05:42:33 UTC
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
Comment 1 Sakura286 2024-01-29 02:43:30 UTC
Since '--gsplit-dwarf' is broken on riscv64, passing '--disable-split-debug' to autogen.input solves this problem.