[Bug tdep/34519] RISC-V: GDB crashes when disassembling elf32-bigriscv produced by -mbig-endian, and remote PC is byte-swapped
tromey at sourceware dot org via Gdb-prs <[email protected]>
| Newsgroups | gmane.comp.gdb.bugs.discuss |
|---|---|
| Message-ID | <[email protected]/bugzilla/> |
https://sourceware.org/bugzilla/show_bug.cgi?id=34519 --- Comment #4 from Tom Tromey <tromey at sourceware dot org> --- (In reply to liu xu from comment #3) > > Could you try the gdb 18 pre-release or git master? > I have reproduced a RISC-V big-endian remote debugging register endian issue > with GDB 18.0.90. > Offline GDB disassembly works correctly and GDB recognizes the file as > elf32-bigriscv. Ok, it sounds like upgrading gdb fixed the originally-reported bug. > This suggests the RISC-V big-endian remote register path is applying the > wrong byte order for register packets. Can you "set debug remote 1" before the "target remote"? This will show a log of the remote protocol traffic. Maybe from this we can see if the bug is in gdb or the remote. -- You are receiving this mail because: You are on the CC list for the bug.