Commit graph

131 commits

Author SHA1 Message Date
Anton Kochkov
33b2c6362e
Fix debugless build on E2K (Elbrus) platforms (#3165) 2022-11-06 21:08:09 +08:00
Giovanni
e453f8ba76
Use only x64 for optimizations and portable for x86 (#3135) 2022-10-27 15:14:03 +02:00
Giovanni
5168303b6d
Update blake3 to use cpu extensions (#3108) 2022-10-26 23:27:08 +02:00
Khairul Azhar Kasmiran
f3a4200c4e
Fix gcc12-asan mpc -Wformat-overflow= warnings (#3081) 2022-10-09 18:54:08 +08:00
Giovanni
5b1e5e6762
Support blake3 hash algo (#3030) 2022-09-17 18:38:21 +02:00
Dean
59b38e6efa
Add /*<type>*/ comments everywhere (#2986)
Adds /*<type>*/ comments and a linter check from rz-bindgen to enforce
their existence and consistency

Also includes the following fixes made when adding the annotations:
* removed unused intern_table arguments in pyc_dis.c, pyc_dis.h, asm_pyc.c
* removed unused classes argument from place_nodes in agraph.c
* removed unused recurse and recurse_bb functions in canalysis.c
* removed unused vars field from RzPrint struct
* removed unused RzAnalysisType* structs from rz_analysis.h
* removed unused list field from RzEgg struct
* fixed bug in bp_plugin.c where duplication-checking logic iterates over the wrong list
* removed unused q_regs field from RzDebug struct
* removed unused backtrace field from RzDebugPlugin struct
* removed unused classes_list field from RzBinNXOObj struct
* removed unused methods_list and classes_list fields from RzBinZimgObj struct
2022-09-11 13:04:53 +08:00
Giovanni
ade374378e
Add free-pascal demangling support (#3011)
* Add free-pascal demangling support
* Fixed tests
2022-09-06 10:39:58 +08:00
Khairul Azhar Kasmiran
f09d8e0ee4
Fix gcc12 rzgdb -Wuse-after-free warning (#3004) 2022-09-04 13:45:48 +08:00
Giovanni
3752e24b98
Update rz-libdemangle (#2984) 2022-08-27 02:35:07 +02:00
Riccardo Schirone
9ba89d8116 core/cmd: rewrite rz_cmd_macro API 2022-08-26 07:53:43 +08:00
Anton Kochkov
fe1af40ad2 Update libdemangle.wrap 2022-08-24 22:08:34 +08:00
Florian Märkl
b85636317c Drop libuv dependency
libuv was only ever used for the tcp server for almost 4 years. Since
the non-libuv implementation of that is working now, it can be dropped
entirely without sacrificing functionality.
2022-08-06 13:20:52 +02:00
Riccardo Schirone
efdafde7da Remove sdb.wrap file 2022-07-19 11:46:35 +02:00
Riccardo Schirone
6c665c6098 Use Rizin specific macros instead of the ones from SDB 2022-07-17 12:11:13 +02:00
Riccardo Schirone
0c9b295dd9
lzma: fix compilation on s390x (#2801) 2022-07-11 19:54:59 +08:00
Riccardo Schirone
3363579337 Update libzip to v1.9.2 2022-07-04 19:05:50 +08:00
Riccardo Schirone
98acbb041a build: use gnu99 globally instead of per-project 2022-07-04 19:05:50 +08:00
Riccardo Schirone
2f1e39818e Add liblzma subproject 2022-07-02 10:12:26 +02:00
Riccardo Schirone
2987e035da hash: use RzHash in most hash APIs 2022-06-28 21:55:26 +08:00
Riccardo Schirone
9ea7c2fa5a RzHash: rename everything in librz/hash to RzHash prefix 2022-06-28 21:55:26 +08:00
Giovanni
648882d544
Add libmspack and add idpx to extracts compressed pdb (#2728)
* Add libmspack, cabextract and add idpx to extracts compressed pdb
* Remove cabextract from CIs since it is not anymore required.
2022-06-27 23:52:07 +02:00
GustavoLCR
416f1650cd
Update libdemangle.wrap (#2735) 2022-06-24 13:18:19 +08:00
Riccardo Schirone
fdd7c6200c
Fix compilation on Termux and Haiku (#2671)
* build: fix compilation on Termux by using meson checks
* build: fix compilation on termux, which is recognized as linux

meson identifies termux as "linux" system, however pthread_sigmask is
not available there. Since pthread-fixes.c just defines
uv__pthread_sigmask we include it also in regular linux builds, because
the function is then used automatically instead of pthread_sigmask only
when __ANDROID__ is defined.

* subprojects/rzwinkd: define cc in meson.build before use
2022-06-07 23:44:41 +02:00
Riccardo Schirone
4664f791ac build: properly use #cmakedefine 2022-06-07 12:18:51 +02:00
GustavoLCR
3bc60f6800 WinKD: Add nullability/ownership markers to functions 2022-06-05 00:27:35 +08:00
GustavoLCR
ab498718c3 WinKD: Use ut* macros instead of uint_* types 2022-06-05 00:27:35 +08:00
GustavoLCR
f10e5d865a Debug: Allow dce in all platforms
* Used for `WinKD` and `Windows` debug
2022-06-05 00:27:35 +08:00
GustavoLCR
953ffb47fb WinKD: Switch to current process and thread 2022-06-05 00:27:35 +08:00
GustavoLCR
cd1f5469ab WinKD: Use kernel module address from version packet 2022-06-05 00:27:35 +08:00
GustavoLCR
811a9a2819 WinKD: Fixes for packet sending/receiving
* Ignore resent packets
* Resend packet if we didn't get an ACK
* Break if Ctrl-C is pressed
* Always wait for a state change packet in debug event wait function
2022-06-05 00:27:35 +08:00
GustavoLCR
e63faa6005 WinKD: Fix incomplete register write
* Fix register read size
2022-06-05 00:27:35 +08:00
GustavoLCR
4f3c4935af WinKD: Fix incomplete reads 2022-06-05 00:27:35 +08:00
GustavoLCR
dbed351f19 DMP/WinKD: Basic memory mapping info 2022-06-05 00:27:35 +08:00
Riccardo Schirone
24524f26b5 Update SDB to e1a015aa1f07169bb70a2260a1262230ffaa3f6a 2022-05-25 17:46:49 +02:00
Anton Kochkov
5aef0d8a98
Update libdemangle for MSVC fixes (#2556)
Co-authored-by: GustavoLCR <gugulcr@gmail.com>
2022-05-15 20:57:27 +08:00
GustavoLCR
43b9f6487a WinKD: Fix OOB write 2022-05-11 18:39:51 +08:00
GustavoLCR
d70e0b01ba WinKD: Fix kd connection through a pipe 2022-05-11 18:39:51 +08:00
Mario Haustein
52f6de18f0 Make capstone include path consistent 2022-05-10 11:10:04 +02:00
GustavoLCR
be498444ec WinKD/DMP: Add Windows 10 20H2 and 21H2 profiles 2022-05-10 10:22:49 +08:00
GustavoLCR
0cb346e39a WinKD: Only modify seq_id after receiving an acknowledgment packet 2022-05-10 10:22:49 +08:00
GustavoLCR
de1b2e8d50 WinKD: Timeout if amount of tries to get packet exceeeds limit 2022-05-10 10:22:49 +08:00
GustavoLCR
a19ac23ee8 WinKD: Verbose log if address is not mapped 2022-05-10 10:22:49 +08:00
GustavoLCR
a9ea591ade WinKD: Keep a cache of current thread context 2022-05-10 10:22:49 +08:00
GustavoLCR
3cabf34561 WinKD: Remove winkd_lock_tryenter()
* Use `winkd_lock_enter()` and make it possible to break it through `RzCons`
2022-05-10 10:22:49 +08:00
GustavoLCR
210f87573e WinKD: Use DBGKD_VERS_FLAG_PTR64 to identify 64-bit machines 2022-05-10 10:22:49 +08:00
GustavoLCR
4c95c19251 WinKD: Factor out some common code into a function 2022-05-10 10:22:49 +08:00
GustavoLCR
0296e87b26 WinKD: Save kernel module info from state change packet 2022-05-10 10:22:49 +08:00
GustavoLCR
b6a84d284c WinKD: Handle reset packet type 2022-05-10 10:22:49 +08:00
GustavoLCR
c7a6312af5 WinKD: Add verbose logging to winkd_wait_packet() 2022-05-10 10:22:49 +08:00
GustavoLCR
e9cffc0afa WinKD: Create profile dynamically if not found
* Download kernel module and PDB
* Load kernel PDB info
2022-05-10 10:22:49 +08:00