-
Notifications
You must be signed in to change notification settings - Fork 52
Support offset/addr fields in aflj/afij and basic blocks #350
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
ping |
js/libdec/r2util.js
Outdated
@@ -262,10 +262,21 @@ export default (function() { | |||
var isfast = !r2pipe.bool('e r2dec.slow'); | |||
this.arch = r2_arch(); | |||
this.bits = r2pipe.int('e asm.bits', 32); | |||
function aflj() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Define this outside
js/libdec/core/functions.js
Outdated
@@ -26,9 +26,9 @@ var create_fcn_data = function(x) { | |||
return null; | |||
} | |||
return { | |||
offset: x.offset, | |||
offset: x.offset?? x.addr, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't better to invert?
js/libdec/core/functions.js
Outdated
name: x.name, | ||
calltype: x.calltype, | ||
calltype: x.calltype?? x.callconv, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
Looks like I never sent the comments. Sorry it's the stupid mobile github app. |
done. |
i have introduced some breaking changes in r2 structs and json objects. in this case offset is now named "addr" for function and basic blocks. im not sure if this is the most elegant way to handle that in r2dec, but that patch works with latest r2