Skip to content

gdb and riscv64-elf-gdb don't render regs layout #224294

Open
@sicher

Description

@sicher

brew gist-logs <formula> link OR brew config AND brew doctor output

% brew gist-logs riscv64-elf-gdb
Error: No logs.

% brew config
HOMEBREW_VERSION: 4.5.2
ORIGIN: https://github.com/Homebrew/brew
HEAD: 6f39076b3c2251994419215279d0525ef667fc31
Last commit: 12 days ago
Branch: stable
Core tap JSON: 21 May 17:51 UTC
Core cask tap JSON: 21 May 17:51 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 8
Homebrew Ruby: 3.4.3 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.4.3/bin/ruby
CPU: octa-core 64-bit arm_firestorm_icestorm
Clang: 17.0.0 build 1700
Git: 2.39.5 => /Library/Developer/CommandLineTools/usr/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.5-arm64
CLT: 16.3.0.0.1.1742442376
Xcode: N/A
Rosetta 2: false

% brew doctor
Your system is ready to brew.

Verification

  • My brew doctor output says Your system is ready to brew. and am still able to reproduce my issue.
  • I ran brew update and am still able to reproduce my issue.
  • I have resolved all warnings from brew doctor and that did not fix my problem.
  • I searched for recent similar issues at https://github.com/Homebrew/homebrew-core/issues?q=is%3Aissue and found no duplicates.

What were you trying to do (and why)?

I am debugging a rp2350 (pico 2) with riscv64-elf-gdb and try to use the TUI registers layout.

What happened (include all command output)?

The registers window opens, but it is empty. When stepping though the program, it seems the window updates, but only with trash. I have tried refreshing the TUI, tried various terminal settings, different terminal applications, and turning off styling.

Image

What did you expect to happen?

I expected gdb to show register contents in the registers window.

Step-by-step reproduction instructions (by running brew commands)

% brew install riscv64-elf-gdb
% riscv64-elf-gdb program.elf

...
(gdb) layout regs

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions