311 Commits

Author SHA1 Message Date
pancake
027f445fc5 Add disasm filtered/varsub/relsub in aoj 2017-12-22 13:19:02 +01:00
Tatsuyuki Ishi
cd0350ffa9 parse_x86_pseudo: Fix read overflow 2017-12-21 14:42:06 +01:00
Francesco Tamagni
9ac77fde8f Handle arm thumb/thumb2 pc-relative in relsub (#9047)
* Handle arm thumb/thumb2 pc-relative in relsub

- in thumb mode, PC is always 4 bytes ahead (even in 32-bit thumb2 instructions)
- the resulting pc value must be aligned to 4 bytes, by ignoring last 2 bits

* Fix style and portability
2017-12-19 10:13:17 +01:00
pancake
17b17d91c2 Fix #6618 - Better pseudo for LEA 2017-12-18 18:12:58 +01:00
pancake
e0deacc916 Fix last covs and better dalvik pseudo 2017-12-16 02:54:02 +01:00
pancake
fdb4c05612 Make VO rotate instead of toggle for asm.pseudo and asm.esil 2017-12-16 02:23:53 +01:00
pancake
a8dbba62e9 Enhance the Dalvik pseudo-disassembler 2017-12-16 02:09:42 +01:00
januschp
fc8a377ce6 Small enhencments of pseudo code translation following maijin's suggestions. (#9000)
pseudo code for leave is omitted as well as for pop rbp. Instead, simply
return is printed
2017-12-10 16:51:29 +01:00
januschp
2f28eb43c9 Fix leave and ret doesn't translate to pseudocode 2017-12-09 13:14:37 +01:00
Janusch
c4984523d4 imul with respect to 8, 16, 32 and 64 bit registers and memory addressing (#8974) 2017-12-06 21:48:37 +01:00
Anton Kochkov
3cf1cfcc6a Z80 pseudo makefile - fix a typo 2017-12-06 21:35:22 +08:00
Maijin
655d6e8f0e r_parse_plugin_t -> RParsePlugin 2017-12-06 11:12:13 +01:00
Anton Kochkov
d5f2e82c84 Fix plugin linking issues 2017-12-06 15:06:06 +08:00
mrpaja
4cc23b9b4c a short check reuses in the parse function the command definition instead of extending the x86 (#8965)
command list in the replace function. imul should now work correct if it
comes with only one operand
2017-12-06 00:52:34 +01:00
pancake
4262a96d3a Fix #8913 - asm.offless is now asm.immtrim, + fixes for pds 2017-11-30 00:14:08 +01:00
pancake
f709581526 Honor more asm. directives in pdr and pdR 2017-11-29 18:56:12 +01:00
Maijin
4bb5c15faa r_lib_struct_t -> RLibStruct 2017-11-10 13:38:05 +01:00
pancake
a97cb99afa mips zero pseudo disasm is no longer experimental 2017-11-10 08:07:05 +01:00
pancake
fe6bfce9e8 Implement anal hints for htons immbase 2017-11-09 12:57:51 +01:00
Anton Kochkov
1ebaad02dc Initial support for structure offsets 2017-11-02 00:54:41 +08:00
pancake
45c0981792 Aim to fix negative memcpy issue in rparse 2017-10-16 15:37:31 +02:00
pancake
a9f52dfbc1 More fixes for sys/ios-sdk.sh 2017-10-10 02:36:54 +02:00
pancake
19647e4d9e Enhance asm.pseudo for Dalvik 2017-09-27 03:49:14 +02:00
Xiangyu Zhu
d8817d782f fix pd for rip varsub of AT&T syntax (#8523) 2017-09-15 13:45:17 +02:00
pancake
62ce21e75f Support Vala as a language for -i 2017-09-04 06:03:37 +02:00
Fangrui Song
6b40816002 Fix immbase, ahi 2 => ahi b => binary, ahi 1 => ahi s => string (#8396) 2017-09-01 12:49:01 +02:00
Giovanni
2bcc05fa23 fixed missing break on switch (#8299)
* fixed missing break on switch

* Fixed missing `;`
2017-08-24 13:32:23 +02:00
Fangrui Song
27e8ead3a5 Fix a few warnings (#8144) 2017-08-08 11:34:53 +02:00
Giovanni
858dfea170 Fix #6411 - pseudo for AVR (#7978)
* avr.pseudo

* tabs and flavour
2017-07-20 21:36:26 +02:00
Guillaume Valadon
ea8adc48da Use void in prototypes (#7974) 2017-07-20 14:50:13 +02:00
Giovanni
ab221f8326 Implement pseudo for sh4 2017-07-20 08:20:19 +02:00
Marc
80d4b44b2e Fix random code style issues 2017-07-13 00:46:27 +02:00
pancake
abaf84d857 Fix last pending warnings 2017-07-11 17:54:22 +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
pancake
3e7c01e5e4 Implement asm.minvalsub variable 2017-06-28 01:29:04 +02:00
Lowly Worm
b5c0c01c6b fix the cov defect 2017-06-24 22:03:47 -07:00
Lowly Worm
f0faf8bbea fix crash in oob pseudo (#7815) (#7816)
* fix crash in oob pseudo (#7815)

* syntax error

* fixup from pancake comments

* fencepost

* final fixups

* fix scoping error
2017-06-24 15:29:25 -07:00
Sajjad Pourali
0967a976a5 remove unused variable + change type of typename (#7696) 2017-06-07 18:57:54 +02:00
pancake
90480d325b Fix last covs 2017-06-05 13:23:39 +02:00
Anton Kochkov
f4a2b07139 TCC - Saving types across sessions and add Arch/OS specific defines 2017-06-01 16:57:00 +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
715884816d improvements of asm.pseudo for x86 (jmp,test,cmp,etc..) (#7589)
* improvements of asm.pseudo for x86 (jmp,test,cmp,etc..)
* jne/jeq optimized and fixed swap
2017-05-25 01:09:34 +02:00
Giovanni
1602fa8025 Now working PPC pblr and fixed b/bc jumps (#7588) 2017-05-24 16:31:07 +02:00
Xiangyu Zhu
ad2cf6e58b bug in varsub in att syntax (#7552)
Sorry I only considered the case where a minus sign is before `oldstr`, actually this should be the correct way to handle that so arguments like `8(%rbp)` and `28(%rbp)` will work too.
2017-05-21 03:05:06 +02:00
Frefreak
642062d58e refine asm.varsub for att syntax and code refactoring (#7538) 2017-05-20 13:53:24 +02:00
Tobias Gross
a4b311ebac Fix lea instruction not displayed right (#7529) 2017-05-19 13:32:03 +02:00
pancake
98f03c1ff0 Fix varsub regression on intel syntax 2017-05-18 02:11:49 +02:00
pancake
21aa34726e Fix #7516 - Honor asm.syntax=att for x86 varsub and relsub 2017-05-18 01:01:34 +02:00