1517 Commits

Author SHA1 Message Date
yossizap
a9478c0bb0 Added "dptj" and "dptj " (#15259) ##debug 2019-10-12 23:14:24 +02:00
Armin Weihbold
9b9103e00a Enhance drm command, add drm xmm0 functionality (#15214) ##debug
* Add shorthand versions of `drm` - `drm[bwdq]`
* Add mmx register to linux-x64
2019-10-10 04:40:08 +02:00
Armin Weihbold
db1b79b125 Fix #13118 - drf st0 - fpu regs (#15241) 2019-10-10 04:37:37 +02:00
Armin Weihbold
a4954a221e Fix drf output formatting ##debug 2019-10-09 10:18:30 +02:00
David CARLIER
d4b9746c28 Implementing debug info per pid on NetBSD ##debug (#15149)
While at it fixing little code mistake about freeing const address.
2019-09-30 11:21:09 +02:00
David CARLIER
bc8b9d73e6 Using unused map debug field on macOS ##debug (#15148)
Storing max protection data for this purpose.
2019-09-30 11:19:01 +02:00
dodococo
9d7a72f9c6 Integrate table API for p-h (#15083) ##table
* Added UTF8 and Curvy Support For Table API
* Added show footer with sum support
* Integrate star= command with table API
2019-09-24 10:46:06 +02:00
Paul I
78f2b12d0b Fix potential memleaks (#15057) 2019-09-17 02:14:32 +02:00
Paul I
4eabb42f88 Fix potential bugs 2019-09-16 09:37:43 +02:00
Lev Aronsky
5137ef6daf Fix gdb reg write byte order (#15009) ##debug
* Added ba2 so that the gdbserver backend connects correctly

* Fixes to remote gdb register writes:

1. Byte order is target-defined. Use cfg.bigendian for now. Possibly get it from target later?
2. Register number should be hexadecimal.
2019-09-11 11:05:17 +02:00
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