Commit graph

29 commits

Author SHA1 Message Date
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
pancake
d41b577106 Fix #5924 - r_flags -> r_flag 2016-10-27 01:07:58 +02:00
pancake
1f2f3f2394 Honor varsub and relsub with asm.ucase for parse.arm 2016-10-18 01:49:32 +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
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +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
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
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +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
dc33b03011 Handle movk and movz in the arm64 assembler and pseudo disassembler 2016-03-17 17:26:08 +01:00
pancake
10f88801e5 Fix arm.pseudo crash 2015-11-19 23:18:22 +01:00
pancake
065b887f79 Fix arm pseudo crash 2015-11-04 13:57:57 +01: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
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
pancake
a04ead741a Enhace the ARM Thumb pseudo disassemble 2015-07-09 02:00:16 +02:00
jvoisin
6ea8a866f6 Fix two coverities 2015-06-12 23:19:14 +02:00
Judge_Dredd
fa57bfed27 fix CID 1297227, 1297226 2015-05-09 10:40:45 +02:00
pancake
8f82e674a2 Lot of enhacements for Thumb-ESIL decode and emulation
* Added [*] and =[*] esil opcodes

Conflicts:
	libr/anal/p/anal_arm_cs.c
	libr/parse/p/parse_arm_pseudo.c
2015-05-06 02:33:48 +02:00
pancake
c1e6553873 Fix movt esil and pseudo Thumb instruction 2015-05-06 02:25:00 +02:00
pancake
08c859d18c A bit better thumb pseudo decompile and analysis 2015-05-05 21:35:49 +02:00
pancake
829db39c33 Fix some arm thumb decompilation output 2015-04-21 19:21:52 +02:00
jvoisin
f7a23403e5 Add more arm pseudo 2015-01-16 02:47:03 +01:00
jvoisin
8ac1616daf Fix some coverity issues 2015-01-14 02:53:34 +01:00
pancake
c61368a0f3 Add support for asm.pseudo and asm.varsub for ARM and ARM64 2015-01-11 01:48:20 +01:00