Closed Wenzel closed 5 years ago
Hi,
I have a case here where I use r2pipe to script a debugger plugin for radare2 https://github.com/Wenzel/r2vmi/blob/master/examples/watch_syscall.py
r2pipe
radare2
What my script is doing:
r2 = r2pipe.open(r2_url, ["-d", "-2"]) r2.cmd('db {}'.format(hex(syscall_addr))) r2.cmd('dc') registers = r2.cmdj('drj') ...
The problem i'm facing, is that sometimes the drj command fails because the JSON returned is invalid.
drj
By investigating a bit the problem, i spawned an IPython shell right after r2.cmd('db {}'.format(hex(syscall_addr))), and i observed this behavior:
IPython
r2.cmd('db {}'.format(hex(syscall_addr)))
So sometimes r2pipe is not getting the right command output.
Any ideas ? Thanks.
It may be related to #54.
still?
@radare I'm not working on this anymore, so I can't tell if the is still there. You can close the issue if you want.
Hi,
I have a case here where I use
r2pipe
to script a debugger plugin forradare2
https://github.com/Wenzel/r2vmi/blob/master/examples/watch_syscall.pyWhat my script is doing:
The problem i'm facing, is that sometimes the
drj
command fails because the JSON returned is invalid.By investigating a bit the problem, i spawned an
IPython
shell right afterr2.cmd('db {}'.format(hex(syscall_addr)))
, and i observed this behavior:So sometimes r2pipe is not getting the right command output.
Any ideas ? Thanks.