Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

radare2 doesn't always show indirect values #33

Closed
XVilka opened this issue Nov 17, 2012 · 1 comment
Closed

radare2 doesn't always show indirect values #33

XVilka opened this issue Nov 17, 2012 · 1 comment

Comments

@XVilka
Copy link
Contributor

XVilka commented Nov 17, 2012

On some instructions involving reading a value somewhere, radare2 conveniently displays the value next to the pointer, like this:

0xc0008714 98009fe5 ldr r0, [pc, #152] ; 0xffffffffc00087b4; => 0xc06b4308

It however doesn't do this for all instructions:

0xc0008700 a4a09f15 ldrne sl, [pc, #164] ; 0xffffffffc00087ac

Also, on arm, some other instructions involving pc might get some helpfulness from having the result shown, like in:

0xc00081b8 68008fe2 add r0, pc, #104 ; 0x68

It would already be interesting to have pc + 0x68 already displayed, but since on arm, reading pc returns actual instruction address + 8 (4 in thumb), it's even more interesting and avoids stupid mistakes. Here, the result is 0xc00081b8 + 0x68 + 8.

P.S. Moved from http://rada.re/y/bugs.php?bugs&s=view&id=72

@radare
Copy link
Collaborator

radare commented Dec 7, 2012

I have fixed this in Git. The arm code analysis engine needs still lot of work.

Thanks!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants