I'm developing asm plugin for radare2. I implemented disassemble function, so it is returning disassembled instruction using:
r_strbuf_set (&op->buf_asm, line);
Now, when I set asm.arch
to my new architecture I am able to see contents of line variable by typing pd
. However, before printing the disassembled program, I'm getting bunch of warnings saying:
WARNING: r_reg_get: assertion 'reg && name' failed (line 296)
This happens after my disassemble function finishes, for every instruction processed with my code. What might be the source of such an error? It seems to be unrelated to opcode structure, I'm filling and rather relate to register names. Is implementing anal plugin required, additionally to asm plugin? Usually I see both are available for supported architectures.