255 Commits

Author SHA1 Message Date
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
Ren Kimura
0adb01dcb8 Fixed wrong logic of forward execution of dsb (#7798)
* Fixed wrong logic of forward execution of dsb

* Fixed typo
2017-06-21 07:52:14 -05:00
Ren Kimura
32042123e2 Add plain checkpoint system (#7782) 2017-06-20 05:09:58 -05:00
Srimanta Barua
7631d38c4a Fix typo in debug.c 2017-06-15 13:48:49 +08:00
Srimanta Barua
683e115ee5 Moved r_debug_get_baddr to debug API 2017-06-14 15:38:10 +02:00
Ren Kimura
487b305a8d Changed finding logic of session key (#7719) 2017-06-10 12:38:23 +02:00
Ayman Khamouma (ak42)
779147011d Fix #7655: continue on disabled breakpoints (#7697) 2017-06-07 21:26:03 +02:00
Ren Kimura
3dcd3b79bd Renewed dsb command for new session format (#7651) 2017-06-01 10:47:12 +02:00
pancake
78ecad3d3b Fix dmi honoring dmm on Mac debugger 2017-05-29 11:45:13 +02:00
pancake
ba6dce4d73 Add REgg as dependency of RDebug 2017-05-28 22:38:10 +02:00
Srimanta Barua
06aae3080e Added kill signal for gdb client 2017-05-25 15:41:07 +02:00
pancake
da72aa7b88 Fix uaf in dp- 2017-05-23 12:26:21 +02:00
0x0dada
7327642241 Fix incorrect modes various .c files. (#7287) 2017-04-16 10:10:04 +02:00
Ren Kimura
ce5758b739 Add reverse singlestep command 'dsb' (#7116) 2017-03-25 16:00:25 +01:00
Giovanni
43532031c4 Fixes for windows and some are also global (#6936) 2017-03-08 08:49:31 +01:00
pancake
46b453b668 Fix #6704 --disable-debugger build for some platforms 2017-02-06 01:57:24 +01:00
Polshakov Dmitry
249532bf53 Add support non-numeric signal numbers in RRunProfile (#6558)
* Add support non-numeric signal numbers in RRunProfile
* Add signal util module
* Remove old `signal_resolve` implementation
2017-02-02 14:34:44 +01:00
Lars Haukli
71cc67e390 Windows debugger: Added dce command. Fixed dmm commands. (#6628)
* Use double quotes to make .dmm* work on Windows
* Fix r2pipe.cmdj('dmmj') command on Windows. Report correct path when listing modules ('dmm')
* Removed unused local variable
* Added 'dce' command for windows
* Escape backslashes for JSON output only
* Do not include r_debug_native_continue() for __CYGWIN__ builds. Removed unnecessary memset.
* Added exception for CYGWIN to not escape backslashes in path
* Escape backslashes in both file paths and map names. Use map name for 'f mod.%s' instead of file path
* Added more exceptions for CYGWIN
* Validate escaped strings
2017-02-02 13:27:39 +01:00
pancake
8a787dc787 Fix #6538 - Hack to fix the broken debugger when doing aaaa 2017-01-25 00:52:36 +01:00
leberus
82f282c629 Add: dbg.libs/unlibs for linux (#6567) 2017-01-24 20:22:36 +01:00
leberus
286ca4d0ed Add: support for dbg.follow.child option (#6525) 2017-01-18 00:40:30 +01:00
leberus
dc5be7a767 Improving debug on linux (#6435) 2017-01-11 17:39:09 +01:00
SkUaTeR
8e6be1b54b Thread list and some fixes for the w32 debugger (#6355) 2016-12-21 09:07:58 +01:00
pancake
50d73d1547 Fix a lot of memleaks, null derefs and undef behaviour thanks to clang-analyzer 2016-12-19 16:44:51 +01:00
pancake
6296f4b794 Add option to stop syscall tracing -before- the syscall is executed 2016-12-09 22:19:47 +01:00
Elia Geretto
31e8d7cb68 Fix various memory leaks (#6272)
* Fix bits_ranges memory leak in anal.c
* Fix anal->reg memory leak and prevent use after free in plugin.c
* Fix reg->allregs memory leak in reg.c
* Fix dbg->plugins memory leak in debug.c
* Fix io->plugin_default memory leak in io.c
* Fix plugin_free not deallocating plugin in bin.c
* Adapt to style guidelines
* Fix memory leak in r_bin_object_free and resolve double free
* Fix o->kv memory leak in r_bin_object_set_items
* Fix memory leak pushing arena on reg init
* Fix io->plugin_default memory leak in io.c
* Adapt to style guidelines
* Fix pfile memory leak in radare2.c
* Add braces to if in bin.c
2016-12-01 09:09:59 +01:00
Álvaro Felipe Melchor
87724384d1 added r_cons_break_{push/pop} to handle ^C better
Besides an UAF has been fixed afecting only ELF
2016-11-21 16:56:12 +01:00
SkUaTeR
20a9bbd14a Rreg fpu changes (#6191)
* test with rreg for values greater than 64
* check for redirected regs in debug reg sync
2016-11-14 23:58:29 +01:00
pancake
e3b32c58a9 Add indegree and outdegree in afi and afij 2016-10-30 12:16:46 +01:00
pancake
02950398a9 Add utf8 rune support for RCons.canvas 2016-10-21 01:24:40 +02:00
pancake
cea2c80d56 Show flags in dm, add dmq and add resolver in rnum 2016-10-16 02:34:54 +02:00
pancake
490d2a498a Fix #2571 - dcs is working again 2016-09-26 13:40:25 +02:00
saucec0de
5df82dd364 dso problem (#5825) 2016-09-22 15:31:05 +02:00
saucec0de
c908e0f818 Fixing ds in x86 (#5802)
* Fixing ds in x86
* Several updates due to new OP_TYPE
2016-09-22 13:42:06 +02:00
Jon Gentle
503b3a9e98 Reduce the requirements of dko to any reason with a signum (#5806) 2016-09-20 09:25:06 +02:00
Sven Steinbauer
2996538700 Fix #5633 - Change x == NULL to correct syntax 2016-09-19 14:44:47 +02:00
dromero
20ed81af73 Fixing debugging problems at MIPS (32bits) (#5800) 2016-09-19 02:10:43 +02:00
pancake
c0692f3e53 Revert "Fix #5472 - ds on call and jmp (#5785)"
This reverts commit 6ccc0455260064579302885a660b6db9820407ef.
2016-09-18 23:19:52 +02:00
saucec0de
6ccc045526 Fix #5472 - ds on call and jmp (#5785) 2016-09-18 21:41:15 +02:00
pancake
cadb0bd845 Several fixes for gdb:// on avr, still wip 2016-09-13 03:31:54 +02:00
Tiago Gasiba
f0a2d8657d Add support for conditional breakpoints running r2 commands 2016-09-01 19:11:46 +02:00
Tiago Gasiba
1639113cb1 Fix swstep on x86-32 for UCALL/UJMP instructions 2016-08-28 13:56:29 +02:00
Tiago Gasiba
3a7a46441e Fix swstep on call [addr] 2016-08-27 19:19:58 +02:00
Jeffrey Crowell
0db6959c6d fixup grammar in r_debug_kill 2016-08-25 18:27:11 +00:00
Joshua J. Drake
b526aded9c Don't restore breakpoints on STEP recoil (#5583)
As the comment says, we need to pretend to satisfy the caller. For some reason
I also restored the breakpoints here. I cannot for the life of me figure out
why since it should be ok with in all cases.

For swstep=false, the step will stop right away (regardless of any breakpoints)
and thus need to remove breakpoints anyway.

For swstep=true, a breakpoint is created on the next instruction and would stop
too and thus need to remove breakpoints anyway.

So yeah, don't do this. Thanks for the report skuater!
2016-08-22 17:13:13 +02:00
Álvaro Felipe Melchor
ab3f37589c Rework previous patch 2016-07-14 22:37:33 +02:00
mttbrown
dd116c65cd fixed breakpoint size based on arch 2016-07-14 22:18:45 +02:00
Jeffrey Crowell
e65ceb5dee fix some memory leaks reported by coverity 2016-07-09 01:41:56 -04:00
skuater
39c4a0c35f some fix in windows debugger 2016-07-06 12:44:52 +03:00
Joshua J. Drake
329acd33e4 Fix #5196: Make tracepoints work again
To accomplish this, we add a new debug stop reason R_DEBUG_REASON_TRACEPOINT
and return it from r_debug_wait whenever a tracing breakpoint is hit. Then, in
r_debug_continue_kill, we recognize this state and do the old r_debug_step
trick to progress the session. Previous rework of r_debug_recoil takes care of
the heavy lifting and we continue on our way.
2016-07-02 05:14:56 +03:00