Commit graph

12035 commits

Author SHA1 Message Date
pancake
57d7bdfdfc Fix #4928 - Show string context in search results 2016-07-05 22:19:36 +02:00
pancake
48b44e8488 Fix #5271 - Support capstone3 again 2016-07-05 18:33:04 +02:00
pancake
f85536ac76 Add agC for full program callgraph
Fix afi indentation issues
2016-07-05 17:37:29 +02:00
pancake
a745a9a6f8 Update SDB from git (optimizations and new apis) 2016-07-05 15:31:51 +02:00
Rakholiya Jenish
339a5b7b18 fix iZ and negative o for large files (#5242)
correct the add section check

keep commented part to it's original code

int to ut64

minor fix and limit buffer size in case file size cannot be allocted

remove section check

show size in readable format

minor changes
2016-07-05 12:46:28 +02:00
pancake
ce1ce1cf63 Add +/- for the bit editor 2016-07-05 12:31:25 +02:00
pancake
8532e0c6da Initial implementation of Vd1, the bit editor 2016-07-05 05:25:45 +02:00
nevun
d8d6d1a073 kvm_openfiles can fail so make sure we print the error message. (#5285)
* kvm_openfiles can fail so make sure we print the error message.

On OpenBSD you can use the kvm interface without /dev/kmem access but on FreeBSD
you need root or kmem access which one do not want to give a user.

Look at ps(1) on FreeBSD and see how they do it.
2016-07-05 04:13:10 +02:00
pancake
04de3e657f Assume AVR bins have no strings 2016-07-04 16:28:58 +02:00
pancake
a81d667b53 Fix avr esil string 2016-07-04 16:12:28 +02:00
nevun
f41b706437 Fix OpenBSD build. Cannot do sizeof on a macro argument, compiler does not know what it is yet. (#5284) 2016-07-04 15:06:51 +02:00
pancake
f4f26582c7 Fix RSP esil warnings 2016-07-04 14:38:35 +02:00
nevun
5803182cbe Fixes issue #5279: kvm interface differs a bit between Open and FreeBSD. (#5282) 2016-07-04 14:32:11 +02:00
pancake
be2df13c2d Check for GNU Make in sys/install.sh for FreeBSD 2016-07-04 14:18:07 +02:00
Eugene
3773a1d088 Added vars init in linux corefile gen (#5281) 2016-07-04 13:59:00 +02:00
Rene Laemmert
de37c7d71d removed double quotes from json result for search (#5280) 2016-07-04 13:01:13 +02:00
pancake
2f5ead1efd Update www-m again 2016-07-04 03:50:33 +02:00
pancake
df7c33f297 Fix build for Linux <= 2.6.32 (coredump not supported) 2016-07-04 01:45:44 +02:00
pancake
fdfd731a30 Update www/m with new statusbar and split view 2016-07-04 01:33:49 +02:00
pancake
4c97858e31 malloc:// forces rw and fix regression in 'f' 2016-07-03 22:36:58 +02:00
bsmiles32
622e828e1d Add basic support for N64 RSP processor. (#5269)
* Add basic support for N64 RSP processor.
This includes:
* a table driven instruction decoder (rsp_idec)
* a disassembler
* a very primitive anal plugin
2016-07-03 22:03:26 +02:00
pancake
87ccfd34f5 Add fi[jn*] command to list flags in range 2016-07-03 22:00:43 +02:00
pancake
fe06f16b44 Add core.iorw in i command (merge fdmode + io.cache 2016-07-03 21:04:50 +02:00
pancake
7436ce01ee ecc [arg] - show color palete in css prefixing the CSS keys 2016-07-03 20:56:44 +02:00
pancake
6361f20f3d Fix indentation in core.config 2016-07-03 20:05:01 +02:00
Álvaro Felipe Melchor
d21ee9f00f fix crash due to UAF with io.vio option 2016-07-03 19:32:06 +02:00
Anton Kochkov
5cd31d7aa4 Fix help of eco cmd 2016-07-02 21:36:06 +03:00
nevun
20801a3ee4 Make dm work on OpenBSD by adding a native r_debug_native_map_alloc() (#5267)
Note that OpenBSD can have mappings with zero size so relax the assert.

Also note that the protection bits are flipped. Different bit order. Will fix that later.
2016-07-02 13:22:28 +02:00
nevun
b5ec7a7145 Add support for dp and dp* on OpenBSD. (#5266)
* Add support for dp and dp* on OpenBSD.

kvm_getprocs exists on Net and Free as well so it might work there as well

* Cosmetic changes after feedback. Thanks.
2016-07-02 12:35:24 +02:00
Álvaro Felipe Melchor
34fae270dd added free function into RHashTable (#5249) 2016-07-02 11:50:30 +02:00
Joshua J. Drake
09435c7317 Don't print SIGTRAP signals or stops
A TRAP signal signifes expected stops for breakpoints and so on. There's no
need to display these as signals or stops since they will be communicated
inside r_debug_bp_hit.
2016-07-01 21:32:02 -05:00
Joshua J. Drake
329acd33e4 Fix #5196: Make tracepoints work again
To accomplish this, we add a new debug stop reason R_DEBUG_REASON_TRACEPOINT
and return it from r_debug_wait whenever a tracing breakpoint is hit. Then, in
r_debug_continue_kill, we recognize this state and do the old r_debug_step
trick to progress the session. Previous rework of r_debug_recoil takes care of
the heavy lifting and we continue on our way.
2016-07-02 05:14:56 +03:00
pancake
2cc433cefa Fixes for avr to make travis green 2016-07-02 02:37:00 +02:00
monosource
cea1c14750 Typo fix "afss-" -> "afvs-" (#5261) 2016-07-01 19:46:01 +02:00
Joshua J. Drake
70ef08de79 Address feedback from PR #5198 (#5260) 2016-07-01 17:41:13 +02:00
Joshua J. Drake
d380a83d23 Invert some logic to avoid nested brace hell (#5198) 2016-07-01 16:15:42 +02:00
Ahmed Mohamed Abd El-MAwgood
b31dd80724 Args/vars the last commit (#5245)
renaming afa, afv and afe to afvb afvr, and afvs respectively
making arguments analysis obeys e anal.vars
improving the json format for args/vars
fixing varsub to use the new comands for x86 and arm
fixing var commenting commands to use the new commands var configuration
2016-07-01 16:15:29 +02:00
resilar
a7fff5fb49 Use UT32_MAX as a magic value (#5256) 2016-07-01 16:04:19 +02:00
pancake
9864ef8841 Lowercase all registers to match RReg rules in AVR 2016-07-01 15:22:23 +02:00
pancake
4c21937caa Reuse 6502 regsize hack for AVR 2016-07-01 15:22:10 +02:00
pancake
77eb8656a4 Initial import of the bin.avr plugin for atmega8 chips 2016-07-01 15:08:13 +02:00
pancake
9447bfa9b9 Fix analysis and add ESIL for avr's rjmp 2016-07-01 15:07:52 +02:00
pancake
a2a032833e Show file size if not matching in radiff2 2016-07-01 14:08:25 +02:00
pancake
8361f2ea83 Honor RIO in radiff's slurp - thanks @brainstorm for the tip 2016-07-01 14:02:46 +02:00
def
6fba927804 Use UT32_MAX as a magic value 2016-07-01 13:07:21 +02:00
Pavel Borzenkov
fe9c419fa5 libr/debug: fix native debugger on Linux (#5259)
Linux kernel checks for unknown flags passed via the last argument to
waitpid() and fails waitpid() with EINVAL if it encounters one:

From kernel/exit.c:sys_wait4()

	if (options & ~(WNOHANG|WUNTRACED|WCONTINUED|
			__WNOTHREAD|__WCLONE|__WALL))
		return -EINVAL;

This makes it impossible to use debugger on Linux.

WAIT_ANY macro is actually supposed to be used as PID argument to wait
for all children without specifying particular PID.

Signed-off-by: Pavel Borzenkov <pavel.borzenkov@gmail.com>
2016-07-01 11:13:57 +02:00
Jeffrey Crowell
365547ef82 libr/core/yank.c fix memleak 2016-07-01 01:00:06 -04:00
Jeffrey Crowell
73bddffbf0 /libr/bin/format/pe/pe.c fix off by one in strcpy 2016-07-01 00:57:38 -04:00
Jeffrey Crowell
d9fc1ce9fc fix random color switch statement 2016-07-01 00:56:35 -04:00
Álvaro Felipe Melchor
c3139b096d fix mem leak 2016-07-01 00:17:24 +02:00