163 Commits

Author SHA1 Message Date
pancake
0af4092ee4 More fixes for the emscripten build 2017-01-29 23:54:10 +01:00
Anton Kochkov
257ff5c2c7 Limit the scope for *mask() in PPC 2017-01-29 23:18:24 +03:00
Giovanni
e005a3c4fc Bad key length fix for des-ecb & patched building issues (#6602)
* Bad key length fix for des-ecb

* fixed bad char
2017-01-29 00:50:45 +01:00
Álvaro Felipe Melchor
bce5edfae3 Fix some warnings in parse_ppc_pseudo.c 2017-01-28 17:35:00 +01:00
Giovanni
1da79cf791 [MIPS] Patched nonspaced instructions (like syscall) 2017-01-28 12:53:21 +01:00
Giovanni
9ae6280dac PPC pseudo bad parse due missing uppercase letters & PPC emu (due mistake) (#6573) 2017-01-24 18:52:48 +01:00
Giovanni
a0c7ae8131 Implement asm.pseudo for PowerPC
* Added most of the standard ppc instructions, missing some altivec and complex instructions
* fixed rot instructions.
* Fixed inv_mask[32/64]
2017-01-24 17:07:11 +01:00
pancake
33f7ef8ede Fix #6144 - asm.capitalize do not uppercase locals 2016-11-07 05:21:49 +01:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
Giulio De Pasquale
69ecf6f528 Added early returns (#6002) 2016-10-20 18:58:57 +02:00
pancake
1f2f3f2394 Honor varsub and relsub with asm.ucase for parse.arm 2016-10-18 01:49:32 +02:00
pancake
22dddd9704 Fix #5975 - Honor asm.varsub and asm.relsub with asm.ucase 2016-10-18 00:55:10 +02:00
Álvaro Felipe Melchor
f807f13fca Fix relsub for arm and esil 2016-10-01 12:05:32 +02:00
pancake
bfbc5c2f7f Fix #5874 - Implement asm.relsub for arm.cs 2016-09-29 11:25:18 +02:00
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