pancake
bd3cc5f205
Disable failing test
2022-07-05 16:40:53 +02:00
pancake
332574aeb5
More eprintf -> RLOG here and there ##refactor
2022-07-05 13:34:13 +02:00
Richard Patel
88c5447da9
Re-enable the bpf.mr assembler ##arch
2022-07-05 12:47:53 +02:00
pancake
8c80cfe7d9
Fix #20405 - Multiple fixes and improvements in projects ##projects
...
* io maps are now saved and restored
* add an extra test and review/update others
* Use omu in om* and run o*;om* in P
* Better handling multiple P subcommands and help msg
* Use more R_LOG instead of eprintf
2022-07-05 10:56:04 +02:00
pancake
21064e9473
Add omu command to create a unique map ##io
...
* Add another broken project test
* Fix warning regression introduced in previous windows fix
2022-07-04 21:24:40 +02:00
pancake
e2bbe2b14e
Add a linting to avoid R_LOG calls ending with a dot ##lint
2022-07-04 17:42:25 +02:00
condret
8c7dee3016
Remove all instances of "ptr " in x86 cs assembly output ##asm
2022-07-04 04:42:07 +02:00
pancake
d93c452768
Merge asm.java into anal.java ##refactor
...
* Exposes an asm.assembler bug so we disable that for now
Co-authored-by: Richard Patel <me@terorie.dev>
Co-authored-by: pancake <pancake@nopcode.org>
2022-07-03 11:15:20 +02:00
pancake
bed72b73b2
Add another source linting to avoid newlines in RCore.cmd() ##refactor
2022-06-30 22:22:30 +02:00
pancake
fca98fbea7
Use more R_LOG in core/cmd_anal
2022-06-30 20:55:47 +02:00
Dennis Goodlett
5d59f0e144
Add wasm get_offset test
2022-06-30 00:09:08 +02:00
Dennis Goodlett
d100777d4c
Fix wasm function offset lookup ##bin
2022-06-30 00:09:08 +02:00
pancake
304a3a7fcf
Use more R_LOG instead of eprintfs and add more linting checks ##refactor
2022-06-28 11:24:06 +02:00
pancake
8d88e1208d
Fix echo q|r2 return code
2022-06-28 02:00:26 +02:00
pancake
5054382ec2
Fix ws test
2022-06-27 11:52:41 +02:00
pancake
795a274b48
Set asm.bits when using anal plugs (not only asm ones) and update 8051 test
2022-06-27 10:58:09 +02:00
pancake
863bdbcf5f
SPARC ignores cfg.bigendian because all instruction fetches are BE ##anal
2022-06-27 10:36:06 +02:00
pancake
f5fd629603
Merge asm.sparc into anal.sparc ##refactor
...
Co-authored-by: Richard Patel <me@terorie.dev>
Co-authored-by: pancake <pancake@nopcode.org>
2022-06-26 20:07:23 +02:00
Richard Patel
b7a3300596
Merge asm.alpha into anal.alpha ##refactor
2022-06-26 20:06:51 +02:00
Baldanos
76637a657c
Add ESIL support for ROR ARM instruction
2022-06-26 17:43:29 +02:00
pancake
6b20b82c32
Refactorings in libr/reg ( #20349 )
...
* Refactorings in libr/reg
* More
Co-authored-by: pancake <pancake@nopcode.org>
2022-06-23 13:29:57 +02:00
pancake
3d335e705c
Fix #17174 - Add the flagname and real symbol name details in the output of icj ##bin
2022-06-21 14:15:36 +02:00
Richard Patel
e34f1e0356
Merge asm.i8080 into anal.i8080 and add a test ##refactor
2022-06-17 11:24:29 +02:00
Apkunpacker
d80e848e99
Update test_codemeta.c
2022-06-17 06:04:39 +02:00
rax2
94d42e9641
Support tbz,tbnz,rev16,rev32 instructions in the arm64 assembler ##asm
2022-06-16 18:51:46 +02:00
Richard Patel
22a184f0bc
Merge asm.v850 into anal.v850 and add a test ##refactor
2022-06-16 18:17:27 +02:00
condret
2bc863d589
Fix bug in io_ihex ##io
2022-06-16 01:55:16 +02:00
Richard Patel
c0905d0d98
Merge asm.pdp11 into anal.pdp11 ##refactor
2022-06-16 01:40:22 +02:00
Richard Patel
3df0fb0168
Merge asm.6502 into anal.6502 ##refactor
2022-06-15 14:51:53 +02:00
Dennis Goodlett
16b3de372e
Update wasm tests for exports ##bin
2022-06-14 09:59:00 +02:00
Richard Patel
3a06500ade
Add op->cycles for M68K move ##anal
2022-06-14 01:51:49 +02:00
Dennis Goodlett
4015a0d6cc
Refactor wasm and add function section parsing ##bin
...
* Remove count member from
Most, but not all, sections start with a vector of data. Vectors start with a
count. The count though should be a part of the section content, not the
section header.
* Remove unsed buf_read_new from wasm parser ##bin
* Refactor wasm vector sub-section parsing ##bin
* Add wasm function sub-section parsering ##bin
2022-06-12 09:51:38 +02:00
rax64
698a2cf7af
Support cset and sxt(b,h,w) instructions in the arm64 assembler ##asm
2022-06-11 10:17:43 +02:00
Richard Patel
ff7f58c4cc
Add Capstone aoml cases ##tests
2022-06-10 22:37:50 +02:00
Lazula
80cc913688
Convert pf d specifier to hex dword ##print ( #20276 )
...
Behavior now consistent with byte, word, and quadword specifiers
2022-06-10 15:29:53 -05:00
Richard Patel
f600ca6389
Add BPF ELF load test
2022-06-09 23:53:56 +02:00
GiulioL
04a31894d7
Add icg str argument for filtering classes to graph ##analysis
2022-06-09 20:29:26 +02:00
Richard Patel
c2bd7dea77
Fix bpf's lddw <reg>, <imm> tests
2022-06-09 20:06:13 +02:00
aemmitt
cfa477f4ae
Add z vector registers for ARM64 in the register profile ##anal
2022-06-08 23:27:49 +02:00
rax2
81a5780867
Support ccmn and csel instructions in the arm64 assembler ##asm
2022-06-08 20:30:39 +02:00
Dennis Goodlett
123b53ffae
Wasm allow partial custom name parsing ##bin
2022-06-08 19:20:47 +02:00
pancake
3a7e1fd515
Revert RRegType.vec commits to keep ABI stable
...
* 8cf2122ee9
.
* dec3122303
.
2022-06-08 19:18:50 +02:00
pancake
122c7e9df4
Fix several bugs in the RStack API ##crash
2022-06-08 19:15:48 +02:00
condret
8cf2122ee9
Fix test
2022-06-08 16:40:33 +02:00
condret
dec3122303
Add R_REG_TYPE_VEC ##anal
2022-06-08 03:33:32 +02:00
aemmitt-ns
059c5f8b13
Add ESIL to the anal.bpf.cs plugin ##esil
2022-06-05 21:11:18 +02:00
pancake
15a3c086e0
Fix #17961 - missing flags in asm.reloff=1 + scr.color=0 ##disasm
...
* Adds a test
2022-06-05 14:44:56 +02:00
rax2
a2c0eea501
Support more arm64 instructions ##asm
2022-06-04 10:17:40 +02:00
Richard Patel
4162fe8079
Add initial anal.bpf.cs plugin + disasm tests ##arch
2022-06-03 01:35:05 +02:00
condret
0df5f4111e
Reduce LOC of i4004 assembler (only use gperf for 1 byte instructions) ##anal
2022-06-01 22:31:36 +02:00
condret
53c5e8618a
Fix tests for i4004
2022-06-01 08:39:40 +02:00
condret
7984fae603
Move i4004 asm to anal ##anal
2022-06-01 07:55:29 +02:00
pancake
cc6d99b71b
Update output for some v850 tests
2022-05-31 03:43:51 +02:00
pancake
3b0ae93165
Fix last covs from recent changes (v850 spaces/uaf, macho/io nullderefs)
2022-05-31 02:14:16 +02:00
pancake
ebaa1ca210
Check return codes on some write() calls
2022-05-30 17:16:56 +02:00
pancake
f72af0713e
Fix meson build and update v850 tests
2022-05-30 16:26:36 +02:00
pancake
575ef7265a
Remove the v850.gnu plugin ##asm
2022-05-30 14:13:09 +02:00
pancake
1bb66144aa
Fix disp[ep] regression for v850.np ##disasm
2022-05-30 12:52:46 +02:00
pancake
96c7bba68c
Fix nullderef in ae??
2022-05-30 10:47:29 +02:00
pancake
b4f1739565
Don't ignore invalid subcommands of i
##shell
2022-05-28 01:26:10 +02:00
pancake
1333c1e702
Implement and document iz* and izz* ##shell
2022-05-27 02:30:02 +02:00
rhl120
54dfebc93f
Set the prj.name to "" on exit
2022-05-26 20:24:40 +02:00
pancake
93d9860f41
Add test for 'q' return code bug and minor cleanup r2r ##tests
2022-05-26 12:41:49 +02:00
pancake
73721d1ca4
Support gmake
in the testsuite (BSD runs) ##tests
2022-05-26 11:45:59 +02:00
pancake
cefa1a7a30
Handle pd1 and pi1 (imm without space) ##shell
2022-05-26 11:16:48 +02:00
pancake
85c77e26b3
wb -> wX, wb = write big endian bits in byte ##write
2022-05-23 01:33:42 +02:00
pancake
b43fa41f2d
Improve ascii art output of pfb
##print
2022-05-22 23:21:58 +02:00
pancake
5e48458dae
Initial implementation of pfb, binary formatting ##print
...
* pfb 3b2b10b foo bar cow
* Integrate with bit editor via '='
* Handle '=' in visual esil debugger
* Add tests and ascii-art output
* Handle bitvalue boundaries up to 64bits
2022-05-22 22:53:41 +02:00
pancake
8c5ffa6fe2
Use RArchConfig in RPrint ##api
...
* Unify seggrn, segbas, bits and endian into a single referenced struct
2022-05-22 01:02:56 +02:00
pancake
a7903b2612
pdrj: change JSON output, group instructions by basic blocks ##json
2022-05-21 03:55:41 +02:00
pancake
af4c941825
Add ec bgprompt
for a colorful shell and visual prompts ##cons
...
* ec bgprompt=red blue ; ec prompt=green yellow
2022-05-20 21:47:30 +02:00
pancake
38f9bd6f8b
Fix x64 test and lock regression
2022-05-19 23:03:30 +02:00
pancake
4a57e81cb6
Fix another race condition in the macho parser ##bin
2022-05-19 08:15:14 +02:00
condret
75b39537fa
Remove RAnalPlugin.jmpmid and use ANAL_ARCHINFO_ALIGN instead ##anal
2022-05-18 06:37:15 +02:00
condret
8292fff042
Move VAX disassembler to anal ##anal
2022-05-18 03:26:04 +02:00
rax2
2db5006135
Support cls, clz for 32 and 64 bit registers in the arm64 assembler ##asm
...
* adding tests (64, 32 registers) for cls, clz aarch64 instructions
* implement a function for cls, clz 32, 64 registers
2022-05-17 16:29:01 +02:00
condret
03afa631ff
Kill anal.endsize ##anal
2022-05-16 20:57:45 +02:00
pancake
c5a40784e1
Save and restore the register values ##projects
2022-05-12 16:29:23 +02:00
pancake
1a9e3faefc
Update s390 tests without the at&t option
2022-05-09 00:55:01 +02:00
pancake
224b377aa0
Fix webtest script
2022-05-08 10:44:53 +02:00
pancake
b02c652713
Select 'arm' fatmacho slice on -a arm.v35 ##bin
...
* Was trying to select the 'arm.v35' arch sub binary
* Plugins specify the arch before a dot if any
2022-05-08 04:11:17 +02:00
pancake
0693e54354
Move 8051 test into db/tools/rasm2 and fix null deref in asm ##asm
2022-05-07 22:27:58 +02:00
pancake
d3a112e91a
Rename anal.cpp.abi to anal.cxxabi, and add options for dbg.malloc ##shell
2022-05-06 10:30:11 +02:00
gogo2464
a39c0001d8
Add 8051 disassemble/reassemble checks ##tests
2022-05-05 17:54:42 +02:00
pancake
4be0d2b9a4
Confirm project deletion and honor scr.interactive on reopen ##project
...
* Add broken test for projects reopen
2022-05-05 11:44:13 +02:00
pancake
a314a7ebde
Add P* and P! to dump script and run shell in project dir ##projects
...
* Also makes Pd `diff` the project instead of deleting it
2022-05-05 10:05:07 +02:00
pancake
2285551007
damn linux
2022-05-03 13:46:11 +02:00
pancake
f598b68e41
Better error handling in pushd/popd ##shell
2022-05-03 13:21:31 +02:00
pancake
e645f522a0
Make this pushd test a bit more portable
2022-05-03 13:17:14 +02:00
pancake
86e7fd1a14
Fix #19830 - implement pushd/popd commands ##shell
2022-05-03 11:53:52 +02:00
pancake
bc5cea046e
Fix last covs
2022-05-03 09:11:28 +02:00
pancake
cf888f19fd
Improve binary input handling in rasm2 with 0b
and Bx
##tools
...
* Skip _ separator `0100_0101` so its good for the eyes
2022-05-02 23:33:13 +02:00
pancake
ad20568b70
Handle mul and udiv in the arm64 assembler
...
* Fix arm64 assembler regressions
* Improve rasm2 binary input detection
2022-05-02 22:26:38 +02:00
pancake
0491b69033
R2_ env vars are overriden by !!
, so setting asm.{arch,bits} is enough
2022-05-02 19:51:59 +02:00
pancake
8cfd779be6
Make this rasm2 test portable
2022-05-02 17:31:44 +02:00
pancake
6fb79e65cf
Fix endian issue in binary input for rasm2 and add tests ##assembler
2022-05-02 16:17:41 +02:00
pancake
677a116795
Typedef facility under t
for pf
support ##types
2022-05-02 01:47:25 +02:00
pancake
cbd43edef5
Move tricore from asm to anal ##arch
2022-05-02 00:38:20 +02:00
pancake
b405e54f3f
Fix asm/arch/cpu initialization issues
2022-05-01 22:18:43 +02:00
pancake
0da98904c1
Fix null derefs in anal.avr plugin and improve defaults ##anal
2022-05-01 22:18:43 +02:00
pancake
cdd4748192
Move asm.s390* into anal.s390* and fix aod when not using asm plugins ##refactor
2022-05-01 22:18:43 +02:00
pancake
7be543919e
Fix #6647 - check map bounds in the pebble bin loader ##bin
2022-04-26 10:53:39 +02:00
pancake
abf317753c
Fix #19990 - Fix aoml
for non-x86 targets and add tests ##analysis
2022-04-26 00:02:23 +02:00
pancake
59f9681da4
Fix #7094 - Add direction information in xrefs ##analysis
...
* This PR breaks the ABI, so it won't go in until 5.7
* Needs new tests and massage the broken ones
* Remove duplicated reftype.toString() method
* Make more tests run on non-x86
* Update and fix tests
2022-04-25 22:19:23 +02:00
Sylvain Pelissier
5718360c03
Improve /ca speed and add JSON output for crypto function
2022-04-25 14:19:54 +02:00
pancake
138906e27f
Use RLog in RCons ##api
2022-04-25 01:12:44 +02:00
pancake
560f7fb424
Introduce r_arch.h. Use RArchConfig in RAnal and improve RRef api ##api
...
* Fix unaligned issue in hex asan test
2022-04-24 23:11:26 +02:00
pancake
4823451497
Fix build and tests
...
* Fix one x86-64-specific test to pass everywhere
2022-04-22 05:46:34 +02:00
Lazula
0404d2d845
Fix #19966 - Reset seek in r_debug_execute() to real PC ##debug
...
* Add return value output arg to r_debug_execute()
* Always restore the full 4k at the stack
* Fix maybe-uninitialized warning
* Use raw RCore->offset instead of RCore.seek()
* Move seek handling into cmd_debug()
2022-04-21 18:08:21 +02:00
pancake
664e8800d6
Remove all the deprecated abi apis
2022-04-19 15:40:29 +02:00
Lazula
724d23a6c0
Refactor, fix, and test dd
command ( #19842 )
...
* Test dd commands
* Improve dd help text
* Move dd command into a self-contained function
* Take correct arguments for ddr and ddw
* Add O_CREAT to dd+ flags for python-style automatic creation
* Add permission checks to ddr and ddw
Linux debug file descriptor info bugfixes (`linux_desc_list()`)
* Fix normal files being reported as sockets due to inaccurate S_IFSOCK check
* Fix file descriptor permission reporting
* Implement offset checking functionality
2022-04-19 07:43:54 -05:00
pancake
e7816e4d67
Improve RLog API and usage, document R2_LOG_ vars in r2 -hh ##core
2022-04-19 11:14:57 +02:00
pancake
9598fe5592
Use wx+ instead of wx;s+16 in pc* command ##print
2022-04-19 01:50:37 +02:00
Lazula
1c5cbeaf45
Update tests
2022-04-19 01:49:12 +02:00
Lazula
81afa3aa98
Improve dx help and add dxa test
2022-04-19 01:49:12 +02:00
Lazula
540a357b8e
Add dxrs command and tests for dx/dxr/dxrs
2022-04-19 01:49:12 +02:00
pancake
349d292986
Fix cmd_graph test when running on non-x86-64
2022-04-18 23:47:18 +02:00
pancake
f3b0097822
Update tests with new argument/variable ordering
2022-04-18 23:47:18 +02:00
pancake
bfa549eb43
Add tests for argument ordering issue #19876
2022-04-18 23:47:18 +02:00
pancake
3b3b83637e
Fix #19876 - Smarter local variable and argument sorting ##disasm
...
* Fix tests
2022-04-18 23:47:18 +02:00
pancake
f933c5e86c
Show args before vars in afv summary also in pd
##disasm
2022-04-18 23:47:18 +02:00
RHL120
7435f87982
Add an error return to r_core_project_cat ##projects
...
* Minor changes to r_core_project_cat
* Use core->num->value in r_core_project_cat
* Add a test
* Fix project return value
* Fix Pc return value test
Co-authored-by: Lazula
2022-04-17 18:58:26 +02:00
Lazula
8bc9678023
Fix trailing space in om
command when map->name
is empty ( #19965 )
2022-04-17 18:11:33 +02:00
Lazula
f3162fda40
Refactor and rename __core_cmp_bits to cmp_bits
2022-04-16 17:19:12 +02:00
pancake
c234538b8c
Fix #16335 - tp
not handling blocksize properly ##types ( #19955 )
2022-04-13 20:43:30 +02:00
pancake
d4a7c58bd0
Fixes for the Trim.args() for ?e ##shell
2022-04-13 10:14:15 +02:00
pancake
cb097fe79b
Fix three tests failing on non-x86-64 hosts
2022-04-13 01:38:45 +02:00
Dennis Goodlett
a0a5428154
Update byte signature flag name ##signatures
2022-04-12 11:31:27 +02:00
pancake
31cd732a00
Honor escaping semicolons in macro definitions ##shell
...
* WIP (disabled by default) make RStr.trimArgs() work on ALL commands
* Honor escaping special chars in command calls
* Add test for echo and macro definitions
2022-04-11 16:54:26 +02:00
pancake
13c2f23dd7
Fix #19940 - infinite loop in x/i on invalid instructions ##crash
...
* Also affects pdi and pde
2022-04-11 13:47:47 +02:00
pancake
296d094f36
Add the cmp
command to compare two (alias) files ##shell
2022-04-10 18:16:18 +02:00
Lazula
0c4af43def
Trim extra spaces before second argument in ?==
2022-04-09 22:38:20 -05:00
pancake
c566ff2f7e
Implement @c: temporal seek operator ##shell
2022-04-09 14:06:38 +02:00
pancake
6d5628cd96
Add psa command to print any kind of string ##print
2022-04-08 20:36:10 +02:00
Sergi Àlvarez i Capilla
153bcdc29f
Fix oobread in NE parser ##crash
...
* Reported by @hmsec via huntr.dev
* Reproducer: necrash
* BountyID: 52b57274-0e1a-4d61-ab29-1373b555fea0/
2022-04-08 20:29:01 +02:00
Fernando Domínguez
8317a34b7e
Fix glob matching in several cases ##shell
2022-04-02 20:34:56 +02:00
pancake
6ffe920cf9
Add missing 'direction' field in the output of aoj ##analysis
2022-04-02 13:42:46 +02:00
Lazula
2a4f12d43d
Partial #19887 - Refactor, document, and test cw
command ( #19889 )
...
* Change cmpwatch functions to bool to better report status
* Ensure existing watchers are correctly overwritten
* Speed up other cw commands by leaving list iteration early
* Emit output in subcommands when no watchers matched the query
* Add cwq and cwj
* Add cw tests
* Change cmd_cmp_watcher() to return int instead of void
* Add r2book reference
* Require confirmation before deleting or reverting all watchers
* Change watcher cmd to malloc'd char*
2022-03-31 11:07:32 -05:00
Sergi Àlvarez i Capilla
9857ac6d4e
Add tests for return value emulation
2022-03-30 17:56:35 +02:00
condret
d1ebd1588a
Fix bug in z/, that creates misplaced functions ##zign
2022-03-29 14:34:41 +02:00
Lazula
c7dfa70ade
Remove last vestiges of newshell
2022-03-29 08:07:18 +02:00
pancake
374b86e866
Fix seek history for the 's..' partial seeks ##shell
2022-03-27 14:24:02 +02:00
pancake
42d05b7bd1
Add support for parsing swift metadata from macho binaries ##bin
...
* __const section is formatted as dwords
* Fix swift5 symbol demangling on iOS / macOS
2022-03-27 11:13:07 +02:00
pancake
3760bfcd8d
Add tests for the code tokenizer and fix <<= assignments ##util
2022-03-26 10:35:13 +01:00
max-lv
7043983bd2
Fix PPC ESIL of addis instruction ##esil
2022-03-25 23:01:26 +01:00
pancake
0fd97c27a7
Assume all machos are made by clang ##bin
2022-03-25 13:43:49 +01:00
pancake
801dd326a0
Remove the hexagon from anal ##analysis
...
* Too large (2.2MB) and too slow to build, time explosion with -O2
* It's outdated and not maintained, better use r2ghidra one
* Move this code into extras (or the updated one)
* Still available via r2pm
2022-03-22 01:04:34 +01:00
pancake
69815e22e4
Fix #19838 - Show pins in the disassembly as comments ##disasm
2022-03-20 10:49:53 +01:00
aemmitt-ns
8138a5d977
Add R0 and F0 aliases, add register profile for MSP430
...
* fix arp tests
2022-03-18 15:03:09 +01:00
Sergi Àlvarez i Capilla
b0f1c3716f
Update tests related to the missing R0 in the regprofile for x86-64
2022-03-16 17:10:14 +01:00