Skip to content
Commit ae14cde6 authored by Bernd Edlinger's avatar Bernd Edlinger
Browse files

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: default avatarAndrew Burgess <aburgess@redhat.com>
parent 5966e2eb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment