• Vincent Chen's avatar
    riscv: Add SW single-step support for KDB · edde5584
    Vincent Chen authored
    In KGDB, the GDB in the host is responsible for the single-step operation
    of the software. In other words, KGDB does not need to derive the next pc
    address when performing a software single-step operation. KGDB just inserts
    the break instruction at the indicated address according to the GDB
    instructions. This approach does not work in KDB because the GDB does not
    involve the KDB process. Therefore, this patch provides KDB a software
    single-step mechanism to use.
    Signed-off-by: default avatarVincent Chen <vincent.chen@sifive.com>
    Signed-off-by: default avatarPalmer Dabbelt <palmerdabbelt@google.com>
    edde5584
kgdb.c 11.2 KB