aboutsummaryrefslogtreecommitdiff
path: root/sim/igen
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2024-04-12 08:55:11 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2024-04-15 10:20:50 +0200
commitae14cde6fd2c527c407a115fa1684c2002749552 (patch)
tree3570633578e0075fc8da3e9f87ee8535f8738a74 /sim/igen
parent5966e2eb3fed61ebe5c091a074b368b9238a68c1 (diff)
downloadgdb-ae14cde6fd2c527c407a115fa1684c2002749552.zip
gdb-ae14cde6fd2c527c407a115fa1684c2002749552.tar.gz
gdb-ae14cde6fd2c527c407a115fa1684c2002749552.tar.bz2
sim: riscv: Fix PC at gdb breakpoints
The uncompressed EBREAK instruction does not work correctly this way, and the comment saying that GDB expects us to step over EBREAK is just wrong. The PC was always 4 bytes too high, which skips one instruction at break and step over commands, and causes complete chaos. The compressed EBREAK was already implemented correctly. Tested by using gdb's "target sim" and single-stepping. Approved-By: Andrew Burgess <aburgess@redhat.com>
Diffstat (limited to 'sim/igen')
0 files changed, 0 insertions, 0 deletions