Commit graph

335 commits

Author SHA1 Message Date
pancake
a2ce68bec6 Fix #8623 - match eflags and bitregs 2017-10-09 12:39:53 +02:00
Fangrui Song
d9608fe186 Support powerpc64 PTRACE_GETREGS (#8529)
On BSD, addr and data are swapped. But on Linux, only SPARC strays.

Goodbye SPARC and Solaris.
2017-09-16 02:33:52 +02:00
pancake
ac63497b5a Remove harmless attach warning and support sparc in get/set-regs 2017-09-15 13:08:16 +02:00
pancake
94b2fc64d2 Implement RIODescData and adjust RIOMach to work with it
- Handles a magic to ensure the destination struct is the expected one
- Based on r_str_hash, but it must be cached
- Use more r_io_desc_get_pid ()
2017-09-11 01:24:13 +02:00
xarkes
958393c4ad Fixing mingw false status on appveyor (#8401)
* Fixing mingw wrong exit code when make failed
2017-09-01 10:15:39 +02:00
josediazfer
fe340937c6 FIX: Looking for CreateToolhelp32Snapshot function 2017-08-30 16:26:15 +02:00
Giovanni
e4342297c4 Various fixes for bugs from coverity + bonus (#8372)
* 1356014 Resource leak
* 1356012 Resource leak
* 1356010 Resource leak
* 1355967 Resource leak
* 1355960 Resource leak
* 1352987 Resource leak
* 1352986 Unintentional integer overflow
* 1352985 Unintentional integer overflow
* fixed coverity missed null deref
* 1347178 Resource leak
* 1347178 Resource leak
* 1346910, 1363297 Resource leak
2017-08-29 12:39:49 +02:00
josediazfer
f11fea1e2b Windows minor fixes, renamed w32 function names, added dbg.bpsysign option (#8356) 2017-08-28 10:19:57 +02:00
SkUaTeR
b0d8017be1 fix windows build (#8317) 2017-08-26 10:09:08 +02:00
pancake
c540e07d56 Fix some warnings for the windows debugger 2017-08-26 02:24:22 +02:00
pancake
758cef0fb3 Fix issue in dbgmodules that was producing errors on debugger start for XNU 2017-08-26 01:11:42 +02:00
xarkes
3a76ba056c Fix Windows memory error (#8274) 2017-08-22 20:09:52 +02:00
condret
2f201bded0 opsalamance - merge the big siol branch
- Thanks @MaskRay and @condret
2017-08-22 09:42:16 +02:00
Ren Kimura
9862367fd0 Add drx_add/delete for watchpoint (#8244)
* Add drx_add/delete for watchpoint

* Changed breakpoint callback
2017-08-20 10:39:10 +02:00
pancake
a4742a684e mingw32 fixes 2017-08-18 19:45:38 +02:00
xarkes
c1f6b29e8e Windbg code cleaning 2017-08-08 18:45:11 +02:00
josediazfer
74a22ebe07 Changes for windows (memory map, memory modules, radare commands with pipe) (#8109)
* Improvements for windows
FIX: All the memory regions of the process are shown (previously only the modules were shown).
FIX: Before only the 64-bit modules were shown, adding the flag TH32CS_SNAPMODULE32 also shows the 32bits.
FIX: In Windows 7 the stat () function fails if the temporary path ends with slash.
The r_core_cmd_pipe () function is implemented.

* FIX: Changes for windows (memory map, memory modules, radare commands with pipe) #8109
2017-08-03 16:46:06 +02:00
leberus
f3d11405e7 Fix debug for Linux 2017-08-02 14:49:56 +02:00
pancake
94df0f1b44 Fix #8074 - reg profile for xnu-x86-64 native debugger 2017-07-31 18:37:16 +02:00
Anton Kochkov
8041b3c284 Fix a few leaks 2017-07-29 20:30:02 +08:00
Guillaume Valadon
ea8adc48da Use void in prototypes (#7974) 2017-07-20 14:50:13 +02:00
xarkes
5996387f8e Refactor print_lasterr() to use r_sys_perror 2017-07-19 19:34:49 +02:00
Srimanta Barua
8c6a05dd58 Add reporting of debug info (#7941) 2017-07-17 11:39:34 +02:00
xarkes
a8dc08f9c0 Fixed windows network path (\\server\file.exe) and random err (#7927) 2017-07-15 15:54:55 +02:00
pancake
8f6de80193 Fix #7619 - Make dm consistent with dmm 2017-07-10 01:02:21 +02:00
Xiao Di Guan
6ae9d891db Fix xnu_wait stopping prematurely (#7744) (#7745)
* Fix xnu_wait stopping prematurely (#7744)
* Use task_swap_exception_ports (instead of *get* then *set*)
* Add new debugger stop reason for user-initiated breaks
* Stop the inferior when `dw` is interrupted (#7744)
* Stop the inferior after attaching
2017-06-24 17:57:11 -05:00
SkUaTeR
266686278a msvc x64 version run ok (#7814)
* msvc x64 version run ok

* fix
2017-06-24 14:25:12 -05:00
Sajjad Pourali
929a622cb0 Fix mac build with gcc 7.1 2017-05-27 12:50:20 +02:00
pancake
0b84978a8b Fix drx Debug Register set on XNU 2017-05-27 11:37:20 +02:00
pancake
20f7ac66cc Bring back drx on XNU, buggy but at least does something 2017-05-27 03:57:30 +02:00
pancake
da72aa7b88 Fix uaf in dp- 2017-05-23 12:26:21 +02:00
SkUaTeR
28f785daa0 MSVC compile correctly (WIP) 2017-05-13 00:42:00 +02:00
pancake
b24281c9c5 More fixes for mingw 2017-05-10 15:32:34 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
pancake
a66cc10d46 Fix a huge list of null derefs from clang-analyzer 2017-04-17 22:02:04 +02:00
0x0dada
7327642241 Fix incorrect modes various .c files. (#7287) 2017-04-16 10:10:04 +02:00
SkUaTeR
5406f44b06 Fix #7269 - drx-0 not working 2017-04-14 16:47:05 +02:00
pancake
33e84a9c1a Fix w32 build 2017-04-10 01:52:27 +02:00
pancake
cda1873ee7 Fix linux build 2017-04-10 01:37:56 +02:00
pancake
45889c7307 Implement Pn+, and fix bugs (thx clang-analyzer)
- Update SDB (use memmove)
- Fix garbage read in capstone x86 and lm32
- Add UT16/32/64_ALIGN macro for proper (ut16*) allocations
- Add Pn+ command
2017-04-10 00:49:02 +02:00
pancake
94d85cad32 Fix #7213 - Retrieve UID on XNU and Linux for RDebugPid 2017-04-09 23:41:32 +02:00
pancake
19833b610c Fix infinite loop in the mach debugger 2017-03-26 23:54:30 +02:00
davidpolverari
1fb422b532 Fix #6162 - Renames r_str_concat to r_str_append 2017-03-16 22:29:49 +01:00
pancake
f82930fd75 Fix latest covs 2017-03-15 12:12:55 +01:00
pancake
6eff81c201 Those ones too 2017-03-13 03:53:27 +01:00
pancake
91016693cb Avoid 100% cpu usage in Linux debugger 2017-03-08 12:31:43 +01:00
Giovanni
43532031c4 Fixes for windows and some are also global (#6936) 2017-03-08 08:49:31 +01:00
SchumBlubBlub
223dbb6538 Make reg order consistent across x86-* (#6685) 2017-02-06 00:05:47 +01:00
SchumBlubBlub
c8a403ad7c Move o[er]ax to last pos of gpr regs (#6674) 2017-02-03 23:34:10 +01:00