Riccardo Schirone
23fee01ebd
core/disasm: fix wrong reflines/fcnlines to the left of var/arg defs
2016-05-19 01:58:53 +02:00
Riccardo Schirone
8727840e90
anal/fcn: use getter/setter to access the size of a RAnalFunction
...
This is one of the first steps to improve analysis. This way we'll have
one single place to change if we want to change the meaning of the
"size" field. (size -> realsize)
2016-05-19 01:50:50 +02:00
pancake
4e9985d97c
Initial work to support #4939
2016-05-18 12:19:27 +02:00
pancake
2e06158c71
Handle -- in rarun2
2016-05-17 10:36:33 +02:00
Riccardo Schirone
c169073c74
Fix #4080 : remove assumption that functions are contiguous
...
* anal/p/anal_java: remove function that does nothing
* anal/fcn: workaround for java analysis
2016-05-14 16:37:24 +02:00
Ahmed Mohamed Abd El-MAwgood
7ab187841f
Add initial support for asm.calls
2016-05-14 11:04:07 +02:00
rene
695d9a0d04
added shortcuts for every node in graph view
...
fixes mentioned in the pr
fixed the Vp issue mentioned in the pr
fixes the mentioned parts
changed reallocation size
Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-12 23:49:30 +02:00
pancake
3d89f2cc21
Add RAnal.Stack.RESET and handle it for arm64
2016-05-11 12:59:32 +02:00
Riccardo Schirone
15c1197636
util/print: use screen_bounds to store the first non visible address
2016-05-10 22:15:24 +02:00
Ahmed Mohamed Abd El-MAwgood
d08de89727
Add support for esp register in afCa afCa
2016-05-04 22:20:58 +02:00
pancake
adb70234ff
Fixes for asm.fcnlines and endian issues for esil + disasm
2016-05-04 17:13:44 +02:00
Damien Zammit
af0a865d9f
WIP - Totally remove host endianness dependence
...
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
Ahmed Mohamed Abd El-MAwgood
eb185abff4
adding intital support to --omit-frame-pointer FIX #3735 ( #4742 )
...
* adding intital support to --omit-frame-pointer FIX #3735
* makeing afCa arch independent to some extent
2016-05-01 14:48:04 +02:00
pagabuc
356160ec5c
This fixes #3666 and applies the spacing convention on function def and call ( #4727 )
2016-04-27 22:17:19 +02:00
pancake
bcf9be5070
Fix #4675 - Wrong function name reference in xrefs
2016-04-22 14:00:15 +02:00
pancake
ee477660b6
Handle ARM immediate values in CMP and MOV
2016-04-22 10:36:30 +02:00
pancake
4537e9877c
Honor anal.gp in asm.emu
2016-04-21 02:25:49 +02:00
pancake
1ac0d47652
Honor aho in pd
2016-04-21 01:38:08 +02:00
pancake
20b49f1615
Implement stackptr analysis in MIPS and add ALIGN stackop type
2016-04-13 23:33:30 +02:00
pancake
c91e0a3a64
Do not emulate metadata and initial release-notes.js
2016-04-11 10:16:56 +02:00
pancake
c87d0159f3
Initialize BP in aeim and fix asm.emu's CALL in disasm
2016-04-11 02:24:21 +02:00
Ahmed Mohamed Abd El-MAwgood
febb482077
FIX #4204 : Implement fastcall function arguments ( #4596 )
...
FIX #4204 : Implement fastcall function arguments
2016-04-10 20:59:11 +02:00
pancake
4217a5a5bc
Honor fcn.fcnlines in fcnvarlist
2016-04-08 12:18:28 +02:00
pancake
843fcf1e7d
Implement Cz like Cs with automatic length detection
2016-04-08 03:30:21 +02:00
pancake
3ccdfbd6e8
Add asm.(symbol|section).col and honor meta in reflines
2016-04-08 02:56:42 +02:00
pancake
4b909bad9a
Fix some asm.spacy and asm.flgoff glitches
2016-04-05 01:33:57 +02:00
pancake
1c67ef8dc1
Fix #4469 - asm.flgoff for fcn vars
2016-04-05 00:56:48 +02:00
pancake
32162ef393
Add r_buf_new_file API
2016-04-04 22:30:11 +02:00
pancake
740e43eadd
Fix some segfault and consistencies
2016-04-04 01:59:30 +02:00
pancake
802a793074
Fix even more memleaks
2016-04-04 01:03:31 +02:00
pancake
c01b5a6562
More memleak fixes
2016-04-04 00:52:45 +02:00
pancake
e8263655be
Fix more memleaks
2016-04-04 00:17:57 +02:00
pancake
c9514302bf
Fix some lifecycle memory leaks
2016-04-03 23:52:36 +02:00
pancake
2c43b48b23
Fix back fcnsign for w32 abi
2016-04-03 18:41:50 +02:00
pancake
032b0689cc
Fix fcnsign on non-windows code
2016-04-03 18:13:35 +02:00
pancake
fe0c38e372
Add asm.symbol to show flag/fcns in disasm
2016-03-29 02:03:17 +02:00
pancake
71bd7719c1
Fix #4409 - eco segfault and implement ecp
2016-03-23 22:13:55 +01:00
pancake
15d9563014
Fix #4313 - & in function switches fcn->bits instead of global ones
2016-03-15 11:47:13 +01:00
pancake
6d204b1bc3
Fix another whitespace issue in pd
2016-03-14 00:15:51 +01:00
pancake
ad2df38fca
Fix onespace issue in pd
2016-03-13 21:56:46 +01:00
pancake
bd11cf8f81
Fix pd regression with spaces at the end
2016-03-13 03:13:27 +01:00
pancake
4fc392eefa
Remove dead code
2016-03-12 02:36:37 +01:00
Riccardo Schirone
8fa47870b2
core/disasm: at should not depend on i, that is used as index for buf
...
"i" was reset to 0 when the buffer is moved, so "at" pointed back to an
already printed instruction. With this patch "at" is calculated based on
"k", a new index that is never reset and simply indicates the delta from
the starting address.
2016-03-09 12:24:10 +01:00
pancake
342961a3c5
Fix #4251 - Blank space using fcnlines=0 and flgoff=1
2016-03-09 10:08:53 +01:00
pancake
bb5d4d7b56
Fix #4261 - duplicated offset with asm.spacy
2016-03-09 09:53:53 +01:00
pancake
bfdde3f565
Remove flag listing issues with asm.functions=false
2016-03-09 09:50:30 +01:00
pancake
92ad561fea
Fix latest coverities
2016-03-05 20:46:04 +01:00
pancake
6ed05a7812
Fix pd regression
2016-03-04 01:15:20 +01:00
pancake
ec3ee44ae0
Implement asm.flgoff and asm.spacy + minor optimization
2016-03-04 00:33:24 +01:00
Riccardo Schirone
ec6b55527c
core/disasm: fix set of last row offset
...
core/visual: reset cursor position on 'u'/'U'/'o'/'V'.
2016-03-02 11:29:13 +01:00
Riccardo Schirone
a87a77f9e4
core/disasm: asm.bbline should be based on RAnal
...
The BasicBlock is a concept you can have only with analysis info. This
ensure that the displayed result is correct.
2016-02-24 23:00:41 +01:00
Riccardo Schirone
e727e662db
core/disasm: fix bbline reflines
2016-02-24 23:00:41 +01:00
pancake
607491e1ce
More fixes for pd@x:90 variants. New tests in r2r
2016-02-22 23:53:29 +01:00
pancake
8d60ef61dc
Fix #4110 - Fix pd@x:90 issue
2016-02-22 23:45:36 +01:00
William Robinet
d3ab5f38aa
Remove execution bit from source files
2016-02-16 23:21:46 +01:00
William Robinet
0c7cacc2dc
Fix typos
2016-02-16 23:21:24 +01:00
pancake
0e69bfd541
Add default noreturn functions, adjust xrefs and fix regression in type
2016-02-16 03:24:47 +01:00
pancake
de4cbb47ad
Show flags referenced by the Cd 4|8 pointers
2016-02-16 02:50:02 +01:00
pancake
384cfb1042
Fix last coverities
2016-02-16 02:08:09 +01:00
Riccardo Schirone
82385bdbd1
core/disasm: ds->addr can change, addr remains always the starting value
2016-02-11 11:17:00 +01:00
Álvaro Felipe Melchor
feaaab517b
demangle afl and disassembly
2016-02-11 01:32:36 -06:00
Riccardo Schirone
b4fda922cd
libr/core: calculate the offset of each disasm row
...
util/print: fix bug in r_print_row_at_off
core/disasm: fix bug when setting the row offset of last line
2016-02-11 00:14:36 -06:00
Riccardo Schirone
94123f158c
core/disasm: review screen_bounds meaning
...
core/visual: enable screen_bounds only on default modes
2016-02-11 00:14:36 -06:00
pancake
6b79f915df
Fix #4095 - VdW chopping down to 32bits
2016-02-10 11:45:25 -06:00
pancake
c9779da737
Fix iopa tests
2016-01-27 03:33:52 +01:00
pancake
75d7faf35e
Fix regression in comments in disasm
2016-01-27 02:49:40 +01:00
pancake
86b2cd3812
Fix #3958 - asm.emu obeys asm.cmtright
2016-01-27 02:35:45 +01:00
pancake
bcb065e5dd
Fix #4031 and #4030 - asm.jmphints independent from asm.comments
2016-01-27 02:25:25 +01:00
condret
e9aa1bfa80
hardening
2016-01-20 16:13:30 +00:00
condret
ccab168cb5
fix a memleak and implement esil.stacksize for @crowell
2016-01-19 23:36:21 +00:00
pancake
3b4fc2cf9a
Fix #3950 - Implement asm.emustr
2016-01-15 00:17:28 +01:00
pancake
beb2dd2f3f
Enhance asm.nodup to support invalid instructions and count them
2016-01-11 22:28:22 +01:00
pancake
5ed63681b4
Fix #3921 - do not show dupped instructions with asm.nodup
2016-01-10 22:31:20 +01:00
Riccardo Schirone
a20562d6e8
util/print: fix glitch when cursor is on . at the end of hexpairs
...
* fix visual instruction alignment when using asm.bytespace
2016-01-08 23:33:57 +01:00
Álvaro Felipe Melchor
c939ba7da9
Fix #3852 & changes in midflags
2015-12-31 02:10:18 +01:00
Judge Dredd (key 6E23685A)
60ecab6324
fix anal.bbline with scr.utf8 bug
2015-12-29 17:59:15 +01:00
pancake
6a274bd3c6
Initial import pds|pdsf to disassemble only strings
2015-12-21 15:53:53 +01:00
pancake
f264b1d1e3
Fix pdf on folded function issue
2015-12-16 15:30:13 +01:00
pancake
25892b084a
Show comments in folded functions
2015-12-15 01:03:42 +01:00
pancake
2f9623786f
More fixes for the folded functions in disasm
2015-12-15 00:37:33 +01:00
pancake
d0444bbe15
Fix multiple folded functions glitch in disasm
2015-12-15 00:18:44 +01:00
pancake
1f647dd2e6
Refix #3785
2015-12-14 12:11:34 +01:00
pancake
a3d8a3a50d
Fix asm.emu regression
2015-12-14 10:57:50 +01:00
pancake
db5a76f8b3
Initial support for fold/unfold functions with afF and Vz
2015-12-14 10:19:07 +01:00
pancake
8dedcf406b
Fix #3785 - Fix refline colors in arg/var with custom color theme
2015-12-03 14:48:15 +01:00
Riccardo Schirone
5311241537
core/disasm: add '~' mark when midflags is into effect
...
'~' is used to notify the user that the instruction is using some bytes
of the next instruction because of asm.midflags.
2015-11-29 12:25:31 +01:00
Riccardo Schirone
fce421b0f0
core/disasm: change cursor when in the middle of an instruction
...
fix #3748
2015-11-27 20:37:19 +01:00
Riccardo Schirone
3989c94c5a
core/disasm: fix some corner cases in the cursor display
...
fix #3747
2015-11-27 20:37:18 +01:00
Riccardo Schirone
c7a444cb39
core/cmd_meta: fix regression with format memory metadata
2015-11-24 12:45:43 +01:00
pancake
078739dc2b
Check if ds->line is null in asm.bbline
2015-11-24 03:11:55 +01:00
pancake
cffa44b2f7
Add ara command and fix RReg.arena.push/pop implementation
2015-11-24 00:58:03 +01:00
pancake
b4308219e7
UJMP also bbsplits
2015-11-23 11:03:10 +01:00
pancake
4c4747aa33
Fix asm.bbline fcnline glitch
2015-11-23 10:30:49 +01:00
pancake
cab871f3e6
Fix #650 - asm.bbline - blankline on every basic block
2015-11-23 01:40:35 +01:00
pancake
6027d6e44e
Implement asm.relsub
2015-11-19 23:12:25 +01:00
pancake
30b1fcc208
Initial implementation of the V, comma-ents stuff
2015-11-18 13:03:35 +01:00
pancake
9c9bb2dbd5
Memory optimization for flags (-70%) + some warnfixes + sdb-sync
2015-11-08 23:38:42 +01:00
Riccardo Schirone
24f675e8af
core/reflines: improve reflines algorithm
2015-11-07 11:23:31 +01:00
Riccardo Schirone
932ba39978
core/disasm: remove asm.linesup(date) option
2015-11-07 11:23:31 +01:00
Riccardo Schirone
f651209623
core/reflines: start cleaning up the code
2015-11-07 11:23:31 +01:00