Commit Graph

2442 Commits

Author SHA1 Message Date
Nils Berg
f3a71ed7ba properly sign-extend parameters to SH bt/f instructions in analysis (#7879)
* properly sign-extend parameters to SH bt/f instructions in analysis

* add braces
2017-07-08 14:32:59 +02:00
Kenny MacDermid
e04b82059a Fix generated ESIL for AVR flags. (#7852)
A typo of `__generic_sub_update_flags_rr` meant that the generated
code contained the immediate as a register, resulting in the flags
not being set correctly.

After switching this to `_rk` the format of the immediate values were
still incorrect because they were being output as hex without the `0x`
prefix. This was changed to output decimal instead, as that matches the
format of the result value when doing operations like `cpi`. For
example:

    cpi r26, 0x2e
    46,r26,-,r26,0x08,&,!,46,0x08,&...

The format for the `__generic_add_update_flags` was also fixed, but
as there is currently no `_rk` version it doesn't affect anything.
2017-07-03 01:46:47 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
h4ng3r
5418e99fcf Fix some string formats for 32bits 2017-06-27 01:11:57 +02:00
Adrian Studer
c1cb93aaf8 set ptr and val to correct values (#7817) 2017-06-25 17:03:25 +02:00
Adrian Studer
c49f668099 fix 8051 addr11 and mov dir,dir (#7793) 2017-06-21 06:38:09 -05:00
xarkes
ca5a68ebb3 Adding files to meson + windows env refactor 2017-06-20 18:03:30 +08:00
Adrian Studer
673fa9636f Rewritten 8051 disassembler 2017-06-18 10:23:04 +02:00
pancake
5af3ec4b66 Fix last covs 2017-06-18 01:11:11 +02:00
pancake
33aab674f7 Implement axq 2017-06-17 02:48:25 +02:00
Sajjad Pourali
ba25be4934 commented unused variable (libr/anal/pin.c) (#7714)
* commnet unused variable (libr/anal/pin.c)

* Create pin.c
2017-06-11 02:13:19 +02:00
pancake
429740e5a1 Implement aerR and cmd.esil.ioer 2017-06-10 20:40:16 +02:00
pancake
37e08489bd Fix build and implement ?eg for gotoxy and ?ec for column 2017-06-10 18:37:56 +02:00
pancake
0ded60cd0c Implement cmd.esil.todo 2017-06-10 18:00:07 +02:00
pancake
470c183010 Initial work towards supporting a visual ESIL debugger VpOd 2017-06-09 19:12:20 +02:00
pancake
8da5d2b295 Fix esil pin implementation using r2 commands 2017-06-09 02:50:28 -11:00
Álvaro Felipe Melchor
2cc456fc76 Fix function detection with NOP (#7691) 2017-06-07 01:53:59 +02:00
Lennart Braun
e1dc11bccd Fix regression with capstone 3 (#7666)
The constant CS_MODE_MIPS2 is introduced in a patch for capstone-next
(added in 1c6ee8dd3a) and will not be available in capstone 3.
2017-06-03 18:18:05 +02:00
Roi Martin
d28cd0fe36 Remove trailing space 2017-06-03 14:43:31 +02:00
Francesco Tamagni
1c6ee8dd3a Honor cpu on anal_mips_cs and add/fix some mips64 instruction (#7643)
* Honor cpu on anal_mips_cs and add/fix some mips64 instruction
* Add mips2 capstone patch
* mips: add v2 cpu, remove 64v2, mips32/64 is default
2017-06-01 18:18:15 +02:00
Anton Kochkov
f4a2b07139 TCC - Saving types across sessions and add Arch/OS specific defines 2017-06-01 16:57:00 +02:00
Roi Martin
946b35f967 Fix issue #7311 2017-05-31 20:34:20 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
0596c1c08e Meson shlr libs 2017-05-30 18:38:19 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
Giovanni
1602fa8025 Now working PPC pblr and fixed b/bc jumps (#7588) 2017-05-24 16:31:07 +02:00
pancake
4bd1d0d9cd Introduce the anal->cmdtail and enhance anal.jmptbl with it
* Reduce false positives of switch tables detection
* Add flags for the jmptable, the cases and the bb using it
* cmdtail introduces some recursivity problems that may be fixed using the api more c
* Increased CMD DEPTH from 10 to 100
2017-05-23 23:55:22 +02:00
pancake
f5ec70a8f1 Fix help for /A 2017-05-22 01:08:54 +02:00
pancake
74971add35 Honor MMX and SSE op.family for x86.cs 2017-05-22 00:56:24 +02:00
pancake
df2015e64c Fix some covs memleaks in anal/sign 2017-05-20 23:35:49 +02:00
SkUaTeR
75626dde48 Implemented SAR using new esil command REPEAT (#7542) 2017-05-20 22:15:08 +02:00
pancake
815b9c0171 Copypaste z80 regprofile from gb 2017-05-20 12:16:02 +02:00
pancake
cdade1c93d Implement the new REPEAT keyword for ESIL 2017-05-20 00:18:57 +02:00
pancake
cda2454011 Fix #7498 - use after free in zignatures 2017-05-15 22:10:47 +02:00
pancake
f5948a9124 Fix #7495 - Avoid always-false conditionals 2017-05-15 12:53:05 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
pancake
a58e556c34 Fixes for capstone3 2017-05-10 22:53:31 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
pancake
ad54e9ddf1 Refix mingw32 build 2017-05-10 00:34:05 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
Rene Laemmert
f355ad66a1 honor retn <num> in esil x86 cs (#7457) 2017-05-09 12:43:58 +02:00
pancake
e0ea16c394 Honor cfg.log for analysis metadata (CC, ...) 2017-05-09 03:38:29 +02:00
radare
36dc6351cc Merge tms320c64x plugins into tms320, use e asm.cpu=c64x 2017-05-08 10:35:32 +02:00
radare
08429062f2 Fix inPLT check for function analysis 2017-05-08 03:51:36 +02:00
Francesco Tamagni
7f345ab70b Fix arm64 ESIL: pass the correct param to arm64_reg_width (#7423) 2017-05-06 00:03:58 +02:00
pancake
d0d235423a Remove asm.spacy and integrate the logic into asm.bbline when no fcn is found 2017-05-05 12:48:52 +02:00
mrmacete
031e7a36dd Add internal flags setting for esil_sub 2017-05-05 00:51:22 +02:00
pancake
0ac3477662 Use r_str_const to avoid dangling calling conventions in fcn->cc 2017-05-04 14:52:43 +02:00
Anton Kochkov
9e1b757abb ARM64 - fix ESIL pstate flags 2017-05-03 11:34:38 +02:00
rene
d15e2d2a63 fixes segfault in aetr 2017-05-02 17:43:37 +02:00