Commit graph

283 commits

Author SHA1 Message Date
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
condret
5cb0e7050d fix returnvalue for getbase^ 2017-09-01 01:10:32 +00:00
pancake
31604a8a02 Fix build when building with debugger but no debugger plugins 2017-08-31 19:54:50 +02:00
SkUaTeR
50c2965d4a Add getbase callback for io (#8392) 2017-08-31 19:52:07 +02:00
SkUaTeR
60dc5db0bf windows debugger fix siol (#8390) 2017-08-31 18:44:31 +02:00
josediazfer
f11fea1e2b Windows minor fixes, renamed w32 function names, added dbg.bpsysign option (#8356) 2017-08-28 10:19:57 +02:00
Giovanni
7b40f7aed1 16 more bugs fixed. most are mem leaks. (#8307)
* 1379261/1379262 Resource leak

* 1379258/1379249 Resource leak

* 1379020 Resource leak

* 1351565/1351564 Logically dead code, 1379019 Uninitialized scalar variable, 1379014 Operands do not affect result

* 1379017 Resource leak

* 1379016 Resource leak

* 1379015 Resource leak

* 1377414 Resource leak

* 1376336 Resource leak

* 1375800 Resource leak

* 1373505/1373509/1373504 Resource leak

* 1373496 Resource leak
2017-08-24 17:20:39 +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
condret
ea52254c52 add fd abstraction api, and make desc-api a bit more consistent 2017-08-19 02:23:51 +00:00
alvarofe
2e462ec8f0 Bring RIODesc from SIOL and cleanup 2017-08-18 01:31:57 +00:00
Srimanta Barua
d8099137be switching threads 2017-08-15 21:46:22 +02:00
Fangrui Song
a82a239275 Fix leaks in rcons and annotated hexdump 2017-08-13 14:01:00 +02:00
Ren Kimura
7ce197eb44 Add initial support for hw watchpoint (#8132)
* Add initial support of hw watchpoint

* Fixed parse bug

* Fixed rwx str
2017-08-06 05:27:01 +02:00
leberus
f3d11405e7 Fix debug for Linux 2017-08-02 14:49:56 +02:00
Srimanta Barua
d93977358d Small gdb fixes, and added alternate way to get baddr (#8055)
* check if 'g' is supported before switching to reading regs using '?'
* stabilize gdbserver a bit more
* added ability to get baddr even if we can't read memory map (if qOffsets packet is supported)
2017-07-29 17:58:20 +02:00
pancake
3f9232d5de Handle asm.bits=27 in rasm2 -L 2017-07-28 02:40:51 +02:00
pancake
7a74331c1e Aim to make more portable the is_dead check in debugger 2017-07-28 02:24:06 +02:00
pancake
5e60599f18 Support 27bit setups for debug and anal 2017-07-28 02:08:35 +02:00
Ren Kimura
b294c3e0d7 Add dcb (debug continue back) command (#7979)
* Add dcb (debug continue back) command
* Add braces
2017-07-23 14:47:11 +08:00
Fangrui Song
43fd42bc1c Fix a few memory leaks (#7984)
* Fix memory leak in libr/debug
* Fix memory leak in libr/core/cconfig
* Fix memory leak in libr/debug
* Fix memory leak in binr/radare2
2017-07-21 15:37:49 +08:00
xarkes
a8dc08f9c0 Fixed windows network path (\\server\file.exe) and random err (#7927) 2017-07-15 15:54:55 +02:00
SkUaTeR
80e38d0c5d fix for #7907 (#7923) 2017-07-14 16:38:27 +02:00
pancake
abaf84d857 Fix last pending warnings 2017-07-11 17:54:22 +02:00
danitorregrosa
4e7de0487c Fix #7851 - get filesystem abspath instead of URI (#7869)
* Fix #7851 - get filesystem abspath instead of URI
2017-07-07 00:32:02 +02:00
Srimanta Barua
6d5585fc68 Fix for incorrect pc after breakpoint, in x86 gdb (using signal 5) 2017-07-04 19:44:09 +02:00
pancake
50643229e7 Make Vb run dbs like key.f2 for consistency 2017-07-02 23:37:13 +02:00
Ren Kimura
fd765893dc Removed end point trace session 2017-06-28 00:56:41 +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
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