Commit graph

176 commits

Author SHA1 Message Date
Khairul Azhar Kasmiran
6cba0f4a63
Remove brackets from args in rz-test -h (#5454) 2025-10-13 11:02:47 +08:00
Khairul Azhar Kasmiran
58ab58962f
Touch up rz-run -h (#5450) 2025-10-11 12:25:32 +08:00
Khairul Azhar Kasmiran
397f03b2a8
Touch up rz-sign -h (#5443) 2025-10-09 21:34:53 +08:00
Khairul Azhar Kasmiran
7223d182ef
Remove brackets from args in rz-gg -h (#5441) 2025-10-08 10:03:44 +08:00
Khairul Azhar Kasmiran
04714648bb
Remove arg for -X in rz-gg -h (#5440) 2025-10-07 21:43:06 +08:00
Khairul Azhar Kasmiran
1edfc2f7c1
Remove brackets from args in rz-find -h (#5439) 2025-10-06 21:17:27 +08:00
Khairul Azhar Kasmiran
65752add5e
Remove brackets from args in rz-diff -h (#5438) 2025-10-05 22:13:35 +08:00
Khairul Azhar Kasmiran
deeaa15c90
Remove brackets from non-optional args in rz-bin -h (#5430) 2025-10-04 21:52:28 +08:00
Khairul Azhar Kasmiran
c65f79fff5
Remove -X from rz-bin -h (#5429) 2025-10-04 16:58:52 +08:00
Khairul Azhar Kasmiran
ff79a14c04
-h: Refactor out colored help printing code (#5421) 2025-10-01 06:02:15 +08:00
Khairul Azhar Kasmiran
3a4134280f
-h: Refactor out column width code (#5420) 2025-09-30 17:46:45 +08:00
Khairul Azhar Kasmiran
697bfa8b70
Update -h handling code to be consistent with latest (#5419)
* Rename `totalFlagAndArgLength` to `flagAndArgLength`
* Rename `maxOptionAndArgLength` to `maxFlagAndArgLength`
* Rename `optionLength` to `flagLength`
* Rename `totalLength` to `flagAndArgLength`
* Replace `sizeof(options) / sizeof(options[0])` with `RZ_ARRAY_SIZE(options)`
2025-09-28 22:36:07 +08:00
Rot127
e7c0714b9a
Remove bin.debase64 option. (#5405) 2025-09-23 00:59:12 +08:00
Khairul Azhar Kasmiran
c538df45aa
Touch up rz-ax -h (#5401) 2025-09-21 19:01:09 +08:00
Khairul Azhar Kasmiran
965ed766e3
Add I=RzIL to rz-asm -L help (#5341) 2025-09-06 17:49:36 +08:00
Khairul Azhar Kasmiran
4ec0863eab
Remove brackets from option args in rizin -h (#5336)
* Remove brackets from option args in `rizin -h`
* Update rizin man page
* Remove unused `USE_THREADS` and `ALLOW_THREADED` code
2025-09-03 23:14:31 +08:00
well-mannered-goat
438ab0cfd3
Add Linux ARM64 debug tests (#5232) 2025-07-03 02:31:25 +08:00
well-mannered-goat
48c53b0296
Add openBSD debug tests and fix errors (#5226) 2025-06-27 22:10:35 +08:00
well-mannered-goat
7117ba75ea
librz/debug: add NetBSD debug tests and fix errors (#5208)
* Fix netbsd-x86_64 register profile
* Fix native_wait in netbsd.c
* Fix netbsd attach to show error
* Add netbsd-x64 debug tests
2025-06-20 00:22:33 +08:00
Ahmed Kamal
93d914bd81
Remove Global/Static variables in path.c to make it thread safe (#5148) 2025-06-13 21:34:33 +08:00
well-mannered-goat
b25a0d0a55
Add tests for PPC64LE debugger support (#5184) 2025-06-03 11:36:19 +05:30
Rot127
51f9509d61
Enable rz-test asm tests to test for multiple instructions in a single test. (#5166)
This allows to test for assembly characteristics which are only valid in a certain context.
Here we also fix a bug in rz-asm, which didn't incremented the address before disassembly.
2025-05-26 14:05:19 +00:00
Rot127
275a12a3da
Revert "add ppc64le dbg tests (#5157)" (#5163)
This reverts commit d109dcadb1.
2025-05-23 10:11:16 +08:00
well-mannered-goat
d109dcadb1
add ppc64le dbg tests (#5157) 2025-05-22 19:22:11 +08:00
Giovanni
144b47d455
Move RzBreakpoint into RzDebug (#5124)
- Move trap/sw breakpoint into RzArch
- Remove RzBreakpointPlugin & RzBreakpointArch
- Add get_sw_breakpoint_at/get_sw_breakpoint_size_at binds
- Remove `dbh-`
- Change `dbh` to just list supported archs for sw breakpoints
- Implement correct PPC traps
- Add missing x86 breakpoint callback
2025-05-13 01:57:37 +08:00
Rot127
42dc673fa5 String/Hex-Search 6/9: Add core implementation of new search (by deroad).
Adds the core implementation of the new search.

The rough architecture is the following:

A search for a certain type of information (strings, bytes, keys etc.)
creates a collections of items to search for (byte patterns, regular expressions etc.).

Then specifies some settings how the search (number of threads, maxum hits...)
and the finding is performed (string length, inverse match etc.).

It also defines a search space, which is currently only the IO buffer.
But can be anything in the future, like a graphs or the knowledge base.

The search splits up the search space into windows (for IO: address ranges)
and dispatches each search window into a 'find()' thread.

The 'find()' handler (provided by a specific search implementation)
checks the given window and produces search hits matching the elements in the search collection.

The main search handler collects the hits of the dispatched workers
and returns them to the user.

Note: The byte and string search implementations are added in the next two commits.

Part 6/9. Likely won't build in between parts.

Co-authored-by: wargio <deroad@kumo.xn--q9jyb4c>
2025-02-22 04:12:49 +08:00
well-mannered-goat
3520054120
bin/rz-asm: -m option to list supported CPUs (#4861) 2025-01-25 13:50:53 +08:00
Rot127
708e30dc2e
Fix leaks in rz-test (#4824)
* Fix leaks in rz-test.c

* Fix leak of regex
2025-01-09 16:09:05 +00:00
billow
1330aa74c4
rz-test: add -y option to accept all (#4772)
* Add rz-test '-y' option to accept all
* Add '-y' into the help text
2024-12-22 17:20:57 +08:00
Khairul Azhar Kasmiran
c0e58b1124
Clean up rz_test_cmp_cmd_output() (#4777) 2024-12-18 21:34:56 +08:00
Khairul Azhar Kasmiran
5331f84980
Set return type of rz_strbuf_length() to size_t (#4775) 2024-12-17 20:38:16 +08:00
Khairul Azhar Kasmiran
e7b919f001
rz-test: Fix no XX if expected output truncated when REGEXP_FILTER_OUT is set (#4770)
* rz-test: Fix no XX if expected output truncated when REGEXP_FILTER_OUT is set
* Fix archos/darwin-x64/dbg tests
2024-12-16 21:37:41 +08:00
Khairul Azhar Kasmiran
325dfdad7d
rz-test: Assume -C . if db/ dir not found (#4768) 2024-12-15 18:23:58 +08:00
Khairul Azhar Kasmiran
7fa052d3af
Remove rz_test_chdir() (#4766) 2024-12-14 18:44:14 +08:00
Khairul Azhar Kasmiran
925e2e9d34
rz-test: Fix last line of diff when REGEXP_FILTER_OUT/_ERR is set (#4763) 2024-12-14 14:31:47 +08:00
Khairul Azhar Kasmiran
19ff7720d3
rz-test: Refactor call to rz_regex_full_match_str() (#4761) 2024-12-10 23:36:42 +08:00
Khairul Azhar Kasmiran
3fae9c0f1e
Fix rz-test -i fixing when REGEXP_FILTER_OUT/_ERR is set (#4760) 2024-12-09 23:01:18 +08:00
Khairul Azhar Kasmiran
82d5596b05
Revert "rz-test: Set default test dir to '.' (#4741)" (#4759)
* Revert "rz-test: Set default test dir to '.' (#4741)"
This reverts commit 9051d00b25.
* Add comment for rz_test_chdir()
* Add comment for rz_test_chdir_fromtest()
2024-12-09 18:33:14 +08:00
Khairul Azhar Kasmiran
9051d00b25
rz-test: Set default test dir to '.' (#4741) 2024-11-25 21:10:20 +08:00
Khairul Azhar Kasmiran
9f421d962a
Add -1 to man rizin (#4694) 2024-10-30 21:22:27 +08:00
wargio
5896b15354 Add elapsed time when errored or verbose 2024-09-23 14:24:41 +08:00
Khairul Azhar Kasmiran
f6d763c858
Print stderr for failing asm tests (#4646) 2024-09-22 13:33:57 +08:00
Giovanni
483b775309
Fix permission of xorencoder.asm (#4642) 2024-09-20 17:04:42 +08:00
Khairul Azhar Kasmiran
9c6d50d46a
Print asm test exit status for failing asm tests (#4640) 2024-09-18 20:20:43 +08:00
satk0
e3d27c9316
Add environment variables documentation to manpages and -hh (#4560) 2024-07-10 11:12:48 +08:00
TheN00bBuilder
ea5cee2ed0
Added documentation for MS-DOS and Win32 timestamp conversions (#4528) 2024-06-02 12:52:15 +08:00
Khairul Azhar Kasmiran
7b91fb69c2
Revert #4506 (#4519) 2024-05-27 21:50:58 +08:00
Giovanni
d19fc9d0d8
Add N_THREAD_LIMIT to limit the max number of threads (upper limit). (#4510) 2024-05-24 16:12:08 +08:00
wargio
bce7bd76c1 Refactoring rz-test to use thread safe functions. 2024-05-22 22:27:41 +08:00
Khairul Azhar Kasmiran
524119c017
rizin: Remove -Q flag (#4468) 2024-05-11 22:48:05 +08:00