其他插件
Write a debugger plugin
Adding the debugger registers profile into the shlr/gdb/src/core.c
Adding the registers profile and architecture support in the libr/debug/p/debug_native.c and libr/debug/p/debug_gdb.c
Add the code to apply the profiles into the function
r_debug_gdb_attach(RDebug *dbg, int pid)
If you want to add support for the gdb, you can see the register profile in the active gdb session using command maint print registers
.
More to come..
Related article: http://radare.today/posts/extending-r2-with-new-plugins/
Some commits related to "Implementing a new architecture"
CR16: https://github.com/radare/radare2/pull/721/ && 726
Implementing a new pseudo architecture
This is an simple plugin for z80 that you may use as example:
https://github.com/radare/radare2/commit/8ff6a92f65331cf8ad74cd0f44a60c258b137a06
最后更新于
这有帮助吗?