CKB VM Debug Utils
Utilities aiding CKB VM debug, including the following components:
- gdb remote debugging support
- standard IO components, so you can debug with printf as you wish
How to use it
While this library contains components to plugin to your CKB VM runtime, we also prepare a bare metal binary showcasing how to use the components. Notice for now this binary only runs simple RISC-V programs, it doesn't support syscalls used in CKB. Later we might combine this with ckb-standalone-debugger to create a unified debugging experience for CKB.
;
) {
;
for; ; ) {
);
}
;
}
) {
;
;
for; ; ) ;
;
}
)
Now CKB VM's debug server has been started, in a different terminal, we can launch gdb:
()
)
()
()
)
; ; ) {
()
);
()
()
As we can see, gdb works here.