Anton Kochkov
0324837100
Fix Jenkins Mingw-w64 build
2016-07-29 16:13:41 +03:00
Anton Kochkov
65e4ab058c
Update sdb to 0.10.4
2016-07-29 15:51:36 +03:00
Anton Kochkov
5cc983a657
Fix Mingw32 building [2]
2016-07-29 14:45:54 +03:00
Anton Kochkov
0ca2034422
Fix Mingw32 building
2016-07-29 14:37:17 +03:00
pancake
e1d955d7ed
Use r_lib_dl instead of the raw libc functions
2016-07-28 19:59:40 +02:00
pancake
838e4d6fa2
Add dlsym, call, alarm and other goodies to self://
2016-07-28 17:12:05 +02:00
Alexandru Caciulescu
34147cd121
/Rk command for rop queries ( #5403 )
2016-07-28 15:05:38 +02:00
pancake
57996ce39f
Add waitfor:// in io.debug description
2016-07-28 12:59:51 +02:00
pancake
f2ac0a1d52
Enhance ignore call warning message and minor refactor in mach0 entitlements parser
2016-07-28 11:33:53 +02:00
Maijin
7938640445
Move all /t/ from r2 to r2r
2016-07-27 19:19:30 +02:00
Maijin
90530319d7
remove more util/t
2016-07-27 18:57:43 +02:00
Maijin
34dfdd6fdf
remove more util/t
2016-07-27 18:05:25 +02:00
Maijin
3894935a06
remove more util/t
2016-07-27 17:18:45 +02:00
Maijin
80171b0dc5
Cleaning r_util.h
2016-07-27 16:55:20 +02:00
Alexandru Caciulescu
fd76792386
All /R commands cache gadgets and use rop.db ( #5398 )
2016-07-27 16:19:33 +02:00
Maijin
da041b1b74
Delete useless r.h
...
Delete useless r.h
2016-07-27 16:19:30 +02:00
Ahmed Mohamed Abd El-MAwgood
2dbb3d8fc6
Calling convention profiles in SDB ( #5358 )
2016-07-27 13:50:14 +02:00
Sven Steinbauer
ca96796268
Prevent possible max shift value ( #5391 )
...
Protect against shifts that might be bigger than 31
2016-07-27 13:21:36 +02:00
pancake
4831b504bc
Use proper relative includes in r_util.h
2016-07-27 12:55:05 +02:00
pancake
f5a73b73d7
Remove dupped hex2int function
2016-07-27 12:51:55 +02:00
pancake
f2c0ad9edb
Fix null de-refs in GNU C++ demangler
2016-07-27 12:22:49 +02:00
Álvaro Felipe Melchor
f1236563f3
Refactor RBin.Xtr to speedup dyldcache extraction
...
* Refactoring RBinXtr API.
* Cache sub-fat bins in sdb to save memory.
* Fix the error while loading sub-bins of different archs.
* more work into xtr to fix the remaining tests
2016-07-27 11:01:57 +02:00
Álvaro Felipe Melchor
9e412a9048
fix again the crash in nz
2016-07-26 23:08:29 +02:00
Álvaro Felipe Melchor
5d493c1950
refix crash in nz assembler
2016-07-26 22:37:20 +02:00
Álvaro Felipe Melchor
8a0b1183c7
fix crashes in radiff
2016-07-26 22:34:00 +02:00
Álvaro Felipe Melchor
3c8066ce57
fix crash in nz assembler
2016-07-26 22:08:25 +02:00
pancake
e62aac49f3
Update C++ demangler from the latest GNU binutils
2016-07-26 18:57:57 +02:00
pancake
2dda628da1
Null terminate array of instructions in x86.nz to fix a crash
2016-07-26 18:46:48 +02:00
pancake
d46fa6ddd5
Implement waitfor:// in io.debug. Fixes #5380
2016-07-26 17:23:50 +02:00
pancake
102261ba37
Implement pidof:// URI handler in io.debug
2016-07-26 17:16:56 +02:00
pancake
9b053064fd
Fix dmp command for OSX and make it work with 1 parm instead of 3
2016-07-26 16:54:18 +02:00
pancake
2638b07571
Fix r2 -d mame on OSX asm.bits=16 problem
2016-07-26 15:30:26 +02:00
pancake
2a2226978e
Fix dmi on OSX and minor cydia tweak
2016-07-26 15:17:07 +02:00
pancake
30bdc476a1
Some cleanup in xnu.debug
2016-07-26 04:15:23 +02:00
pancake
9500455c87
Remove noisy error message
2016-07-26 00:33:28 +02:00
pancake
b342358513
Fix x86.nz warnings from clang
2016-07-25 21:26:35 +02:00
Sven Steinbauer
e436e66428
Kill dead code ( #5378 )
...
Fix dead code warnings from coverity scan
2016-07-25 21:24:29 +02:00
pancake
36af078830
Fix regression
2016-07-25 21:24:19 +02:00
pancake
085a156a86
Fix #5334 - add support to analyze interrupt handler functions
2016-07-25 20:15:50 +02:00
Sven Steinbauer
c5635eec3c
Fix error on invalid reg ( #5374 )
...
some instructions wouldn't error on invalid source or dest values.
Set valid reg to false by default and only set true if actually valid
2016-07-25 18:52:58 +02:00
pancake
e829c007fd
Fix #5371 - format string in blocksize error
2016-07-25 18:50:14 +02:00
Sven Steinbauer
887f5bfa8c
Support extended 64bit registers [ Fix #5364 ]
2016-07-25 18:02:46 +02:00
Paul
6b9bc8560e
iS[j|*|q] [hash] fix
2016-07-25 14:48:49 +02:00
Kodoque1
e582ab8dbb
Correction for #5349 ( #5369 )
...
* q[y/n][y/n] options added
* Adding crowell remarks
* checking beginning whitespace and fixing else if
* updated
* cleaning update
2016-07-25 10:37:51 +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
pancake
6dfba715b1
Fix #5361 - realtime hexview edit mode
2016-07-25 05:14:48 +02:00
pancake
6c549b424a
Remove x86.tab from r2 master (moved to extras)
2016-07-25 03:47:47 +02:00
pancake
845bfebc9e
Fix null deref in x86.nz
2016-07-25 03:42:28 +02:00
pancake
91fe80f4ca
Fix avr's rjmp disasm, analysis and esil
2016-07-25 03:19:16 +02:00
pancake
0cffcb981e
Fix vsize=0 issue in PE parser (fixes asm68k.exe issue)
2016-07-25 00:03:20 +02:00
Dreamdance61
9226290930
AVR: Correct duplicate IOPort UCSRA in ioports.c ( #5366 )
2016-07-24 11:16:27 +02:00
Maijin
22de895ef5
Rename CSR disasm/anal into XAP4 Fix #5355
2016-07-23 00:41:42 +02:00
Sven Steinbauer
996e767e0d
Refactor nz assembler
...
Refactor nz assembler
2016-07-22 18:33:54 +02:00
Álvaro Felipe Melchor
d52dfbdfe6
added help message into pv
2016-07-22 00:48:52 +02:00
Owlz
1d97857b67
Adding "8" modifier in doc
...
Adding in reference to the "8" modifier for pv.
2016-07-22 00:20:09 +02:00
Álvaro Felipe Melchor
8059f4be23
fix build
2016-07-21 23:15:52 +02:00
Kamil Rytarowski
6ad9abb0b1
Fix NetBSD build in r_debug_native_pids()
2016-07-21 23:00:18 +02:00
Álvaro Felipe Melchor
01fe87d467
fix coverity and some coding style
2016-07-21 22:56:58 +02:00
Álvaro Felipe Melchor
b2cd7fb23c
improve thumb/arm detection
2016-07-20 23:07:07 +02:00
Álvaro Felipe Melchor
50b20b8153
fix coding style
2016-07-20 18:43:28 +02:00
Maijin
b7d7593342
Add wcj
2016-07-19 23:55:36 +02:00
Ahmed Mohamed Abd El-MAwgood
67af958e63
FIX #5324 vars/args display 0 in afi and afll and add in aflj
2016-07-19 21:50:55 +02:00
diouziou
39907cd94a
Typo Update cmd_write.c
...
Typo Added a missing )
2016-07-19 16:22:00 +02:00
Maijin
5c4b292f77
Fix #5325 Decide OR and remove unnecessary help
2016-07-18 00:59:16 +02:00
Maijin
9026c6b8b3
Fix #5340 ij command with debugging open
2016-07-18 00:39:03 +02:00
Maijin
1c744dea96
Fix #5342 dbg_file in PE breaks json output
2016-07-18 00:34:09 +02:00
Patrik Bachan
c62cd5a61e
Improved AVR register comments/annotations
...
* Fix missing AVR register descriptions
taken from ATmega16 datasheet
* Improve AVR register descriptions
- extended comments for PORT* registers explaininig their purpose
2016-07-17 23:26:26 +02:00
Álvaro Felipe Melchor
965c0400d2
refix dwarf crash
2016-07-17 19:20:48 +02:00
Álvaro Felipe Melchor
0d42b6c017
fix crash in dwarf fuzzed test
2016-07-17 18:42:22 +02:00
Álvaro Felipe Melchor
8ad4d74316
fix off by one when diffing
2016-07-17 12:10:23 +02:00
NikolaiHampton
392dd94bf7
Optimisation of Levenshtein calc in radiff2 -s
...
- Optimised the distance calculation for radiff -s
- Fixed a bug in radiff.c that where verbose was always true.
- Added check that calloc() was successful.
- Shuffled code around to minimise use of free()
- Added some comments.
Speeds up the radiff2 statistical diff. Drastically reduced the ‘edit
distance search space’ by ignoring ranges that can’t affect the edit
distance. Improves search for similar files (common use case?), can
reduce the search space significantly:
One file tested went from two unknown versions of httpd, on MacBook has
a 28 hours processing time, down to ~13 minutes. Results will vary based
on file differences the more similar the files, the faster it'll run.
2016-07-17 12:10:20 +02:00
Sushant Dinesh
aee2a7de95
aflj displays at information (#5330 )
2016-07-15 03:21:09 +05:30
Álvaro Felipe Melchor
890526f776
fix minor things in mach0.c
2016-07-14 23:11:04 +02:00
Álvaro Felipe Melchor
ab3f37589c
Rework previous patch
2016-07-14 22:37:33 +02:00
mttbrown
dd116c65cd
fixed breakpoint size based on arch
2016-07-14 22:18:45 +02:00
Álvaro Felipe Melchor
cb0280d62a
Fix crash in ec command
2016-07-13 22:31:15 +02:00
Jeffrey Crowell
951f110524
fix build
2016-07-13 00:41:38 -04:00
Jeffrey Crowell
b89bde9df9
reindent cmd_debug.c and fix tons of memleaks
2016-07-13 00:35:13 -04:00
Álvaro Felipe Melchor
7fb29d7e97
added two missing funct declaration into r_num.h
2016-07-12 23:14:30 +02:00
Álvaro Felipe Melchor
7a2f32c281
compile dmh only with linux
2016-07-12 23:04:32 +02:00
javierprtd
07f0502c98
new commands dmh
2016-07-12 23:04:32 +02:00
Maijin
0c1dba02f1
Remove duplicate crc32c, crc32 from fileinfo
2016-07-12 23:03:11 +02:00
Maijin
e3a05bdb76
Kill libr/asm/t
2016-07-12 22:51:47 +02:00
Maijin
103586110f
Remove test_stack.c from r2
2016-07-12 22:37:25 +02:00
Maijin
c274afe748
Fix #3286 - Use stdbool.h
2016-07-12 22:15:19 +02:00
Kodoque
574e74e89a
q[y/n][y/n] options added
2016-07-12 21:50:25 +02:00
monosource
b21603cfeb
libr/core/cmd_debug: using r_core_cmd_help for "de"
2016-07-12 21:31:42 +02:00
monosource
bb79c50024
core/cmd_log: Fixed T description
2016-07-12 21:24:55 +02:00
Jeffrey Crowell
9fd13fba06
move some string related macros to r_str.h
2016-07-11 23:00:55 -04:00
Jeffrey Crowell
0cb7dd6c77
style guide for declarations of functions
2016-07-10 19:54:31 +00:00
Maijin
306a790187
Separate more r_* from r_util
2016-07-10 15:02:01 +02:00
Maijin
a38aec4568
Separate more r_* from r_util
2016-07-10 14:22:15 +02:00
Jeffrey Crowell
fa75406fa2
move r_graph header out of r_util.h
2016-07-09 19:59:37 -04:00
Anton Kochkov
3ce9d8ef3f
Install libr/include/r_util/*
2016-07-10 01:12:20 +03:00
Jeffrey Crowell
13f52c16f7
separate debruijn to it's own header file ( #5318 )
2016-07-09 11:58:30 -04:00
Jeffrey Crowell
3c3775b3d0
fix broken build (
2016-07-09 01:50:06 -04:00
Jeffrey Crowell
e65ceb5dee
fix some memory leaks reported by coverity
2016-07-09 01:41:56 -04:00
Álvaro Felipe Melchor
0522b93047
Fix null dereference
2016-07-08 23:28:21 +02:00
Álvaro Felipe Melchor
3bcca60853
Fix crash dwarf again
2016-07-08 23:16:24 +02:00
Álvaro Felipe Melchor
c24a12c4c8
Fix paddr to vaddr translation in elf ( #5300 )
2016-07-08 21:42:02 +02:00
Ahmed Mohamed Abd El-MAwgood
46b0e3f48e
fixing windows types ( #5308 )
2016-07-08 11:06:36 +02:00
n4☠0r
b353733041
dmhc update ( #5311 )
...
* dmhc update: chunk flags and data dump support
2016-07-08 11:00:38 +02:00
Eugene
eb6702b254
Added missed lines&sorted ( #5307 )
2016-07-07 23:02:27 +02:00
pancake
092e859c5c
Release 0.10.4 - codename: padron peppers
2016-07-07 00:32:59 +02:00
Ahmed Mohamed Abd El-MAwgood
5586355bb8
autoloading windows types when file is windows executable ( #5304 )
...
and few other adjustements
2016-07-07 00:14:06 +02:00
pancake
e971fd810e
Implement dmh* and fix some indents in previous commit
2016-07-06 23:59:29 +02:00
n4x0r
2a84841a67
dmhc feature for dmh extension update ( #5302 )
2016-07-06 23:41:43 +02:00
leberus
8890d0650e
Fix: segfault and #ifdef vs #if
2016-07-06 23:39:12 +02:00
pancake
d39d9b83e0
Update SDB from git fixing some possible null derefs
2016-07-06 17:03:34 +02:00
skuater
39c4a0c35f
some fix in windows debugger
2016-07-06 12:44:52 +03:00
pancake
887897e02b
Fix cmd_rop tests
2016-07-06 01:05:07 +02:00
pancake
f345656ec6
Fix cmd_search
2016-07-06 00:20:42 +02:00
Maijin
8cefeeb7b6
Add @o help
2016-07-06 00:02:49 +02:00
pancake
a3f818f7e0
Add rop.db and remove the misuse of asm.esil in /Rl
2016-07-05 23:42:08 +02:00
Álvaro Felipe Melchor
bc218f8b26
change int to const bool config_get_i rop search
2016-07-05 23:38:59 +02:00
pancake
0f8a5c8635
Fixes and enhancements for the previous commits
2016-07-05 23:25:16 +02:00
Alexandru Razvan Caciulescu
8434da3f2a
ESIL output for /Rl command (and save gadgets in SDB)
2016-07-05 23:11:08 +02:00
pancake
4c8a1b212f
Fix warning in elf.c
2016-07-05 22:57:09 +02:00
Álvaro Felipe Melchor
79601b4949
dmh - show heap info ( #5251 )
2016-07-05 22:48:48 +02:00
Ahmed Mohamed Abd El-MAwgood
85dcb19dae
fixing type link consumes no bytes ( #5288 )
...
implementing initial api for types
Adding types profiles for x86 and x86_64 architectures
2016-07-05 22:44:53 +02:00
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
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
df7c33f297
Fix build for Linux <= 2.6.32 (coredump not supported)
2016-07-04 01:45:44 +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