radareorg / radeco

radare2-based decompiler and symbol executor
372 stars 52 forks source link

Integration with radare2 #184

Open XVilka opened 6 years ago

XVilka commented 6 years ago

To edit something in r2, refresh the radeco view, same in reverse order. See https://github.com/radareorg/radeco-lib/issues/183 as an example.

@wargio @sivaramaaa @radare please help us with defining the interface/API

There is pad with discussion/plans: https://hackmd.io/s/rye7uWVE7#

XVilka commented 6 years ago

For the C output I suggest to use existing editor so it will be easier to provide all nifty features: https://github.com/google/xi-editor

XVilka commented 6 years ago

Or Neovim (then https://github.com/daa84/neovim-lib )

wargio commented 6 years ago

i would suggest to integrate a command like a did with pdd and then use e cmd.pdc=<cmdname> to choose what to call. For the apis themselves i dunno. it depends on what you want to integrate..

chinmaydd commented 6 years ago

Suggestions for APIs through r2 (and ofcourse JSON interfaces for all of them):

XVilka commented 6 years ago

@Vane11ope already started to work on the implementing visual panel pseudo-code integration: https://github.com/radare/radare2/commit/da93272db3f1fb0b879790cb0f8d922476969fde

XVilka commented 6 years ago

@sushant94 @chinmaydd @kriw @HMPerson1 I suggest this "client-side" part of radeco reside in https://github.com/radareorg/radeco

You can ditch old radeco code and create a new project structure instead.

XVilka commented 6 years ago

Related https://github.com/radareorg/radeco/issues/20

XVilka commented 5 years ago

@radare @wargio since you yesterday asked - please see this bug and corresponding pad. Please don't create duplicates.

XVilka commented 5 years ago

See also https://github.com/radare/radare2/issues/13257