Commit Graph

149 Commits

Author SHA1 Message Date
Greynad
6ecc34b2c0 add support for jb instruction in pseudo asm (#5818) 2016-09-21 16:04:21 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
pancake
496da56a9e Fix sys/ios-static.sh 2016-09-12 20:52:12 +02:00
pancake
46cec371db Fix asm.filter parse issue for m68k 2016-08-11 02:32:23 +02:00
sdlf
96858ac1e9 Some improvements for arm pseudo code (#5370)
* Fix logical typo scanning for separator

The test would only accept ] as a separator. This was ok for
expressions like:

  r2 = [pc + 8]

But would strip the terminating ) in:

  if (r1 == 0

* arm/pseudo: fix typo /halt/half

* arm/pseudo: fix spacing before byte/half

it is now consistent with the other instructions and
have a space after the '=' also consistent with vmov/vdif.

* arm/pseudo: fix ldr/str

The following str instruction:

  str r0, [r4, 0xc]

Would produce the broken pseudocode:

  [r4 + 0xc] = r0 + 0xc]

With this change we get the expected:

  [r4 + 0xc] = r0

We need to handle 2/3 parameter instructions
differently for ldr/str. By doing this the
special case checking for [ is no longer needed.

* arm/pseudo: add a couple of XXXXs variants

these were arbitrarily selected based on the sample
i have been looking at.
2016-07-25 05:16:51 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
Ahmed Mohamed Abd El-MAwgood
b31dd80724 Args/vars the last commit (#5245)
renaming afa, afv and afe to afvb afvr, and afvs respectively
making arguments analysis obeys e anal.vars
improving the json format for args/vars
fixing varsub to use the new comands for x86 and arm
fixing var commenting commands to use the new commands var configuration
2016-07-01 16:15:29 +02:00
Ahmed Mohamed Abd El-MAwgood
3bac42eda7 Improving variables on ARM (16, 32, 64) (#5146)
removing argument detection extension used in af now args are seperately detected by afCa
aa = af + afCa
using aliases as well as real registers
rewritten varsub
Fixing some of Arm esil and optimizing them for arg/var detection
2016-06-20 15:22:09 +02:00
pancake
1629dd2b64 Remove two unused fields in RAnalOp and some deadcode 2016-06-17 14:26:24 +02:00
pancake
24aec5be8c Fix all latest COVs 2016-06-07 10:03:04 +02:00
pancake
4f51606b6d More osx-ppc build fixes.. 2016-06-06 16:55:15 +02:00
Ahmed Mohamed Abd El-MAwgood
7f48af3332 re construction argument/var commands (#5082)
afa for base pointer arguments/vars
afe for stack pointet arguments/vaes
afv for registers
fixing the J and \0 suffix
using the right register indexer
fixng the negative offsets of afa
fixing the afa afe afv views of pdf
fixing errors in aa
fixing the stack bases arg/var
fixing the varsub
fixing afa*
fixing afat
making afx- space neutral
enabling register renaming at varsub
updating the built-in help
adding r_reg as dependency for r_parse
2016-06-06 00:33:42 +02:00
hummypkg
60a7e601cc add some missing MIPS pseudo instructions, fix others (#5022) 2016-05-27 16:12:27 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
hummypkg
9043c1faeb Allow local variable detection for mips (#4960) 2016-05-21 12:24:42 +02:00
hummypkg
a6bc0b39f5 Fix pseudo-code fro mult(u) - add mfhi, mflo, mul; implement ESIL mul op (#4943) 2016-05-18 15:58:04 +02:00
hummypkg
77a6d2a9f6 fix pseudo output for MIPS sw ... (xx) (#4941) 2016-05-18 14:15:28 +02:00
hummypkg
c54760269b Fix MIPS pseudo code for move op. (#4940) 2016-05-18 12:12:53 +02:00
Damien Zammit
632dccc217 Remove LIL_ENDIAN macro and configure option
TODO: Remove other endian cruft from:
- hashing algs
- judy
- squashfs
- grub
- tms320

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-06 10:21:55 +02:00
Ahmed Mohamed Abd El-MAwgood
f6c24f426f Adding support for handling sp registers at parsing 2016-05-05 15:48:00 +02:00
pancake
13c820a7c5 More old ppc mac fixes 2016-04-27 11:03:33 +02:00
pancake
8cd8ac3b0e Workaround to show fastcall args 2016-04-23 19:25:31 +02:00
pancake
280abd4f77 ARM can't hwstep by default 2016-04-22 10:15:22 +02:00
pancake
0dd92ebbf1 Add comments in pdc and arm.pseudo fixes 2016-04-22 10:15:17 +02:00
pancake
3dde2588ac Fix memory leak and spacing in parse.x86.vars 2016-04-21 23:18:36 +02:00
pancake
0012530df6 Simplify AND x,x,y esil on mips 2016-04-21 03:41:09 +02:00
Álvaro Felipe Melchor
cd85e12a31 fix some memory leaks 2016-03-31 23:01:02 +02:00
pancake
dc33b03011 Handle movk and movz in the arm64 assembler and pseudo disassembler 2016-03-17 17:26:08 +01:00
pancake
8a45a43a86 Initial import of the m68k.pseudo plugin 2016-03-15 12:29:53 +01:00
pancake
fba4d03fef Fix #4206 - Enhance asm.relsub for x86 2016-03-06 11:41:49 +01:00
pancake
9000fdf2f9 Fix #4192 - Fix crash with r2 -av810 -cpd - 2016-02-28 17:50:13 +01:00
pancake
c545af6fbf Honour asm.ucase with asm.filter on filtered local vars 2016-02-25 22:36:26 +01:00
Martin Heistermann
92c17e08c6 Fix a few MIPS pseudocode mistakes.
Special thanks to maijin in the #radare IRC for pointing out this
file to me.
2016-01-28 23:16:38 +01:00
pancake
1d8b761ca1 Various static and iOS related build issues are now fixed 2015-12-28 02:01:45 +01:00
Riccardo Schirone
065728c42d parse/p: fix asm.relsub when replaced string is longer than original
fix #3768
2015-11-27 20:37:19 +01:00
pancake
10f88801e5 Fix arm.pseudo crash 2015-11-19 23:18:22 +01:00
pancake
6027d6e44e Implement asm.relsub 2015-11-19 23:12:25 +01:00
pancake
065b887f79 Fix arm pseudo crash 2015-11-04 13:57:57 +01:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
Álvaro Felipe Melchor
3423bedc1d Fix covs 2015-10-01 18:36:46 +02:00
pancake
9232abe9e4 Fix iOS build 2015-09-24 18:35:35 +02:00
pancake
cd767ccaf4 Fix Android build 2015-09-24 03:36:06 +02:00
qnix
df4be2e01d 6502: pseudo disassembler
Indentation and copyright

indentation fixed, [] instead of *
2015-09-22 14:31:59 +02:00
pancake
5d0bdd4481 Enhacements to ease the iOS debugger development 2015-09-21 23:40:17 +02:00
pancake
7f91e7c252 Initial import of ppc.pseudo 2015-09-16 22:31:12 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
148ff0cfd1 Handle add.w in thumb pseudo 2015-09-07 17:43:23 +02:00
Jeffrey Crowell
6fe093552b fix crash in mips pseudo
be careful that what we read is actually an operand.

closes #2963
2015-07-17 00:36:17 -04:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00