pancake
55b560d406
Fix warning in dcpu16 disassembler
2015-08-16 18:26:57 +02:00
pancake
def4329769
Fix #3081 - Fix LDR instruction for the ARM assembler
2015-08-13 03:12:12 +02:00
pancake
4beb0dc6a3
Add support for 'mov byte [reg], imm' for x86.nz
2015-08-11 14:15:13 +02:00
pancake
eb7d33e3d9
Remove dupped instruction in v810
2015-08-11 09:04:21 +02:00
pancake
0005fe73c3
Fix oobread in dcpu16
2015-08-09 12:39:11 +02:00
pancake
bbb90d5ce3
Fix #3041 - assemble 'mov edx, [rbp-4]'
2015-08-09 03:56:22 +02:00
Sascha Schirra
7c145226d2
Bugfix: movw/movt instructions are assembled to mov instruction
2015-08-03 12:06:55 +02:00
pancake
191fecab85
Fix RAsm build
2015-07-15 01:04:22 +02:00
David Kreuter
a8d7b8ea94
CID 1134732 Out-of-bounds access /libr/asm/arch/avr/format.c
2015-07-15 00:39:07 +02:00
Jonathan Neuschäfer
c07cf42a2e
asm_java: remove unnecessary "a->pc += op->size"
2015-07-13 01:48:29 +02:00
Jonathan Neuschäfer
ecf6792318
Fix #2927 and random code cleanups
...
- asm_dcpu16: remove an obsolete comment
It was obsoleted in 5285d1bdea .
- Indentation fixes
- fix a few typos
- remove "#define NEW_ESIL"
- move comment about r_bin_filter_name to the right place
- README.md: Add V810 to the list of supported architectures
- Also, de-duplicate LH5801
- Add attribution to randomart.c, fixes #2927
2015-07-12 19:20:36 +02:00
Jonathan Neuschäfer
523aa3af5c
add .version to all plugins
2015-07-12 19:05:33 +02:00
mrdanielps
a44d087e87
V810 fixes:
...
* Add system register names
* Fix xor and remove unused instructions
2015-07-11 22:42:32 +02:00
pancake
ab7c399b38
Fix monospace font issues on the material webui
2015-07-10 17:20:17 +02:00
pancake
146a3a64c7
Fix iOS build
2015-07-10 14:40:10 +02:00
mrdanielps
1eb7d865d2
V810: bugfixes
2015-07-08 21:10:05 +02:00
mrdanielps
dce2a1eb88
Add V810 support
2015-07-08 21:09:59 +02:00
pancake
6dc29e516a
Fix w32 ollyasm format strings for w32
2015-06-25 23:01:41 +02:00
Álvaro Felipe Melchor
1c7feb2240
Fix some infers
2015-06-20 17:33:09 +02:00
pancake
c0b1e5fad3
Fix iOS build
2015-06-04 04:30:48 +02:00
David Kreuter
ab538a170d
m68k_disasm: replaced macro by inline function to please coverity
2015-06-03 16:37:43 +02:00
Mauro Matteo Cascella
f7493773ec
Fix #2681
2015-06-02 17:44:10 +02:00
pancake
a793859d5b
Fix some COVs
2015-06-01 11:20:53 +02:00
Mauro Matteo Cascella
262066b450
Fix #2547 and #2658
2015-05-31 19:03:34 +02:00
pancake
add3ff9b2d
Add missing hppa files
2015-05-28 11:57:22 +02:00
pancake
f8384feb6b
Initial disassembler support for HP PA-RISC (from GNU binutils)
2015-05-28 11:24:31 +02:00
pancake
663cbb0455
Fix some warnings
2015-05-28 11:09:13 +02:00
pancake
4c84b3a2d5
Fix arm assembler null deref #2627
2015-05-27 10:18:21 +02:00
pancake
c21607030c
Document arm/thumb conditional branch instructions
2015-05-19 01:03:28 +02:00
pancake
b88ae16ffa
Fix #2585 - fix 64bit mov in x86.nz
2015-05-18 20:00:10 +02:00
Quentin Santos
d5c40be889
Fix signed char boundaries when assembling jump
...
Signed char can be between -0x80 and 0x7f. The offset in the jump must be
computed taking into account the instruction length.
2015-05-14 17:29:28 +02:00
pancake
0697103f7d
Fix #2536 - Implement ahS and fix ah in pd
2015-05-10 00:12:33 +02:00
pancake
bb76bb1794
Add asm.syntax=jz to convert je/jne into jz/jnz
2015-05-09 11:11:46 +02:00
Quentin Santos
9c30fbecba
Fix nz assembler on mov to a 16 bit register
2015-05-09 10:39:42 +02:00
pancake
9eadce52d9
Fixes for Tmb analysis and asm.describe
2015-05-08 04:10:19 +02:00
pancake
a17b78ad55
Fix mips assembler regression
2015-05-06 12:14:16 +02:00
pancake
dcd17a9165
mips assembler is now a bit more strict
2015-05-06 11:28:58 +02:00
Anton Kochkov
8f1b98be8f
Fix TMS320C55* tests
2015-04-19 03:42:19 +03:00
Anton Kochkov
1479aeca8e
Fix a few Coverity issues
...
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
pancake
997dda6e5b
Add support for iOS-simulator and static-OSX builds
2015-04-14 17:14:43 +02:00
pancake
2aecde26d2
Tons of free candy. See details below:
...
- Fix arm-thumb ESIL for the SUB instruction
- Handle Java imports as symbols in code analysis
- Invoke Java instructions reference the imports now
- Fix 71 crashes reported by jn
- Affected bin modules: elf, mach0, java, te, pe, dex
2015-04-13 00:57:32 +02:00
pancake
acd5e4b999
Fix dalvik<->dex class and method name resolutions
2015-04-12 05:13:51 +02:00
pancake
6ab06a15ba
Various fixes for DEX and Dalvik support
2015-04-11 04:33:37 +02:00
pancake
efc7ebff17
Add prgi and prgo commands to get consumed and generated bytes at gunzip
2015-04-03 03:20:04 +02:00
pancake
dbe0972610
Fix pd -x and pD -x : It can be heavily reworked.
2015-04-03 02:24:23 +02:00
Jeffrey Crowell
114ca3ed8f
fix some more warnings found with clang
2015-04-01 21:27:12 -04:00
kroemeke
04450503f3
Added je jg jge jne opcode descriptions.
2015-04-01 23:30:50 +02:00
Jonathan Neuschäfer
98daac0ecd
lh5801: use char[4] instead of const char* for mnemonics
...
This only saves around 200 bytes on the stripped .o file, so no big gain.
2015-04-01 03:07:00 +02:00
Jonathan Neuschäfer
df489343ca
lh5801: various fixes
2015-04-01 03:07:00 +02:00
condret
06576f0f2a
fix array-overrun in z80.cr
2015-04-01 01:27:00 +02:00
AntonDevil
78da2985e8
fix #2257 arm asm
...
There was type mismatch between declaration and definition
2015-03-30 11:57:34 +02:00
Jonathan Neuschäfer
f7c83918ac
Remove size_t from LH5801
2015-03-29 00:25:17 +01:00
Jonathan Neuschäfer
6a3362ea9a
Add a disassembler for Sharp LH5801 processors
2015-03-28 22:39:39 +01:00
Álvaro Felipe Melchor
f755d54d3e
Fix #2192 - lowercase tms320/c55x
2015-03-27 11:31:58 +01:00
pancake
6e52324885
Fix some more null derefs related to the rbininfo change
2015-03-25 17:29:38 +01:00
Álvaro Felipe Melchor
02185dc0ab
Fix segfault due to a double free in tms320/c55+
2015-03-24 23:39:43 +01:00
pancake
538dc3562b
Rename z80-cr to z80.cr (_cr for files) #consistency
2015-03-24 11:41:58 +01:00
pancake
f76b791b9f
More fixes for the Dalvik disassembly (absolute offsets and floating point const)
2015-03-24 11:11:54 +01:00
Asger Hautop Drewsen
43ba7e6518
Fix inc dec for 32 bit registers in x86_64
2015-03-24 10:23:37 +01:00
pancake
14aa79eac9
Better disasm+code analysis for Dalvik
2015-03-24 00:08:48 +01:00
pancake
2e32d05986
Fix another capstone build breakage issue
2015-03-22 16:49:29 +01:00
pancake
12ea9734b5
Fix about 15 more random COVs
2015-03-21 02:04:49 +01:00
pancake
515b2e77bc
Fix about 40 COVs related to memleaks and buffer overflows
2015-03-21 01:27:54 +01:00
condret
afa5bb3c42
fix some gb-related stuff
2015-03-19 23:45:24 +01:00
fenugrec
61f8e60e3c
ARM: rasm2: added lsls, lsrs opcodes
2015-03-17 22:18:55 +01:00
fenugrec
0f5f8f3837
ARM: rasm2: Fixed b<c> branch opcodes
2015-03-17 20:48:22 +01:00
pancake
bd58fe2450
Fix relative thumb branch assembler (ref #2193 )
2015-03-17 17:55:07 +01:00
pancake
33b519278a
Fix #2173 - handle hex values in some x86.nz instructions
2015-03-11 11:46:42 +01:00
pancake
f4ad6cd79d
Add /Af support for RAnalOpFamilyPriv for privileged instructions
...
- x86.cs only atm, capstone support is still wip
2015-03-08 22:09:59 +01:00
pancake
1a442ce3b4
Forbid 64bit ARM assembler, move handling code into arm.cs
2015-03-08 17:59:43 +01:00
pancake
39ead51cd9
Update capstone to next
2015-03-07 11:33:58 +01:00
pancake
56adb2533c
Fix some pdj issues and recover a bit of /p scroll
2015-03-06 01:14:09 +01:00
pancake
3a5600f7c5
Sync with latest capstone-next (fixes pkg-config issue)
2015-03-05 23:54:41 +01:00
Kamil Rytarowski
4b636346a4
Resolve warnings: array subscript is of type 'char'
2015-02-22 23:11:05 +01:00
Aaron Puchert
43f240520e
Rename x86.new assembler to x86.tab
...
This stands for "table lookup assembler".
2015-02-22 22:32:13 +01:00
jvoisin
370175873c
Improves a bit z80-cr
2015-02-21 21:54:12 +01:00
pancake
5c8b417cf2
Add mul/div opcodes for x86.nz assembler and fix osx build
2015-02-20 19:39:38 +01:00
pancake
dab15be84f
Add more spaguetti in x86.nz to support and and or
2015-02-19 14:39:01 +01:00
jvoisin
55f5c73008
Coverifix++
2015-02-19 12:59:13 +01:00
jvoisin
defd2d0e96
Coverifix
2015-02-18 13:05:37 +01:00
Fedor Sakharov
1c49aad91d
msp430: Fix some bugs
2015-02-17 19:55:10 +01:00
Aaron Puchert
bd8d245b13
Add two-byte opcodes and fix some issues in x86.new
...
Contains:
- Eliminated unnecessary parameter in readNumber
- Don't choose opcode if we don't have enough parameters
- Add ability to read numbered registers
- Such as FPU, MMX or SSE registers.
- Correctly assemble some spec-field encoded operations
- If we have a spec field specifying the operation and a
register-only operand, we have to move the operand first.
This is common for FPU instructions.
- Use size_t instead of int where appropriate
- Add tests for XMM registers
- Added all two-byte opcodes
- Add tests for new operations
- Separate flags for assembly and machine language
- Sometimes operations have two register-only operands and
we can't easily find out which to encode how. That's why
we now have flags describing what we expect in the assembly
and separate flags describing how to encode an operand.
This also makes the assembler code cleaner.
2015-02-15 13:32:50 +01:00
pancake
36ecbc21ff
Add ESIL support for MicroMIPS jraddiusp instruction
2015-02-13 18:15:06 +01:00
pancake
79f74da707
Fix invalid arm64 disassembly issue
2015-02-12 17:08:06 +01:00
Fedor Sakharov
f45fe40073
v850: Fixes SST.W opcode typo.
...
Fixes #2006
2015-02-12 16:58:40 +01:00
jvoisin
b8cdd7c0f7
Even more coverifix
2015-02-11 21:51:13 +01:00
jvoisin
123a77c022
Coverifix
2015-02-11 19:05:28 +01:00
jvoisin
5ad3afb628
Coverifix
2015-02-11 17:55:25 +01:00
jvoisin
d6cf98d9be
Make z80-cr pass more tests
2015-02-11 13:55:00 +01:00
Jeffrey Crowell
6b215beec0
fix build broken by a5f53eae05
...
remove unused var in config.c
2015-02-10 23:17:45 -05:00
pancake
a5f53eae05
Initial implementation of asm.features on x86.cs and arm.cs
2015-02-11 03:50:56 +01:00
pancake
dc75cb2320
Fix the rest of base64 warnings
2015-02-10 00:05:18 +01:00
pancake
6e00097f0c
Add some more ARM instruction descriptions
2015-02-09 15:35:17 +01:00
pancake
d2b7b8786d
Fix some uninitialized variables in the new x86 assembler
2015-02-08 21:25:02 +01:00
pancake
7b597ea874
Fix latest COVs
2015-02-08 00:30:25 +01:00
pancake
33fcd7fbcf
Enhacements for DEX sections and ignore methods at 0 (wip)
2015-02-06 18:53:11 +01:00
Aaron Puchert
55fb46e5e3
Assemble [esp] memory operands correctly
2015-02-06 02:03:02 +01:00
Aaron Puchert
f4b0e03374
Don't forget offset for scale*index w/o base
2015-02-06 02:03:02 +01:00
Aaron Puchert
95ad67a73e
Let parser read "int3" correctly
2015-02-06 02:03:02 +01:00
Aaron Puchert
67d5c28282
Don't crash when parsing operations without operands
2015-02-06 02:03:02 +01:00
Aaron Puchert
e393167227
Corrected mistakes with mov
2015-02-06 02:03:02 +01:00
Aaron Puchert
1efc66eec5
Better handling of number constants
2015-02-06 02:03:02 +01:00
Aaron Puchert
b0ae267c2c
Wrote tests for x86_new assembler
2015-02-06 02:03:01 +01:00
Aaron Puchert
4c0dd46abf
Assemble the memory operand [0x0] correctly
2015-02-06 02:03:01 +01:00
Aaron Puchert
95ee95fdc9
Fixed memory addresses as immediates
2015-02-06 02:03:01 +01:00
Aaron Puchert
3e5eae9ce0
Fixed issue #2014 for x86.nz
2015-02-05 17:27:50 +01:00
pancake
a1dd4e1d94
Fix w32 build (another x86.new regression)
2015-02-05 16:34:05 +01:00
pancake
3ce72d628e
Fix Android build (name conflicts with the new x86 assembler)
2015-02-05 16:22:13 +01:00
Aaron Puchert
0a2668d840
Wrote new x86 assembler
...
Supports only 32-bit for now and doesn't understand all mnemonics. And
we don't always choose the optimal opcode.
2015-02-05 16:05:20 +01:00
pancake
96257c4546
Fix Android build and some strict aliasing issues
2015-02-05 14:02:22 +01:00
pancake
383e225135
Fixes on top of the clang-warn-fix commit
2015-02-05 10:57:28 +01:00
Jeffrey Crowell
d4e0575d67
build on clang jenkins now
2015-02-05 10:57:21 +01:00
pancake
88378dba7e
Fix all warnings reported by the NDK (type-punned stuff)
2015-02-03 01:45:46 +01:00
condret
31a557289d
should fix #2010
2015-02-02 17:28:12 +01:00
jvoisin
7e70c4d144
Two coverifix and a fortune
2015-02-01 21:28:55 +01:00
Jeffrey Crowell
ead2bdcf50
Fix crash with negative length in whitespace
...
closes #1997
2015-01-28 12:04:21 +01:00
condret
c544b803f7
fix some esil-strings and foo
2015-01-28 00:04:43 +01:00
condret
2828ca508c
add alternative LGPL z80-disassembler
2015-01-27 18:33:03 +01:00
jvoisin
9681c6fcf7
More coverity
2015-01-25 14:35:46 +01:00
jvoisin
9174457d0f
Coverity++
2015-01-24 15:33:53 +01:00
Anton Kochkov
cee7d7cc17
Test if SDBs were created in libr/asm/d
2015-01-22 18:16:05 +03:00
pancake
05e1b556f8
Generate asm/d/mips and update sdb from git for 0.9.4
2015-01-19 18:48:53 +01:00
fenugrec
80ae9a70a9
SuperH: added more opcodes to anal_sh.c
2015-01-15 22:42:00 +03:00
fenugrec
d145cdd826
Fix SuperH anal_sh plugin
...
added a lot of instructions; WIP
2015-01-15 22:42:00 +03:00
fenugrec
7f1698864a
minor fixes to SH disasm output
2015-01-15 22:42:00 +03:00
jvoisin
8ac1616daf
Fix some coverity issues
2015-01-14 02:53:34 +01:00
pancake
c2663afb01
Fix asm.ppc.cs big endian issue
2015-01-13 03:43:56 +01:00
jvoisin
759e3b24b5
Fix two trivial warnings
2015-01-13 03:05:11 +01:00
pancake
4825bb815c
Remove psosvm from master repo (moved to radare2-extras)
2015-01-03 02:27:29 +01:00
Julien Nabet
164bbc7333
Some cppcheck reports fixed:
...
(warning) Logical disjunction always evaluates to true: regnum < 32 || regnum > 31
(style) Same expression on both sides of '||'
(style) Same expression on both sides of '&&'
(style) Expression is always false because 'else if' condition matches previous condition at line 180
2014-12-28 04:20:14 +01:00
pancake
f495b5031a
Handle ET_REL ELF relocs, asm.cpu for arm.cs: v8, mcortex
2014-12-28 03:53:39 +01:00
Andrew McDonnell
6fe4d603ab
Fixes other case for #1900 : mov ebx, junk
2014-12-26 19:32:00 +01:00
pancake
c253cc5d6f
Fix #1900 - The x86.nz 'mov' parser is a bit more strict now
2014-12-23 10:50:18 +01:00
pancake
15098999d2
Fix rep movsb and add retf/retn support for x86.nz assembler
2014-12-10 13:17:50 +01:00
pancake
0c91c7df62
Fix several bugs in the windbg and cris. thanks to coverity
2014-12-09 17:50:19 +01:00
pancake
2d81508caf
Fix jalx for mips.gnu and mips.cs
2014-12-09 02:21:58 +01:00
fenugrec
e36d2d4dcf
superH analyzer+disasm bigendian support
2014-12-09 01:39:41 +01:00
pancake
85631e7104
Fix build on OSX, fix warnings in shlr/wind and handle asm.cpu and asm.syntax for asm.cris
2014-12-08 23:38:13 +01:00
pancake
e7a4aefdd4
Disassemble CRIS v32 by default (TODO: honor asm.cpu)
2014-12-08 13:51:12 +01:00
pancake
95ddbeb2ec
Disassembler fixup for CRIS (still wip)
2014-12-08 13:31:49 +01:00
jvoisin
db28d502d0
Fix some stupid warnings
2014-12-08 00:59:29 +01:00
pancake
274f22001d
Add initial support for CRIS cpu as suggested by LolyRoP
2014-12-07 23:18:22 +01:00
Jeffrey Crowell
ed1aae7fd1
fix lots of spelling
...
fix some errors from the sed script
undo file mode crap
2014-12-07 17:00:59 +01:00
Kamil Rytarowski
60d3e1fc62
Don't set unused variables in arcExtMap_instName
2014-12-05 14:21:20 +01:00
Jeffrey Crowell
559049908e
fix crash in asm.c
...
asm.c could assemble more instructions than spots in the token array,
this fixes it.
2014-12-05 13:32:03 +01:00
Kamil Rytarowski
aadbd0f868
Fix GCC warnings: array subscript has type 'char'
...
Reported at NetBSD-current/amd64
GCC 4.8.4 (nb1 20141012)
2014-12-04 03:26:08 +00:00
pancake
5687fe2d1b
Support AT&T syntax for x86.cs disassembler
2014-12-01 16:49:47 +01:00
Skia
eee51db03a
Fix issue #1765
2014-11-30 18:06:14 +01:00
pancake
1fba30bd67
Make i4004 code a bit shorter
2014-11-23 04:08:48 +01:00
Riccardo Schirone
bbd068f647
libr/asm/arch/i4004: fix compilation issue on os x
...
on os x snprintf is a macro and using another macro for first and second
arguments cause compilation problem.
2014-11-22 16:16:39 -08:00
jvoisin
6d803698a6
Fix some warnings
2014-11-22 16:44:36 +01:00
pancake
0bc0606f74
Avoid using sprintf without format and use snprintf boundaries
2014-11-22 12:06:40 +01:00
pancake
ea725dd685
Fix i4004.mk
2014-11-18 17:11:21 +01:00
condret
c80c68dd43
add disassembler for i4004
2014-11-18 15:50:06 +01:00
Julien Nabet
e20728ec15
cppcheck: fix 1 'else if' cond matches previous cond + test indice before using it
2014-11-16 18:13:06 +01:00
jvoisin
acd93d1b37
Fix some cppcheck warnings
2014-11-15 21:48:13 +01:00
pancake
9c6dc4ce2f
Fix crash in x86.cs, handle ^C in /r and fix refptrs in disasm
2014-11-14 03:42:07 +01:00
pancake
4bb8a10390
Fix segfault in RAsm.fini and disable iter api for arm.cs
2014-11-14 00:40:24 +01:00
pancake
17bb6ab675
Fix memleak in x86.cs using the iter api
...
- Remove unused custom alloc code
- Call plugin destructor in RAsm fini method
2014-11-13 17:21:06 +01:00
pancake
6d4529ffbf
Add core.anal plugin a2f command. Fix a bug in x86.cs, align comments at right
2014-11-13 03:36:48 +01:00
pancake
c8d1befac0
Fix w32 build
2014-11-10 17:20:29 +01:00
pancake
2482d569e4
Use capstone sparc by default and better ppc disasm
2014-11-10 16:47:03 +01:00
pancake
af8326bd3d
Use capstone by default for POWERPC and do some more fixes in anal
2014-11-10 16:22:09 +01:00
pancake
8e96721eb6
A bit better sparc.cs analysis
2014-11-10 14:49:21 +01:00
pancake
1341cd7b7a
Fix build
2014-11-10 11:28:34 +01:00
pancake
208b6ce089
Switch to Capstone for ARM by default
2014-11-10 06:27:19 +01:00
pancake
293ba25765
Switch to Capstone for MIPS (instead of GNU)
2014-11-10 06:21:22 +01:00
pancake
068dcfd7a7
Switch to capstone by default for x86
2014-11-10 06:15:27 +01:00
pancake
47db2652c3
Implement support for 'jmp [reg]' and 'jmp [reg+off]' in x86.nz
2014-11-09 23:14:09 +01:00
pancake
61ef0707eb
Handle the latest MIPS asm.cpu variants from Capstone
2014-11-09 17:18:33 +01:00
pancake
479f31ee8f
Update capstone again
2014-11-08 13:22:49 +01:00
pancake
6754144ce3
Fix #1552 - Handle rip variants of lea in the x86.nz assembler
2014-11-07 23:16:24 +01:00
pancake
b40bce8284
Fix all latest Coverity issues
2014-11-07 10:52:44 +01:00
pancake
6e5b360e00
Handle flag resolution in RAsm.num from RCore.num
2014-11-06 15:13:11 +01:00
pancake
4790375679
Random enhacements for RHex apis and relocs
2014-11-04 02:16:40 +01:00
pancake
fb9002d026
Fix bug in usage of cs_disasm_iter
2014-11-03 15:45:04 +01:00
pancake
a9eb8da77b
Fix overflow in r_asm_disassemble() and implement rip-relative refs in anal.x86.cs
2014-11-03 03:27:22 +01:00
pancake
448d8e523c
Minor code cleanup
2014-11-02 02:34:59 +01:00
pancake
1c3df12988
Use the new cs_disasm_iter API for {asm,anal}.x86.cs plugins (experimental)
2014-11-01 23:54:23 +01:00
jvoisin
a60d82b800
Fix a lot of warnings for GCC
...
Less than 20 warnings remaining on my x86_64 GCC 4.9.1
2014-10-26 13:50:58 +01:00
pancake
a2c3647ad0
Somewhat better BoostJam support
2014-10-26 02:47:08 +02:00
Thanat0s
03b6f03161
Adding z80 Help
2014-10-23 08:20:04 +02:00
pancake
c20e2c70db
Add movs{bwd} opcodes in x86.nz assembler
2014-10-17 17:10:15 +02:00
pancake
7c152282a8
Use latest Capstone (Fixes relative branch on PPC and SPARC)
2014-10-16 10:19:37 +02:00
Fedor Sakharov
0b9abbd87a
Move arch headers from ./lib/include
2014-10-14 14:24:22 +02:00
condret
b43409f03b
Fix CID 1243234
2014-10-04 00:06:34 +02:00
Torben Nielsen
3ee3a268a6
Patch for issue #1477 : BRBC/BRBS address calculation error.
2014-10-03 20:18:23 +02:00
pancake
b8532a0679
Fix crash in tms320 finalization
2014-10-02 10:11:46 +02:00
pancake
50cddc5286
Fix java disasm crash from rasm2
2014-09-30 23:37:20 +02:00
pancake
cde83cfd0c
Add many experimental enhancements for the visual debugger
...
- V@ is an alias to set cmd.vprompt
- New config variables!
stack.size = size of stack displayed in Vpp
stack.delta = substract that delta to the stack address
stack.anotated = use pxa instead of pxw
scr.highlight = word to highlight by RCons
hex.flagsz = override flag size in pxa
- Fix x86 udis anal plugin size of invalid instructions
- Fix 'hud file not found' issue
- Add 'Vdh' to set scr.highlight
- Fix V: wheel scroll issue
- Realign pxa marks if addr > UT32_MAX
- Set hex.flagsz = 9999 to cover the whole area instead of just 1 byte
2014-09-27 03:48:54 +02:00
Fedor Sakharov
2b0009b858
msp430: Initial commit
2014-09-25 21:46:57 +02:00
Maijin
161ccf2b96
Fix Warning:return-type
2014-09-25 21:46:40 +02:00
Fedor Sakharov
cf6dd3947b
propeller: Fix multiple warnings
2014-09-23 12:23:34 +02:00
Fedor Sakharov
ba42426171
h8300: Fix a warning
2014-09-23 12:23:34 +02:00
Anton Kochkov
5d2a8fb603
Fix build
2014-09-23 00:47:02 +04:00
Anton Kochkov
40b7048edc
Fix warnings for TMS320C55x+
2014-09-23 00:44:32 +04:00
pancake
7e1875e4ff
Fix some warnings
2014-09-22 19:45:14 +02:00
pancake
be7ef9d890
More warning cleanup
2014-09-20 15:35:08 +02:00
Fedor Sakharov
0592964fe9
propeller initial commit
2014-09-18 18:51:24 +02:00
pancake
442475a690
Switch to GNU for ARM
...
- anal.arm.cs - have a crash that needs to be found and fixed
- asm.arm.cs - show negative destination addresses sometimes
2014-09-17 17:53:50 +02:00
Torben Nielsen
c9ea8bc718
Trying to fix issue #1354 : Program memory width is 16 bit, JMP/CALL addresses should be converted to 8 bit memory width when disassembling.
2014-09-17 15:40:58 +02:00
futex
d2cd30b7cb
add setne instruction
...
add setne instruction
2014-09-16 15:22:57 +02:00
pancake
d85cf28e84
Revert "Remove debug code in avr disasm /via @svensin"
...
This reverts commit 59d39473c8 .
2014-09-15 17:45:52 +02:00
pancake
59d39473c8
Remove debug code in avr disasm /via @svensin
2014-09-15 12:16:22 +02:00
pancake
4c0f2cc884
Fix p/mips_gnu.mk
2014-09-15 03:37:26 +02:00
pancake
db9c22aade
Fix memleak in core/anal
2014-09-14 04:24:03 +02:00
Jonathan Neuschäfer
1d337c6794
asm_bf: fix an out of bounds read and don't combine traps
2014-09-13 17:50:42 +02:00
pancake
63f00d0b0f
Implement working ESIL backend for Brainfuck. Requires manual init
2014-09-13 02:24:50 +02:00
Jonathan Neuschäfer
3506fcbefe
bf: remove a useless heap allocation
2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
c16588aa4a
bf: clarify repetition counting
2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
c4a379ad51
bf: rename peek/poke to in/out
2014-09-13 00:47:58 +02:00
Jonathan Neuschäfer
29601c3b54
Fix display of repeated brainfuck instructions
...
An snprintf with the same source and destination buffer caused the buffer to
be read as an empty string.
To quote the Linux Manpages project:
C99 and POSIX.1-2001 specify that the results are undefined if a call to
sprintf(), snprintf(), vsprintf(), or vsnprintf() would cause copying to
take place between objects that overlap (e.g., if the target string array
and one of the supplied input arguments refer to the same buffer).
2014-09-13 00:47:58 +02:00
Maijin
f5d1be5ea1
rename cs_disasm_ex to cs_disasm
2014-09-10 18:11:48 +02:00
pancake
0343c97b71
Fix long relative jmp assemble in x86.nz plugin
2014-09-09 01:06:21 +02:00
pancake
360d9d651c
Fix segfault in Dalvik disassembler
2014-09-05 18:59:24 +02:00
pancake
0d620bd37f
More native mingw32 fixes
2014-09-01 15:50:04 +02:00
pancake
0178d0a4ed
More fixups for mingw32
2014-09-01 15:29:02 +02:00
pancake
40c11d4477
Handle popad and pushad in default x86 assembler
2014-09-01 01:25:07 +02:00
pancake
8204e78c3f
Fix RBin & RLang related crashes (fix lot of memleaks and dblfrees)
2014-08-29 16:27:44 +02:00
jvoisin
052d576ae6
coverifix
2014-08-24 19:40:08 +02:00
pancake
3ee44b934e
Fix rasm2 -a arm -b 16
2014-08-22 01:17:36 +02:00
jvoisin
9b99c0135d
Even more coverifix
2014-08-18 15:03:02 +02:00
jvoisin
702ac741b9
More coverifix
2014-08-17 21:04:12 +02:00
jvoisin
bcbeb3c066
Fix some gcc warnings
2014-08-11 16:07:17 +02:00
pancake
9cb92b58f6
Rollback to use GNU disassembler for MIPS. Capstone is still buggy
2014-08-10 17:15:49 +02:00
jvoisin
b52722a30c
Fix some 55c+ coverity issues
2014-08-04 01:56:54 +02:00
pancake
3c077cb022
Aim to fix all coverity issues related to dalvik
2014-08-01 01:26:08 +02:00
pancake
bd39d7a6d5
Reduce RAsmOp struct size from 4096 to 384 bytes
2014-07-31 03:37:38 +02:00
jvoisin
975daf00f5
Coverifix
2014-07-30 22:26:13 +02:00
pancake
50e8e0e507
Add 'lp' command to 'load plugins' + some work on 'bin.laddr'
2014-07-30 11:14:26 +02:00
jvoisin
8921277e64
Fix some coverity issues
2014-07-25 17:11:14 +02:00
pancake
0d0ca9e153
Aim to fix some crashes related to capstone on !x86
2014-07-23 01:16:43 +02:00
pancake
5dfdea2327
Fix invalid length instructions in mips.capstone disassembler
2014-07-12 01:48:42 +02:00
pancake
2719a78290
Support make install & make symstall with DESTDIR or PREFIX with spaces
2014-07-10 01:13:04 +02:00
Ilya V. Matveychikov
9d0bb6b0b0
tms320: trying to implement insn qualifiers for c55x
2014-07-07 00:08:02 +04:00
Ilya V. Matveychikov
e070707308
tms320: fix warning
2014-07-07 00:02:04 +04:00
Ilya V. Matveychikov
9fac99555e
tms320: whitespace cleanups
2014-07-06 23:10:20 +04:00
pancake
d328957768
Update sdb to fix '***' and add r_asm_get_plugins
2014-07-03 00:03:01 +02:00
zlice
12f4167a65
Changed switch/case orders - added syscall and break
2014-06-30 15:02:41 -04:00
pancake
d87ca43656
Fix #997 - Can't assemble xor eax,eax on 64bit
2014-06-30 01:46:34 +02:00
pancake
a12667a98a
Fix mips-asm for 'R' types and remove '$' from mips.cs regs
2014-06-30 00:10:07 +02:00
zlice
df8f52a837
Fixed R opcodes
2014-06-29 23:14:03 +02:00
zlice
2141581329
Dont think theres an a7 register in mips
2014-06-29 23:14:03 +02:00
zlice
04260bbce4
Added more mips assembler instructions
2014-06-29 14:07:21 +02:00
pancake
fefe2e6cdf
Handle mips assembler from the capstone plugin
2014-06-27 16:38:06 +02:00
pancake
2490e54e77
Add asm.syntax=regnum (alias for capstone NOREGNAME)
2014-06-25 15:44:33 +02:00
pancake
f74b788809
Rename GNU plugins to _gnu
2014-06-25 12:22:08 +02:00
pancake
91167b18b8
Fix static build
2014-06-25 05:03:05 +02:00
pancake
f67850fcb2
FIx w32 build
2014-06-25 04:19:23 +02:00
pancake
1a3ffef8b4
Fix static build
2014-06-25 04:11:43 +02:00
pancake
74af39034d
Make ARM and MIPS capstone plugins by default (previous plugins renamed to .gnu)
2014-06-25 03:08:13 +02:00
pancake
ea67c628b0
More warning and build fixes
2014-06-25 02:30:42 +02:00
pancake
3c75ed7dc0
Fix build
2014-06-25 02:23:12 +02:00
pancake
377b5bb2fe
Clean a huge list of warnings
2014-06-25 02:07:38 +02:00
pancake
4cba3d2af6
Fix non-shared capstone build
2014-06-24 13:34:11 +02:00
pancake
42aeb0d271
Add --with-syscapstone configure flag
2014-06-24 12:48:29 +02:00
Ilya V. Matveychikov
256a0d9642
tms320: remove [label, ] from the c55x systax
2014-06-24 01:24:44 +04:00
Ilya V. Matveychikov
e991ae4600
tms320: another fix of uu field decoding for c55x
2014-06-24 01:05:11 +04:00
Ilya V. Matveychikov
f25e1b0dfa
tms320: fix c55x insn syntax in case of uu field parsing
2014-06-20 12:05:06 +04:00
Ilya V. Matveychikov
172818b1ed
tms320: fix uu field decoding for c55x
...
Instruction table and generator script update, also.
2014-06-20 12:05:06 +04:00
jvoisin
08c864c1cf
Add MIPS opcodes description
2014-06-19 12:42:44 +02:00
pancake
160c4568f7
More RPN ESIL (udis86, vm, conditionals, ..). Honor cfg.debug
...
- A debugger session can be turned into emulation with 'e cfg.debug=0'
- Fixed undo seek issues
- Fix "Unknown register 'rip'" issue
- debugger commands mixed with analysis ones. We must merge at some point
- More udis86 instructions translated to the new esil
2014-06-17 10:23:11 +02:00
condret
49b31e30f3
add spc700-disassembler
...
fix a gcc-warning and make things more @jvoisin compliant
2014-06-16 01:14:52 +02:00
jvoisin
30c9e212ac
Fix some clang warnings
2014-06-13 23:41:36 +02:00
pancake
b5ae986524
Fix #1004 - x86 "sete" not supported #1004
2014-06-10 16:24:01 +02:00
pancake
b3e8b3152b
8051 is a 8bit cpu, set asm.bits when asm.arch doesnt supports current value
2014-06-10 11:48:02 +02:00
jvoisin
34303f266c
Fix #1018 (rasm2 segfaults on 32-bit ARM). Thanks @xobs
2014-06-09 23:38:19 +02:00
condret
b58529d5fc
fix gcc-warnings, thx @jvoisin
2014-06-06 15:46:32 +02:00
Ilya V. Matveychikov
b5321048b4
tms320: avoid some decimal consts to be signed for c55x_plus
2014-06-03 02:15:36 +04:00
Ilya V. Matveychikov
390345ea95
tms320: fix YYY field decoding for c55x
2014-06-02 12:10:33 +04:00
LemonBoy
d8181a5dfd
some fixes for the z80 backend, fixes #556
2014-05-29 12:39:22 +02:00
pancake
34d04039d0
Fix #978 - Support 64bit 'mov' in x86.nz assembler
2014-05-28 17:23:34 +02:00
pancake
bb16d1737c
Add initial XCore capstone disassembler and code analysis plugins
2014-05-27 23:08:59 +02:00
pancake
62a6619b7e
Oops. Fix armass crash
2014-05-22 10:56:25 +02:00
jvoisin
268f114ccf
Fix CID 1214582
2014-05-22 10:51:55 +02:00
jvoisin
87d96c34a9
Fix CID 1214583
...
Fix a Out-of-bounds read
2014-05-22 10:48:48 +02:00
pancake
e87c1745bb
Add 'and' and 'mul' ARM thumb assembler opcodes
2014-05-21 23:58:13 +02:00
pancake
a708b77a2d
Add Cydia packaging
2014-05-18 03:15:38 +02:00
pancake
355c376afa
Fix ppc.cs disasm (no 64bit mode)
2014-05-18 03:01:31 +02:00
pancake
ea0c2caa59
Add sys/ios-sdk build scripts
2014-05-17 04:41:33 +02:00
pancake
ca18aedb94
Add Capstone SystemZ and SPARC disassembler and analysis plugins
2014-05-17 02:53:37 +02:00
Fedor Sakharov
af55ab712d
Adds v850 support.
...
Fixes #751
2014-05-16 15:56:52 +04:00
Anton Kochkov
0b48c723bf
Fix 8051 instruction length for some opcodes
2014-05-16 03:08:08 +04:00
pancake
48d3cfe017
Fix udis86 64bit jump immediate regression issue
2014-05-15 23:39:19 +02:00
Ilya V. Matveychikov
14a6277b96
tms320: fix needless h-suffix in printf for c55x
2014-05-16 00:32:16 +04:00
Anton Kochkov
b4bc556804
Fix invalid 8051 opcodes
2014-05-15 23:59:28 +04:00
pancake
5f5cbde791
Fix more 68k bugs and doesnt git pull capstone
2014-05-15 20:13:47 +02:00
Pau Oliva
d9ba1de3e9
Fix m68k disassembler crash
2014-05-15 17:54:21 +02:00
Anton Kochkov
4e9eb42e54
Fix CID 1135133
2014-05-15 05:01:49 +04:00
Anton Kochkov
2b2333f981
Fix CID 1195083
2014-05-15 04:55:20 +04:00
deeso
1fbc7f2168
Added load_bytes, Pushed curplugin down to RBinObj, Reworking the RBinFIle loading to accomodate RBinObj reworked how all bins are loaded. Needed to hack IO to make
...
this work with rbinfiles and rbinobjects.
Conflicts:
libr/bin/bin.c
libr/bin/p/bin_te.c
2014-05-13 21:54:18 -05:00
Ilya V. Matveychikov
31caee0ab4
tms320: cleanup wrong spacing for c55x AADD insn
2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
668c485b8c
tms320: fix TAx/TAy registers decoding for c55x
2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
366f3e66ee
tms320: merge instruction tables for c55x
2014-05-13 20:24:45 +02:00
Ilya V. Matveychikov
36ce740818
tms320: fix src1,2 and dst1,2 fields parsing for c55x
2014-05-13 20:24:45 +02:00
pancake
962ac8d307
Fix all java warnings
2014-05-12 10:16:15 +02:00
Anton Kochkov
09aa35d3bd
Cleanup disasm buffer for 8051
2014-05-11 04:51:43 +04:00
Anton Kochkov
1a0d10ef34
8051 - remove inclusion of the C source
2014-05-10 18:18:26 +04:00
Anton Kochkov
9069d8e0a9
Fix TMS320C55x+ segfaults
2014-05-10 03:01:55 +04:00
Anton Kochkov
fa96f3fa85
Fix #904 - 8051 disassembly
2014-05-10 02:02:01 +04:00
pancake
216c183b6e
Remove tons of useless 'if (x) free (x)'
2014-05-09 17:40:28 +02:00
jvoisin
e91a45e867
Fix CID 1194806
2014-05-09 15:33:01 +02:00
jvoisin
36a5f5b56d
Fix CID 1135160
2014-05-09 15:26:32 +02:00
jvoisin
f115779c5f
Fix CID 1134541
2014-05-09 15:08:47 +02:00
pancake
1eb08738ba
Fix #904 - s/???/invalid/g
2014-05-09 10:48:23 +02:00
pancake
731fc03a29
FIx #905 - assemble rdtsc and fix /c
2014-05-09 10:39:56 +02:00
pancake
ee276298b2
Fix memleaks in radiff2, segfaults in 8051 and aagraph
2014-05-09 03:06:05 +02:00
Anton Kochkov
33d5dfbca4
Fix build
2014-05-09 03:53:27 +04:00
Anton Kochkov
bf6e827551
Fix 8051 segfaults
2014-05-09 03:49:36 +04:00
Anton Kochkov
01a7d72362
Fix CID 1134848
2014-05-09 03:49:35 +04:00
Anton Kochkov
93757f045a
Fix CID 1137867
2014-05-09 01:52:59 +04:00
Fedor Sakharov
5ec72d68c8
ARC: print numbers in hex, don't use 0x prefix if the number is in [0..9]
...
Fixes #306
2014-05-08 12:28:02 +04:00
Ilya V. Matveychikov
8167a31d8a
tms320: remove unicode symbols from the c55x opcode table
2014-05-08 01:42:39 +02:00
Ilya V. Matveychikov
12fd2dffbd
tms320: add XACS/XACD fields parsing for the x55x
...
It was surprising for me that these fields are not parsed properly. Found that
by crafting test cases in radare2-regressions.
Also, opcode table for the c55x was slighly incorrect. Hope, next patch will fix
that confusion.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
f225edde45
tms320: fix c55x opcode table
...
This patch fixes c55x opcode table and solves the problem with parsing of 2 or
more similar instructions that differs in some bits. Mmatching algorithm doesn't
takes into account wildcard mask length.
It leads to bad situation where first instruction match may complete successfull
but the second instruction, which in turn has more presicely mask, doesn't be
looked up:
INSN1 with mask AAAA xxxx BBBB (matched by wildcard mask)
INSN2 with mask AAAA CCCC BBBB
Here the 'xxxx' is a 4-bit whildcard mask, 'AAAA', 'BBBB' and 'CCCC' is 4-bit
values.
The solution is to rebuild tables sorting items by the wildcard mask length
ascending.
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
d25b5511dc
tms320: add c55x table generator script
2014-05-07 23:43:28 +02:00
Ilya V. Matveychikov
91ebf19666
tms320: fix invalid k12 field parsing for c55x (in some cases k12=k4+k8)
2014-05-07 23:43:28 +02:00
pancake
b1349f8b14
Merge branch 'master' of https://github.com/radare/radare2
2014-05-07 16:32:53 +02:00
jvoisin
280068268b
Fix CID 1135188
2014-05-07 13:43:31 +02:00
jvoisin
6c7dc17b36
Fix CID 1134630
2014-05-07 13:36:32 +02:00
jvoisin
a45deea1f7
Fix CID 1134593
2014-05-07 13:33:20 +02:00
Ilya V. Matveychikov
70afe92c81
tms320: fix instruction syntax (space missed)
2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
dfac2f9f0c
tms320: fix error with c55x SSDD fields decoding
2014-05-07 02:52:04 +02:00
Ilya V. Matveychikov
a8bb021882
tms320: don't use hash sign with hex numbers for c55x
...
The only one rigth thing to do with hex numbers is to precede
such a numbers with '0x', not the '#' (beat me).
2014-05-07 02:52:04 +02:00
jvoisin
2c9923807e
Fix CID 1135115
2014-05-06 01:36:08 +02:00
jvoisin
90d5fc576d
Fix CID 1135114
2014-05-06 01:35:00 +02:00
jvoisin
f7767d4f15
Fix CID 1135113
2014-05-06 01:32:44 +02:00
jvoisin
d705e916bf
Fix CID 1135109
2014-05-06 01:31:26 +02:00
jvoisin
20d17f5947
Fix CID 1135102
2014-05-06 01:25:39 +02:00
jvoisin
6ed5eaeac9
Fix CID 1135117
2014-05-06 01:17:19 +02:00
jvoisin
9001073705
Fix CID 1134527
2014-05-06 01:07:19 +02:00
Anton Kochkov
859a1492cd
Fix CID 1211138
2014-05-06 01:13:39 +04:00
jvoisin
26d08c9259
Fix CID 1211167
2014-05-05 18:21:39 +02:00
jvoisin
47e5332073
Fix CID 1211139
2014-05-05 17:54:51 +02:00
Anton Kochkov
846a35063d
Fix CID 1134848
2014-05-03 04:29:10 +04:00
jvoisin
838dabba30
Fix CID 1135190
2014-04-30 12:42:51 +02:00
jvoisin
1cd63a2f2e
Fix CID 1134666
2014-04-30 12:42:51 +02:00
jvoisin
8ae158e86d
Fix CID 1135187
2014-04-30 01:56:36 +02:00
jvoisin
1cce7502da
Fix CID 1134680
2014-04-30 01:41:52 +02:00
Anton Kochkov
94d01aba57
Fix CID 1137861
2014-04-30 03:04:41 +04:00
Anton Kochkov
18235021ba
Fix CID 1137863
2014-04-30 03:02:13 +04:00
Anton Kochkov
3021f89f3e
Fix CID 1194794
2014-04-29 06:08:38 +04:00
Anton Kochkov
7e285583df
Fix CID 1194795
2014-04-29 06:08:38 +04:00
Anton Kochkov
b6ea32d2fb
Fix CID 1208743
2014-04-28 23:08:31 +04:00
deeso
ce7f33480e
fixing warnings (not the unused ones) in various files
2014-04-28 12:58:35 -05:00
jvoisin
76965f8d77
Add checks to "r_file_mkstemp" calls
2014-04-28 11:36:19 +02:00
Anton Kochkov
0e93873959
Fix CID 1134722
2014-04-26 01:53:23 +04:00
Anton Kochkov
6f2b6b8c18
Fix CID 1134500
2014-04-26 01:53:23 +04:00
Anton Kochkov
2cddd89890
Fix CID 1134499
2014-04-26 01:53:23 +04:00
Anton Kochkov
51736bd435
Fix CID 1134485, 1134486
2014-04-26 01:53:23 +04:00