CVSROOT: /cvs Module name: src Changes by: gkoeh...@cvs.openbsd.org 2020/06/12 16:01:01
Modified files: sys/arch/powerpc64/include: db_machdep.h pmap.h sys/arch/powerpc64/powerpc64: db_memrw.c db_trace.c locore.S pmap.c syncicache.c trap.c Log message: Teach powerpc64 ddb to x, w, break, step, trace. Copy and adapt db_memrw.c from amd64, so ddb can read and write kernel memory. It can now insert breakpoints in the kernel text. Change __syncicache() to prevent an infinite loop when len isn't a multiple of cacheline_size. Get breakpoints and single-stepping to work. Single-stepping uses msr bit PSL_SE (single-step trace enable). Adapt db_trace.c db_stack_trace_print() from powerpc 32, but without all its features. For now, powerpc64 trace doesn't print function arguments and doesn't recognize traps. "go for it" kettenis@