• Qing Zhang's avatar
    LoongArch: Add basic KGDB & KDB support · e14dd076
    Qing Zhang authored
    KGDB is intended to be used as a source level debugger for the Linux
    kernel. It is used along with gdb to debug a Linux kernel. GDB can be
    used to "break in" to the kernel to inspect memory, variables and regs
    similar to the way an application developer would use GDB to debug an
    application. KDB is a frontend of KGDB which is similar to GDB.
    
    By now, in addition to the generic KGDB features, the LoongArch KGDB
    implements the following features:
    - Hardware breakpoints/watchpoints;
    - Software single-step support for KDB.
    
    Signed-off-by: Qing Zhang <zhangqing@loongson.cn>   # Framework & CoreFeature
    Signed-off-by: Binbin Zhou <zhoubinbin@loongson.cn> # BreakPoint & SingleStep
    Signed-off-by: Hui Li <lihui@loongson.cn>           # Some Minor Improvements
    Signed-off-by: Randy Dunlap <rdunlap@infradead.org> # Some Build Error Fixes
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    e14dd076
kgdb.c 18 KB