1407 Commits

Author SHA1 Message Date
Lev Aronsky
07be18193e Added ba2 so that the gdbserver backend connects correctly (#15003) 2019-09-10 11:42:10 +02:00
David CARLIER
fb0d361da2 Improving slighty the process status check on Darwin ##debug (#14997) 2019-09-09 21:43:19 +02:00
GustavoLCR
5bb2417119 Fixes for Windows (#14985)
* Fix dbW help message

* Fix memleak on r_w32_print_windows

* Imitate unix gotoxy behavior on Windows
2019-09-08 02:53:25 +08:00
David CARLIER
1e3a4445b4 On Darwin, expose process path ##debug (#14975)
For platforms supporting the libproc api.
2019-09-07 22:25:59 +08:00
GustavoLCR
c2287003f9 Implement Windows message breakpoints 2019-09-07 11:25:01 +02:00
GustavoLCR
88989b95a8 Fix PDB autoload
* Let PDBs be found on the symstore
* Fix flags being set on the wrong offsets
* Fix memory leaks
2019-09-05 09:49:41 +02:00
GustavoLCR
a565a5ccce Fix #12438 - Fixes for PDB (#14874)
* Fix use after free when autoloading pdb
* Use heap on td command
* Fix #12438 - Fix wrong 2 byte read for char value
2019-08-23 12:52:25 +08:00
00rsiere
fe9a03416f Notify user on hardware breakpoint hit ##debug 2019-08-19 19:29:43 +02:00
radare
e1cf65332a
Use r_sandbox_fopen instead of fopen (#14832) 2019-08-18 17:19:53 +02:00
GustavoLCR
50392fd525 Fix register writing on Windows (#14805)
* Fix register writing on Windows
* Drop unecessary use of heap
2019-08-15 13:42:32 +08:00
David CARLIER
0626013ac7 Linux debug plugin, page promotion feature ##debug
* Linux debug plugin, page promotion feature proposal.

Providing new 'dmL' debugger sub command.
This is the only system having THP feature, others are more into
 direct huge tlb equivalent ...
The system ought to be set in madvise mode and disabled on Android,
would not do any good in this environment if this is ever supported.
Once the syscall succeed, the address range ought to get the
 little 'hg' VmFlags.

* interface changes
2019-08-03 06:09:07 -07:00
David CARLIER
4ea918ec92 XNU debug, tag the processes map from dm's command. ##debug
This is just to highlight them via command like vmmap.
2019-08-02 17:11:28 +02:00
sanguinawer
4cbf27a11a Fix win32 compilation (#14722) 2019-07-31 21:57:50 +02:00
GustavoLCR
d5e3926b5d Only suspend threads if dbg.threads=true on Windows (#14689) 2019-07-30 01:49:47 +02:00
Anton Kochkov
9677804b8e
Windows native debugger refactoring ##debug ##windows
* Windows native debugger refactoring

Massive win32 native debugging code refactoring
and corresponding fixes.

* Fix hang after killing process
2019-07-29 11:19:26 +08:00
GustavoLCR
6664b2ba39 More fixes to WinDbg (#14675) ##debug ##windbg
* Fix seeking (stepping now works)
* Fix more crashes
* Fix compiler warnings
2019-07-28 11:48:46 +08:00
GustavoLCR
8a6a7ba852 Some fixes to windbg (#14666) #debug #windbg
* Fix #10505
 * Fix wrong register profile being picked
 * Fix use-after free(s) and null derefs
2019-07-27 14:29:02 +08:00
Alexander Yukhanov
0eeb2bfd7f Fix breakpoints handling for FreeBSD ##debug 2019-07-18 10:24:45 +02:00
pancake
1aebd0a26d Fix single-step in the iOS-arm64 native debugger ##debug 2019-07-18 02:30:45 +02:00
pancake
55e3da3c32 Fix xnu_thread_get_drx for iOS/arm64 ##debug 2019-07-17 23:10:03 +02:00
pancake
6c0a02bc85 Fix anoying aeim warning when debugging 2019-07-16 14:34:33 +02:00
radare
0d1c3c4f33
Honor SWI for step-over ##debug 2019-07-07 16:54:03 +02:00
Anton Kochkov
20e19d6023 More spelling fixes in the code 2019-06-20 13:36:02 +08:00
pancake
3fe39f0c38 wzr/zr/xzr register on arm64 is wired to ground ##anal 2019-06-19 18:00:51 +02:00
radare
571a080ca7
s/CORELIB/R2_PLUGIN_INCORE/g (#14295) 2019-06-13 19:12:51 +02:00
bart1e
0c3424a196 Fix small bug fix in trace (#14291) 2019-06-13 12:00:05 +02:00
pancake
8318a3fc6b Initial implementation of pasasword generators under /Cc ##hash 2019-06-11 13:21:50 +02:00
dodococo
230412830b For #14268: Implement ob= listing bin map coverage ##bin
* Added r_listinfo_new and refactored to use it
2019-06-10 13:47:04 +02:00
GustavoLCR
b3a361cd5e Initial implementation GetSingleBlock for Windows heap ##debug 2019-06-09 22:21:20 +02:00
GustavoLCR
7a10af4057 Initial implementation of heap parsing for Windows (#14218) ##debug 2019-06-05 15:20:38 -04:00
radare
a875795bb5
Completely eliminate the bytes apis in RBin ##bin
* Huge bytes->buffer on almost all the plugins, break API and ABI \o/
* Changed the way RBinFiles are created
* Changed the structure of the Sdb instance
* Improve ELF and MZ detection mechanisms to reduce false positives
* Change all the free/destroy methods to return void
* Fix "ks" shell
* Simplify and change the way RBinWrite apis work
2019-05-27 18:18:01 +02:00
Alex Gaines
8ba3d1077b Initial band-aid fix for a UAF with two seperate desc pointers (#14094) 2019-05-17 21:19:26 +02:00
Riccardo Schirone
66f7403245 Rewrite the RBuffer API to make it safer and adjust the codebase ##refactor (#13656)
* Reimplement r_buf_fread/fwrite
* Add slice buffer and introduce readonly field
* Do nothing if size is 0
* Prevents an overflow when 8 is subtracted from size.
* Fix ragg2 when patching outside currently existing buffer
* Implement r_mem_mmap_resize for systems where mremap is not defined
* r_buf_buffer can be called with no size arg as well
* Use size_t instead of ut64
2019-05-15 15:34:06 +02:00
sanguinawer
2bba203ebb Fix hardware breakpoints (DRX) on Windows ##debug 2019-05-14 18:00:04 +02:00
radare
967b9e3a82
Fix some LGTM warnings (#14047) 2019-05-13 14:09:33 +02:00
xarkes
47153d9dfd Fixed missing parameter for linux i386 (#14026) 2019-05-10 12:44:52 +02:00
Florian Märkl
23e906ea70 Fix some warnings 2019-05-10 10:57:29 +02:00
pancake
5d646d3551 Fix some warnings in the linux-debugger code 2019-05-08 11:59:57 +02:00
radare
5b0c648b5b
Initial implementation of dr. and ar. commands ##debug 2019-05-05 03:21:23 +03:00
dodococo
6896064553 Fix #13880: Add dt= ##print 2019-04-28 19:30:15 +02:00
Cyrill Leutwiler
501f6ab016 Fix dg in Linux by using r_debug_ptrace instead of ptrace ##debug 2019-04-21 00:38:36 +02:00
MK
61680079a7 Code refactoring the theme based colorization to reduce derefs ##cons 2019-04-16 15:56:41 +02:00
Riccardo Schirone
820e3dbe73
Improve r_buf_buffer and remove r_buf_get_at (#13676)
* Make r_buf_buffer return a ut8 and the associated size of the buffer
* Remove r_buf_get_at uses and make it static
2019-04-15 13:24:15 +02:00
Anton Kochkov
b858e7e10e Fix #13430 - Kill MinGW remnants ##deprecate 2019-03-31 12:03:07 +02:00
Riccardo Schirone
3f4580b031
Make buf field private in RBuffer (#13473)
* Fix pemixed build (and include it in meson build)
* Do not use base_priv in yank, it was wrongly used.
2019-03-26 20:32:53 +01:00
MK
95f4be5ae7 dm= now honors theme (eco) settings + wx sections are highlighted ##cons 2019-03-24 23:46:33 +01:00
radare
75876f6d29
Some fixes for the debug/emul traces and initial visual mode ##debug (#13475) 2019-03-23 14:59:15 +01:00
Johannes
a3568f0098 Fix musl compatibility - ARM_VFPREGS_SIZE is defined in asm/ptrace.h (#13427) 2019-03-18 22:37:35 +01:00
GustavoLCR
c8160886d0 Make pid.c use PJ (#13424) 2019-03-18 19:16:08 +01:00
GustavoLCR
3fba693b91 Add support for UTF console input in Windows (#13338) ##windows
* Add support for UTF console input in Windows
* Convert ANSI input to UTF-8
* Convert UTF-8 to acp when calling ANSI version of functions
* Determine if Windows console output is UTF-8 on the fly
2019-03-18 16:05:38 +08:00