Commit graph

89 commits

Author SHA1 Message Date
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
Fangrui Song
6b40816002 Fix immbase, ahi 2 => ahi b => binary, ahi 1 => ahi s => string (#8396) 2017-09-01 12:49:01 +02:00
pancake
3e7c01e5e4 Implement asm.minvalsub variable 2017-06-28 01:29:04 +02:00
pancake
6758e3753d Remove configure-plugins dependency for the make meson 2017-05-26 02:43:53 +02:00
Tobias Gross
a4b311ebac Fix lea instruction not displayed right (#7529) 2017-05-19 13:32:03 +02:00
alvarofe
4e19275c1a Fix minor warnings while compiling 2017-05-06 22:56:50 +02:00
pancake
4204fecce8 Fix #7406 - do not relsub on reg*x+base expressions 2017-05-05 02:11:02 +02:00
pancake
0ac3477662 Use r_str_const to avoid dangling calling conventions in fcn->cc 2017-05-04 14:52:43 +02:00
Khairul Azhar Kasmiran
0f62a1d590 Fixed what caused #7315 (#7343)
* Fixed what caused #7315

* Minor formatting
2017-04-26 12:49:38 +02:00
Khairul Azhar Kasmiran
d9d839147e Revert to old coloring for asm.filter'd flags (#7192)
* Revert to old coloring for asm.filter'd flags

* Fixed r_parse_filter output for pc relative addrs when color is involved

* Small fix to prevent oob memory access

* Proper handling if esc char not found
2017-04-04 15:00:21 +02:00
Srimanta Barua
eea0d7c494 Fixed findNextNumber and filter (#7161) 2017-03-27 19:43:56 +02:00
Srimanta Barua
2ce093b23d Added display of strings in disassembly for PIC binaries (#7112)
* Added refs to disassembly

* Added comments for lea references

* Bug fixes

* arm and mips tests

* Fixed merge conflicts
2017-03-27 04:48:55 +02:00
pancake
4ceb55fa86 Fix null deref in mips pseudo introduced recently 2017-03-24 10:42:37 +01:00
Giovanni
1a5ffd5221 Fix sparc regressions, ahi s and pd@x 2017-03-24 02:42:31 +01:00
Riccardo Schirone
084d5c1217 libr/parse: add another view for function variable/arguments (#7048) 2017-03-17 11:54:34 +01:00
Srimanta Barua
21e051fafe get_pc_from_stack for computed refs 2017-03-07 20:39:30 +01:00
Roi Martin
8734b3ea4b Fix findNextNumber() in r_parse when scr.color=false (#6888)
Fix #6752
2017-03-03 10:58:36 +01:00
Giovanni
f921298d4a Fix #6800 - Removed useless case (and warning) 2017-02-19 00:20:33 +01:00
SchumBlubBlub
6c00c9e2d5 Reorganize string macros 2017-02-06 00:00:03 +01:00
Sven Steinbauer
e8e9287c12 New asm.relsub enhancement 2017-02-03 09:53:57 +01:00
Álvaro Felipe Melchor
1660cee325 Fix #5824 - ahi s endian issue 2016-11-02 22:49:36 +01:00
pancake
94d47c79bb Completely remove all references to list.h 2016-10-27 13:33:27 +02:00
pancake
1f2f3f2394 Honor varsub and relsub with asm.ucase for parse.arm 2016-10-18 01:49:32 +02:00
pancake
c3bd6a6a10 Add r2pm ls|cd 2016-10-02 00:37:09 +02:00
Vlad Ivanov
19d4154e39 anal_xtensa: initial ESIL support 2016-09-01 22:50:28 +02:00
pancake
46cec371db Fix asm.filter parse issue for m68k 2016-08-11 02:32:23 +02:00
sdlf
96858ac1e9 Some improvements for arm pseudo code (#5370)
* Fix logical typo scanning for separator

The test would only accept ] as a separator. This was ok for
expressions like:

  r2 = [pc + 8]

But would strip the terminating ) in:

  if (r1 == 0

* arm/pseudo: fix typo /halt/half

* arm/pseudo: fix spacing before byte/half

it is now consistent with the other instructions and
have a space after the '=' also consistent with vmov/vdif.

* arm/pseudo: fix ldr/str

The following str instruction:

  str r0, [r4, 0xc]

Would produce the broken pseudocode:

  [r4 + 0xc] = r0 + 0xc]

With this change we get the expected:

  [r4 + 0xc] = r0

We need to handle 2/3 parameter instructions
differently for ldr/str. By doing this the
special case checking for [ is no longer needed.

* arm/pseudo: add a couple of XXXXs variants

these were arbitrarily selected based on the sample
i have been looking at.
2016-07-25 05:16:51 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +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
Riccardo Schirone
26fc8f92ef libr: remove some unused variables and functions 2016-04-27 12:59:45 +02:00
NaveenBoggarapu
4c04b98b47 few memory leaks fixed 2016-04-13 21:55:48 +02:00
pancake
a461bbc536 Fix #4304 - asm.filter for m68k 2016-03-22 12:45:05 +01:00
Evan Shaw
288763f69a Count hex digits as numbers in parse filter
Without this we chop off number operands as soon as a hex digit is seen.

Also fix and use a previously unused macro.
2016-03-17 11:13:30 +01:00
pancake
384cfb1042 Fix last coverities 2016-02-16 02:08:09 +01:00
Maijin
69c3ffa9e6 Change default syscall ahi S 2016-02-03 17:51:55 +01:00
Maijin
8571a9c2ba Add ahi for syscall numbers fix #4068 2016-02-03 17:05:03 +01:00
pancake
3a2a713775 Implement ahi 32 for IP address hints 2016-02-03 12:29:32 +01:00
pancake
ececf1dcc6 Use snprintf and pnumleft in the ahi2 filter 2016-01-07 13:11:05 +01:00
DZ_ruyk
010e997c3e Fix for issue #3766 2016-01-07 12:38:00 +01:00
pancake
5132a499c2 Fix many coverities 2015-12-31 17:10:02 +01:00
pancake
d49f6dcf7b Fix #3781 - 64bit ahi issue 2015-12-22 22:59:57 +01:00
pancake
2c047083e3 Fix asm.filter issue in some ARM64 instructions 2015-12-19 17:04:01 +01:00
Riccardo Schirone
065728c42d parse/p: fix asm.relsub when replaced string is longer than original
fix #3768
2015-11-27 20:37:19 +01:00
pancake
7b7400c392 Support ansi and rgb in rparse 2015-11-24 01:24:47 +01:00
pancake
b172333386 Another isspace regression for ahi 2015-11-23 23:55:44 +01:00
pancake
0f5740d1a5 Fix regression introduced in ahi 2015-11-23 23:33:50 +01:00
pancake
653e09a0aa Fix #3746 - Handle immbase anal hint in all number bases 2015-11-23 23:04:49 +01:00
pancake
96990424cc Fix #3737 - crash in ahi 1 for huge 64bit nums 2015-11-23 12:45:30 +01:00
pancake
dec1760d54 Minor ahi fixup 2015-11-23 02:54:33 +01:00