diff options
author | Vincent Chen <vincent.chen@sifive.com> | 2020-04-16 10:38:08 +0800 |
---|---|---|
committer | Palmer Dabbelt <palmerdabbelt@google.com> | 2020-05-18 11:38:12 -0700 |
commit | edde5584c7ab5d18b87f092fe6fe8a72590e7100 (patch) | |
tree | 62900d9ef5b9aae651ed7a5132d178339bac5d6f /arch/riscv/kernel/patch.c | |
parent | d96575709cc7056f34fdd5cdc16bcffe5bdb573d (diff) | |
download | lwn-edde5584c7ab5d18b87f092fe6fe8a72590e7100.tar.gz lwn-edde5584c7ab5d18b87f092fe6fe8a72590e7100.zip |
riscv: Add SW single-step support for KDB
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: Vincent Chen <vincent.chen@sifive.com>
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Diffstat (limited to 'arch/riscv/kernel/patch.c')
0 files changed, 0 insertions, 0 deletions