________________________________ From: Branislav Brzak Sent: Tuesday, June 20, 2023 1:46 PM To: gdb-patches@sourceware.org Cc: Dragoslav Sicarov ; Djordje Todorovic Subject: [PATCH 0/1] riscv: Ensure LE instruction fetching Currently riscv gdb code looks at arch byte order when fetching instructions. This works when the target is LE, but on BE arch it will byte swap the instruction, while the riscv spec defines all instructions are LE encoded regardless of system memory endianess. Branislav Brzak (1): gdb/riscv: Ensure LE instruction fetching gdb/riscv-tdep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)