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
GustavoLCR
951a33c490
WinKD/DMP: Use backtrace_generic() for dbt for arm and x86
2022-06-05 00:27:35 +08:00
GustavoLCR
dbed351f19
DMP/WinKD: Basic memory mapping info
2022-06-05 00:27:35 +08:00
GustavoLCR
a73b845304
WinKD/DMP: Use cfgSetI core bind method
2022-05-10 10:22:49 +08:00
GustavoLCR
6b95dc16ae
WinKD/DMP: Quote pdbpath for idp command
2022-05-10 10:22:49 +08:00
GustavoLCR
0c4308d07e
Add module name to PDB flag name ( #2435 )
...
* Add PDB flags inside `symbols` flag space
* Use `rz_bin_get_baddr()` in `rz_core_pdb_load_info()`
* Fix tests
2022-03-29 12:49:34 +08:00
GustavoLCR
e945fb0e31
Introduce rz_file_dos_basename() API
...
Use it whenever we need to interact with paths that can contain `\` as a separator as well
2022-03-29 09:27:51 +08:00
GustavoLCR
76c2b1f9f4
DMP: Fill in module->name ( #2434 )
2022-03-23 13:38:35 +08:00
GustavoLCR
dd81b6629a
Implement getting a backtrace from a Windows Kernel Dump for x64 ( #2387 )
...
* PE: Add header to mappings
* PE: Add temp defs for unknown `UNWIND_CODE_OPS`
* Core Bind: Add `RzCoreBinApplyInfo` binding
* DMP/WinKD: Always add kernel modules to mod list
* Implement Windows x64 SEH backtracing
* Fix `ompb` not prioritizing maps
* Optimize `rz_io_map_priorize()`
* DMP: Implement backtrace for x64
2022-03-15 10:45:02 +01:00
GustavoLCR
f9568b74dc
DMP: Fix using dL to initialize dmp debug plugin
2022-03-03 21:52:41 +08:00
GustavoLCR
cfbb860ddb
DMP: Show physical pages if no process is selected
...
* Fix leak
2022-03-03 21:52:41 +08:00
GustavoLCR
07aa4a5250
DMP: Mark currently running processes as r
2022-03-03 21:52:41 +08:00
GustavoLCR
b634893cad
DMP/WinKD: Read running status of threads
2022-03-03 21:52:41 +08:00
GustavoLCR
739c1171eb
DMP: Use rz_offsetof() instead of 'offsetof()'
2022-03-03 21:52:41 +08:00
GustavoLCR
84fbd53c7d
WinKD/DMP: Use RzLog API
2022-03-03 21:52:41 +08:00
GustavoLCR
11c366583e
DMP: Fix ETHREAD address on triage dump
...
* Gets `ETHREAD` address from `KPRCB`
2022-03-03 21:52:41 +08:00
GustavoLCR
7c6810e2ee
DMP: Read context from KPCRB if target is on a cpu
...
* Get `KiProcessorBlock` address from PDB
* Read KPCRBs and check if selected thread is running in one of the
processors
* Read context from it if so
2022-03-03 21:52:41 +08:00
GustavoLCR
246cf762ff
DMP: Dynamically create profile if not found
...
* Adds `rz_type` dependency to `rz_debug`
2022-03-03 21:52:41 +08:00
GustavoLCR
ce97cb50df
DMP: Fixes for Triage Dump
...
* Fix ETHREAD and EPROCESS mapping for Triage Dumps
* Fix VA mapping for Triage Dumps
* Save register context inside `DmpCtx`
* Fix attaching to thread
* Fix selecting process/thread 0
2022-03-03 21:52:41 +08:00
GustavoLCR
a68cd0772a
DMP: Download kernel PDB & executable if needed
2022-03-03 21:52:41 +08:00
GustavoLCR
849b734803
Support debugging DMP files
...
* Add `dmp` debug plugin
* Set `dbg.backend` later in rizin main when the backend is `dmp`
2022-03-03 21:52:41 +08:00