-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
ARM LDR instruction doesn't sets mem.lshift in the detailed struct #576
Comments
is this report for "master" branch or "next" branch? |
I always use next in r2
|
here is the disasm output of your instruction. what is wrong??
|
How are you accessing the shift value? Because for me: mem.lshift is 0
|
Test case in C:
the output is 0 |
Oh i see your code is doing op->shift.type and .value ... isn't the mem.lshift suposed to be handling this? isnt bypassing the .mem union a design flaw? |
currently mem.lshift is for other thing. yes looks like this should be reimplemented so the shift only involves the memory operand. |
which is the purpose of the current shift field? this change must be done before the next release, when do you have plans for this to happen?
|
will do this soon |
Awesome 👍
|
there is no need to fix anything, as you are looking into the wrong info. see the code below:
the output is:
|
Ok thanks. r2 code was updated with this. sorry for the confussion |
See radareorg/radare2#3893
The value of
insn->detail->arm.operands[1].mem.lshift
should be 2 and it is 0The text was updated successfully, but these errors were encountered: