Commit graph

264 commits

Author SHA1 Message Date
pancake
f7fbbc419e Add dh in anal.x86-64.reg and fix some arm/x86 esil bugs 2016-02-22 01:14:06 +01:00
pancake
74b23f10b9 Merge branch 'xnu' of https://github.com/alvarofe/radare2 2016-02-06 22:37:52 +01:00
Álvaro Felipe Melchor
efa2a8ecdf xnu: step, breakpoint working with mach exception 2016-02-06 19:53:29 +01:00
Álvaro Felipe Melchor
feea7f4d17 xnu: change logic handle exception
instead of a thread waiting for incoming messages, i've implemented
wait functionality above mach_msg, now i have to make it work
with r2 and avoid while (1) in the code, understand better the
references and start thinking about edge cases
2016-02-02 20:27:57 +01:00
pancake
44a86928cc Fix some of the warnings in #4013 2016-01-27 03:14:19 +01:00
pancake
90e2fc3031 Fix reg-write in gdb-thumb and tiny io cache optimization 2016-01-27 00:26:49 +01:00
Álvaro Felipe Melchor
c372743315 xnu: get rid of ptrace even for attach and detach
some rework in order to handle mach message as mach_exc_server and alike does
api change in plugin debug, now the function detach receive a pointer to RDebug
trying to deallocate port when are not needed any more
2016-01-23 22:50:28 +01:00
Álvaro Felipe Melchor
d9e77ca0d1 xnu: first series of patches to use mach exceptions
* use set_trace_bit and clear_trace_bit macros

* use PT_ATTACHEXC since PT_ATTACH will be deprecated in the future
and we are interested in receiving mach exceptions

* first attempt to handle mach exceptions

* api change: added a parameter to r_core_setup_debugger
at least in OS X this function was producing double attachment.
I've added a boolean value to indicate when use dpa.

* added pipe to communicate between main process and traced process
by far this is not a good implementation. We should develop a better
approach/design to save all the exceptions and handle them accordingly.
This is the initial implementation

* bring back ptrace for stability and in order to merge this into master
2016-01-18 22:24:16 +01:00
pancake
9051fed9e9 Fix #3951 - rarun2 with stdin and support for strings 2016-01-13 22:15:13 +01:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
2b51bf1acd Fix #3759 - ood on OSX 2015-11-25 11:52:29 +01:00
skuater
513200a7fa Fixes for the w32 debugger 2015-11-24 23:28:50 +01:00
pancake
46b5340093 Fix various inconsistencies in the iOS debugger 2015-10-31 00:51:44 +01:00
pancake
77d34628d7 Fix @b: 2015-10-23 17:11:04 +02:00
pancake
a05ac7eaa4 RDebugPlugin.arch.typeof(char*) 2015-10-22 03:11:03 +02:00
skuater
99e2333395 dbg.libs/dbg.unlibs implementation. 2015-10-16 11:23:32 +02:00
Riccardo Schirone
6420f03107 debug/p/debug_native: don't waitpid only on IOS
waitpid is necessary on OS X.
2015-10-15 22:13:12 +02:00
skuater
c72caa67ac Implement dbg.libs/unlibs for w32 2015-10-13 02:18:14 +02:00
pancake
7a04833eac Little refactoring for w32dll handling from rdebug 2015-10-12 18:49:16 +02:00
pancake
747c7bbacb More fixes for io.mach.write 2015-10-11 03:07:53 +02:00
pancake
196d7db68d Honor asm.bits=64 in ios.dbg, very wip much test 2015-09-22 01:49:14 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Álvaro Felipe Melchor
1d4ebdeb25 some refactoring & added threads field in RDebug 2015-09-01 18:45:08 +02:00
skuater
b9569ad92a Implementation 'dd' for windows debugger. 2015-08-26 23:34:52 +02:00
pancake
2e1f7c8b2d Implement dd to list filedescriptors for OSX/iOS 2015-08-26 01:55:37 +02:00
Álvaro Felipe Melchor
d8b1ee5b9b More cleanup in debug 2015-08-26 00:47:15 +02:00
skuater
50e881d929 Initial implementation 'dmm' for windows. 2015-08-26 00:37:38 +02:00
pancake
325759d744 Fix dmm for Linux 2015-08-24 01:58:34 +02:00
pancake
4dff5cca5e Some some COVs related to control flow and memory leaks 2015-08-24 01:58:36 +02:00
pancake
7c3ef24314 Delegate dmm logic into the native plugin.
- Add native iOS/OSX support to list modules
- Generic fallback used for the rest of platforms
- Update sdb to fix ~{}
- Fix ARM64 analysis typo issue
2015-08-24 01:29:35 +02:00
pancake
68a1b94947 Fix w32 build 2015-08-20 00:24:02 +02:00
Álvaro Felipe Melchor
fb93dffde3 more cleanup in debug_native.c - linux 2015-08-19 17:31:00 +02:00
SkUaTeR
240486f123 Update debug_native.c
Add support for windows at r_debug_info
2015-08-18 02:48:37 +02:00
pancake
62e631a514 Add segfault and abort debug stop reasons 2015-08-17 00:55:07 +02:00
pancake
d22ac1228e Initial implementation of RDebugReason. See di command 2015-08-17 00:16:25 +02:00
yetmorecode
4b55af759c Fixed mutiple process/thread handle mismatches and reworked tid2handler function. 2015-08-13 20:44:18 +02:00
yetmorecode
2e347da121 Removed w32 specific process_handle member from RDebug. 2015-08-13 20:44:17 +02:00
pancake
91bf85cb7a Some more cleanup in debug 2015-08-13 04:07:54 +02:00
yetmorecode
ecd4de662d Implemented missing r_debug_native_kill on w32 2015-08-12 01:42:21 +02:00
yetmorecode
667cdecd37 Enhanced shell output for win32 native debugging
Fixed multiple whitespace issues
Removed unnecessary include for string.h
2015-08-11 09:17:23 +02:00
Álvaro Felipe Melchor
c959d92c9d WIP refactor debug 2015-08-11 08:53:05 +02:00
pancake
0639261e26 Add more details for OSX code signing 2015-07-23 03:34:46 +02:00
pancake
d2233a896b Add de Debugger Esil API for advanced software watchpoints
- Implemented in r_debug_esil_* APIs
- Support for step-into and continue
- Expressions can be regs, numbers, math operations, ranges, comparisons..
- Honor dbg.prestep for stepping before or after analysing
- read-write-exec watchpoints using native debug backend and esil emulation
- OSX/iOS debugger error message is now nicer
- anal/rpnesil renamed to esil
- Add esi,edi in osx regprofile
- Add r_cons_is_breaked() for consistency
2015-07-21 06:11:42 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
pancake
cae1d3c8cc Initial work to support ios-arm64 builds 2015-07-07 00:23:08 +02:00
pancake
61091809b3 Begin the debugger refactoring 2015-06-26 00:37:52 +02:00
pancake
c6b0a5307f Add dbg.btalgo, remove dead code and fix null deref in previous commit 2015-06-25 16:40:39 +02:00
iessa s alkuwari
b439ba4dde backtrace improvements 2015-06-25 15:19:43 +02:00
pancake
6f7d511cb7 Initial rework for iOS (arm+arm64) single stepping (not yet working) 2015-06-22 16:55:28 +02:00