Commit graph

734 commits

Author SHA1 Message Date
Adrian Pistol
d8f5cdb11c io_gdb: gdb://host:port/pid support; Add gdbr_{attach,detach,detach_pid,kill_pid} to gdbclient. (#7759)
Try to activate extended mode; Attach helper function requires extended mode to actually do something.

Tries to attach to the given pid in io_gdb.
This isn't proper, but it's better than running into the two-pid-vals-no-sync issue.
2017-06-18 00:59:13 +02:00
Srimanta Barua
fe6372339d Corrected gdbserver register-setting 2017-06-14 15:38:10 +02:00
Ayman Khamouma
a5a6b25d27 Implement dmp command for Linux 2017-05-29 02:44:11 +02: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
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
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
pancake
ad54e9ddf1 Refix mingw32 build 2017-05-10 00:34:05 +02:00
pancake
69b4c61b8a Fix mingw32 build 2017-05-09 22:57:47 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
Srimanta Barua
a4d4002ce0 Reorganized shlr/gdb in preparation for gdbserver 2017-05-07 11:53:17 +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
Michael Scherer
a6bc8798e3 Use the defined structure for r_debug_plugin_t
This should change nothing, just bring some consistency in
the codebase with others debug plugins.
2017-04-21 00:51:14 +02:00
Michael Scherer
4bf871af36 Fix error message, since that's the rap plugin, not the GDB one 2017-04-20 23:25:38 +02:00
pancake
e076734fb9 Fix #7307 - Remove harmless warnings reported by a Debian user 2017-04-18 16:22:06 +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
Sebastien Marie
80453e0792 Fix BSD build after 94d85cad32 (#7279)
Retrieve UID information from kvm interface, and pass it to
r_debug_pid_new() function.
2017-04-15 13:04:20 +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
alvarofe
0bb94293c3 Another fix up due to r_debug_pid_new change 2017-04-10 00:44:42 +02:00
alvarofe
114974232e Fix compilation error 2017-04-10 00:43:06 +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
radare
3d65ec6903 Fix #7088 - Remove io->raw and .keepio 2017-03-22 16:42:58 +01: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
leberus
c5149f97b7 Fix: Fixed regression pointed by #6650 (#6672) 2017-02-03 18:20:07 +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
bd25a763d8 Fix null deref and infinite loop when building with no plugins 2017-02-02 13:25:21 +01:00
leberus
4fd1e990d9 Add: coredump refactoring + RDebugMap offset field (#6633) 2017-02-01 22:17:59 +01:00
leberus
30743e9b20 Fix: #6616 crash in crash core generation 2017-01-31 22:14:21 +01:00
zonkzonk
56366df728 Removing path in shell redirections 2017-01-31 22:13:32 +01:00
leberus
82f282c629 Add: dbg.libs/unlibs for linux (#6567) 2017-01-24 20:22:36 +01:00
pancake
41602c4212 Fix android build 2017-01-18 13:46:39 +01:00
Sevan Janiyan
0e4b401635 Upstream patches from pkgsrc/devel/radare2 (#6491)
* Upstream patches from pkgsrc/devel/radare2
Switch to using egrep instead of non-portable "grep -e".
Add support for SunOS.

* Add support for SunOS.

* FIONREAD is defined in sys/filio.h on SunOS.

* Ask find(1) to look for files with desired extension rather than searching for
all files & fishing out the desired extension in the pipeline, with grep.
2017-01-18 00:47:46 +01:00
leberus
286ca4d0ed Add: support for dbg.follow.child option (#6525) 2017-01-18 00:40:30 +01:00
leberus
f4b8fbbc77 Fix: remove linux specific and add braces 2017-01-16 12:22:24 +01:00
pancake
2a83f21a3e Make gcc6 warnings happy 2017-01-15 22:02:57 +01:00
leberus
8f3a276cf9 Fix: *BSD build (#6494) 2017-01-12 11:19:46 +01:00