Commit Graph

140 Commits

Author SHA1 Message Date
Álvaro Felipe Melchor
5543f73cb1 Fix some covs 2015-10-29 23:39:49 +01:00
Anton Kochkov
30e82852a3 Remove annoying message 2015-10-22 15:07:32 +03:00
pancake
b08add890a Fix the 80/96/128 fpu reg value issue 2015-10-22 13:38:30 +02:00
pancake
35f97e3862 Add register profile for AVR 2015-10-13 23:01:30 +02:00
pancake
5d0bdd4481 Enhacements to ease the iOS debugger development 2015-09-21 23:40:17 +02:00
pancake
fdbde81e78 Fix iOS build, and a pair of bugs 2015-09-15 04:05:43 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
pancake
1bf2d47f00 Fix last COVs 2015-09-12 19:12:57 +02:00
pancake
4506a98cff Add arena.peek/poke, and fix emulation for asm.esil.anal 2015-09-10 01:42:56 +02:00
pancake
62755eeb0e Fix latest COVs 2015-08-25 12:40:21 +02:00
pancake
4dff5cca5e Some some COVs related to control flow and memory leaks 2015-08-24 01:58:36 +02:00
pancake
7a871d4cb5 Add drm command to get/set packed registers. Old drm is now drf 2015-08-23 04:43:31 +02:00
pancake
1c143a3e3b Better checks in packed register boundaries
- Support spaces after dr? <reg>
2015-08-23 04:08:01 +02:00
pancake
f776f5a515 Implement RReg API for long double and packed registers 2015-08-23 03:58:49 +02:00
Álvaro Felipe Melchor
b52cfe422e Fix #2759 2015-06-16 22:47:47 +02:00
pancake
c047506f21 Some cleanup for regset issues and update the regprofile 2015-05-21 02:31:01 +02:00
pancake
9392424e30 Fix #2397 and #2398 - honor syscall args in dcs on linux-x86-64 2015-04-18 10:35:57 +02:00
pancake
515b2e77bc Fix about 40 COVs related to memleaks and buffer overflows 2015-03-21 01:27:54 +01:00
pancake
c9bff12ae7 Fix #2167 - drs invalid free 2015-03-08 01:42:35 +01:00
pancake
bd4db7b966 Initialize swapped stack arena and implement 'aeis' ESIL stack emulation helper 2015-01-27 12:46:15 +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
b7e1dc4354 Fix #1698 - dr rflags=cpz is now supported 2014-11-18 17:22:43 +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
trndr
567bcd39f1 Add bigendian register byteswap 2014-11-04 02:17:35 +01:00
pancake
42232354a7 Add 'ai' - address info, Enhace 'ad' (support patterns and sequences)
- ai shows: exec,read,write,flag,func,stack,heap,reg
- Add r_reg_regset_get()
- Implement r2.cmdj in r2.js
2014-10-15 02:24:22 +02:00
LemonBoy
27e9d2e938 Do not allow duplicate registers in the profiles. Free the RRegItem properly. Fix the line count in the parser. Fix the w32 debug profile. 2014-09-14 22:45:09 +02:00
pancake
7029eab6af Enforce register arena, better fit size. Fix native mips reg profile size 2014-09-14 02:52:30 +02:00
pancake
1117fd8c4c Verify realloc in arena for early bug catching 2014-09-13 03:20:00 +02:00
pancake
63f00d0b0f Implement working ESIL backend for Brainfuck. Requires manual init 2014-09-13 02:24:50 +02:00
LemonBoy
61eaa5cafc Settle the pointer ownership issue once for all 2014-09-13 00:30:15 +02:00
pancake
dda441f9c3 Fix thelemon notes 2014-09-11 00:41:33 +02:00
pancake
d93563909d Fix latest coverity issues 2014-09-10 02:21:10 +02:00
LemonBoy
7833b0427d Rewrite register profile parser to make it cleaner and more robust
- Make all the reg profiles heap-allocated for consistency
- Fail gracefully when the profile has errors
- Minor fixups
2014-09-08 17:41:22 +02:00
Jonathan Neuschäfer
be7cba651d fix instability in r_reg_free_internal
This is a partial revert of 0814a6d4e ("Fix memleak in r_reg_free").
2014-08-26 03:45:14 +02:00
pancake
a8994d0f63 Fix crash in rreg deinit 2014-08-25 04:27:25 +02:00
pancake
0814a6d4e2 Fix memleak in r_reg_free 2014-08-25 01:18:35 +02:00
pancake
131aaa487f Fix more ESIL instructions for x86 2014-08-08 02:11:23 +02:00
pancake
7507868d47 Fix segfault in 'r2 -c 'dso;dso' -' 2014-07-18 18:48:11 +02:00
pancake
ea384ec166 Add regdiff test program and fix the api 2014-07-03 13:48:35 +02:00
pancake
b6850182b9 Fix RReg.arena.size issue caused by missing parenthesis in BITS2BYTES 2014-07-03 11:54:58 +02:00
pancake
ab05fbd9d3 Fix r_reg_next_diff (thanks defragger!) 2014-06-27 15:33:25 +02:00
pancake
e321c0e62c Add RReg bufdiffing apis to retrieve list of modified regs 2014-06-26 12:18:45 +02:00
pancake
a69f56ffe6 Fix all latest coverity issues except the rsa-find ones 2014-06-24 01:01:27 +02:00
pancake
7fafaf6c94 Fix parsing some corrupted RReg profiles, cache profile reloading, fix arena fit 2014-06-23 18:13:41 +02:00
pancake
2408ce9a42 Fix segfault in esil for arm-thumb and colorize 'ar?' 2014-06-19 04:52:28 +02:00
pancake
5c209802a7 More work on arm-thumb-capstone + esil 2014-06-19 04:03:11 +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
pancake
148733b7a1 Add linux-arm64 reg profile, fix linux-arm systracing. Handle multiple syscall stoppers in 'dcs' 2014-06-14 02:02:58 +02:00
pancake
92170e2f68 Rename 'ar' into 'ax' again, 'ar' is now for RAnal->reg manipulation
Notes:
- This is just a copy of the code from 'dr' with some modifications.
- The register values are synced back everytime you step in the debugger.
- Those registers should be used when evaluating ESIL to emulate code.
2014-05-25 03:00:24 +02:00
Anton Kochkov
a208166f0d Fix CID 1134890 2014-05-03 11:09:10 +04:00