21326 Commits

Author SHA1 Message Date
Florian Märkl
3f81a40844
Kill RIODesc.obsz ##io (#17715) 2020-09-27 10:01:23 +02:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
Florian Märkl
ae0b5e503f
Purge Pins on r_anal_purge ##anal (#17703) 2020-09-27 12:39:50 +08:00
Riccardo Schirone
c7b3dc9e65
Remove sig_t because not used (#17712) 2020-09-25 15:37:33 +02:00
pancake
62c2128b6f
Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE (#17644)
* Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE ##http

* Fix regressions in: r2 -C and =+ ##r2pipe

Introduced in 04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9

* Implement sleep command ##shell

* Add tests for the webserver and remoting

* Implement daemon directive in rarun2, fix http test ##rarun2

* Fix socket timeout on Windows (patch by @GustavoLCR) ##socket

* Missing http.root is not a reason to not start the webserver ##http

* Fix r2 -C, =!=0, replace curl with r2 in the webserver test ##http

* Honor anal.in/from/to in aae, optimize db/formats/mach0/thumb ##anal

* Bug fixes and performance improvements

Co-authored-by: pancake <pancake@nopcode.org>
2020-09-25 19:51:23 +08:00
Riccardo Schirone
83d3e7bf18
Mark tests as broken until properly fixed (#17711)
* Mark http test as broken until properly fixed
* Fix return type of `signal`
* Mark V850 pseudo test as broken

Co-authored-by: Anton Kochkov <xvilka@gmail.com>
2020-09-25 17:30:29 +08:00
Riccardo Schirone
ea7da3366b
Add parse_v850_pseudo to meson build (#17710) 2020-09-25 16:51:03 +08:00
pancake
e28ce2990d
Implement the v850.pseudo RParser plugin ##disasm (#17687) 2020-09-24 17:56:16 +02:00
Riccardo Schirone
9b59074787
Automatically group sub-commands ##newshell (#17663)
* Add GROUP RCmdDesc type and fix where the args_str is shown
* Adjust color of `[?]`
* Differentiate between cmd<?> and cmd[?]
<?> when cmd is not valid by itself
[?] when cmd is valid but there are also other sub-commands available
* Fix usage for commands like `w` that are both commands and groups
* Do not automatically switch to detail=2 for leaf commands
* Fix test due to change in `?`/`??` behaviour
2020-09-24 17:50:52 +02:00
pancake
46aff1ec53
Implement ab./ablj/abl,/ablq - list all the basic blocks ##anal (#17680) 2020-09-24 17:23:23 +02:00
pancake
7c76d85031 Add tests for RTable using r2 commands 2020-09-24 17:19:25 +02:00
pancake
e13753e6d0 Support strings in /ne/ and /eq/ RTable.filter ##util 2020-09-24 17:19:25 +02:00
pancake
6ce78c6149 Implement /head, /tail and /page in RTable API ##util 2020-09-24 17:19:25 +02:00
pancake
43ff1e4189 Support boolean columns in RTable ##util 2020-09-24 17:19:25 +02:00
pancake
454d7ada78 Support :simple in RTable.tostring() ##util 2020-09-24 17:19:25 +02:00
pancake
f71ec729ba
Always register the derived CC from the reg profile ##anal (#17685) 2020-09-24 17:17:15 +02:00
Damien Zammit
2a0d8fbe59
Install r2sdb, detect R2_HOME_SDB_FCNSIGN for r2extras custom CC ##build
* cc: Add autodetection for R2_HOME_SDB_FCNSIGN new location of custom calling conventions
* Fix r_file_exists not expanding tilde path
* r2sdb: Install executable
2020-09-24 12:26:53 +02:00
Florian Maerkl
8842de91e5 Kill RAnal.sdb_fcns because it is unused now ##refactor 2020-09-24 12:12:42 +02:00
Florian Maerkl
5e50ed7f11 Remove noperational axt for vars ##refactor 2020-09-24 12:12:42 +02:00
Florian Maerkl
e6cefa903a Directly apply Callee Args in Type Matching ##anal 2020-09-24 12:12:42 +02:00
pancake
63803c57dd
Fix scrolling with L in mini graph mode ##visual (#17700) 2020-09-24 09:47:54 +02:00
phakeobj
89e1618e3c
Fix #17353 - Remove duplicated implementation of uleb128 in mach0 ##bin (#17489) 2020-09-24 09:47:23 +02:00
Alexis Ehret
ec6a52e8a9
Fix 3 lgtm warnings (#17465) 2020-09-24 09:37:41 +02:00
Khairul Azhar Kasmiran
2293d29308
x86 cmp/sub: Properly generate esil for bitsize of 64 ##anal (#17665)
* x86 cmp/sub esil: Support bitsize of 64
* Fix pij tests
* Don't shift if bitsize is 0
* Don't esilprint anything if bitsize is invalid
* Use %u instead of %d
* Check whether bitsize is 0
2020-09-24 12:14:43 +08:00
Florian Märkl
022324029d
Add Global Import API (#17692)
* Add Tests and Make it strict
2020-09-24 02:15:22 +02:00
GustavoLCR
22468fdc0a
Support demangling MSVC managed pointer types ##bin (#17694)
* Demangle __clrcall calling convention
* Transform a giant macro to a function for sanity sake
* Add tests
2020-09-23 16:40:10 +02:00
Florian Märkl
78e30b3ac7
Refactor Variable Constraints out of SDB ##anal (#17693) 2020-09-23 09:40:39 +02:00
pancake
19f941509b
Fix rasm2 -L bits field for 4 and 0-bit plugins ##asm (#17686) 2020-09-23 13:31:56 +08:00
Florian Märkl
1c485e8bfc
Rename r_sign_anal_additem to r_sign_add_item and add r_sign_get_item ##signatures (#17691) 2020-09-22 14:09:17 +02:00
pancake
c9e98e4645
Implement tcc-* commmand to unload all calling conventions ##anal (#17688) 2020-09-22 10:03:37 +02:00
Anton Kochkov
b905e7a3b0
Fix forward declaration of RCore (#17689) 2020-09-22 09:40:06 +02:00
junchao-loongson
ca9b6ac1a0
Set asm.cpu for mips.gnu derived from the ISA defined in the ELF ##bin (#17555) 2020-09-21 16:58:07 +02:00
Aswin C
61a1e15af5
Fix rj and add tests (#17682) 2020-09-21 16:17:33 +02:00
pancake
e33535080d
Allow to set asm.bits when using the r2ghidra asm/anal plugins ##disasm (#17679) 2020-09-21 16:10:32 +02:00
Kārlis Seņko
7042ae727b Refactor r_str_split_lines to use size_t. 2020-09-21 07:48:17 +03:00
Kārlis Seņko
d02e74485f Fix leak in dwarf processing. 2020-09-21 07:48:17 +03:00
pancake
2cf9c91518
Implement tms320.pseudo to fix another arm64 test ##asm (#17613)
Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2020-09-21 11:51:04 +08:00
Dennis Goodlett
61d9be3ff1
Fix zig add type ##signatures (#17653)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-09-21 00:04:05 +02:00
Florian Märkl
659f54aad1
Kill RAnal.sdb_fcnsign (#17669) 2020-09-19 17:24:45 +02:00
Florian Märkl
3d9ce08c19
Fix RAnalFunction leaking imports (#17670) 2020-09-18 08:50:36 +02:00
GustavoLCR
6fb41501ff Minor optimization for type analysis
* Reserve a big enough hashtable to avoid rehashing
2020-09-18 00:21:59 +02:00
GustavoLCR
b5eb956ba2 Don't pollute debug trace after aft 2020-09-18 00:21:59 +02:00
pancake
51c83e01f3
Implement r_str_cat and other random code cleanups (#17632) ##util 2020-09-18 00:20:26 +02:00
pancake
75d80417e1
Fix glitch when asm.hint.pos < 1 in visual ARM ##disasm (#17667)
Co-authored-by: pancake <pancake@nopcode.org>
2020-09-17 18:48:05 +02:00
Aswin C
549784d73f
Implement rj ##json (#17443) 2020-09-17 18:10:07 +02:00
junchao-loongson
17a1cf6a77
Fix anal_mips_cs some compile warning (#17664) 2020-09-17 17:54:33 +02:00
karliss
0222bfe238
Use sdb_set instead of sdb_querys (aaaa is now 7x faster) (#17640) ##performance 2020-09-17 14:15:41 +02:00
pancake
3e5677bd7c Refactor and prefix with R_BIN_ELF_ defines in .h ##bin 2020-09-17 12:38:25 +02:00
pancake
ba9960cffd Dynamic ELF libs can also have relocs ##bin
* Make 32 and 64 bit reloc writes more generic
2020-09-17 12:38:25 +02:00
pancake
63031cc3e9 Add basic support for arm and arm64 ELF relocs ##bin 2020-09-17 12:38:25 +02:00