Hi pancake,
On Sun, 2010-06-06 at 23:17 +0200, pancake wrote:
> x86.pseudo is not a disassembler.
>
> Let's explain..
>
> asm.arch is the eval variable used to define the plugin name to be used by
> the r_asm backend (and others like r_reg..)
>
> asm.parser is used to select a parser backend, this is used for example to
> "translate" cpu opcodes into evaluable expressions:
>
> mov eax, 33 --> eax=33
>
> the x86.parser is used for this.
>
> You can read an example about how to use it in libr/core/cmd.c (find
> 'r_parse')
>
> The way to disassemble x86, is by doing: 'asm.use("x86")' in python. There's
> also x86.nasm and x86.bea (in r2-extras)Aaaaaah! Thanks you, it's working ok now :) > The list() method has been recently deprecated in order to use iterators. > there's a linked list of plugins in asm.plugins you should be able to iterate > over it like this: > > for p in asm.plugins: > print p.name > The plugins property/list/whatever is not working for me: >>> from r2 import r_asm >>> a = r_asm.RAsm() >>> for x in a.plugins: ... print x.name ... Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'PySwigObject' object is not iterable >>> print a.plugins <Swig Object of type 'RList *' at 0x82644f8> >>> list(a.plugins) Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: 'PySwigObject' object is not iterable So, it seems that there is some problem with RLists. > The debugger API is still under development. So all the documentation is in > the sauce :) > > The python debugger code can be found in r2w, there's one in C at > libr/debug/t/main.c > > this is a test program to check if debugger works. What basically does is: ... I'm experimenting with the debugging API and I will let you know when I have something that works or for clearing some more questions :) Thanks you! Joxean Koret
signature.asc
Description: This is a digitally signed message part
_______________________________________________ radare mailing list [email protected] http://lists.nopcode.org/listinfo.cgi/radare-nopcode.org
