Skip to content

[lldb] Incorrect RISC-V register values displayed #121712

@patryk4815

Description

@patryk4815

LLDB for some reason display wrong register.

This issue occurs when running the same program on an ESP32-C3 (a simple blinking LED application).
Specifically, the sp register, along with other registers, shows a value different from what is reported in the g packet.

LLDB (invalid):
Image

GDB (good):
Image

Additional note: After switching to thread 2, the register values are displayed correctly.

Environment:

  • target esp32-c3 (riscv32)
  • Open On-Chip Debugger v0.12.0-esp32-20241016 (2024-10-16-14:17)
  • lldb version 19.1.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    lldbquestionA question, not bug report. Check out https://llvm.org/docs/GettingInvolved.html instead!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions