pancake
eb64f16fa3
Fix some null derefs in r2 gdb:// (without -d), still buggy
2017-09-12 01:51:18 +02:00
pancake
2b181659f0
Fix regprofile parsing from remote lldb on ios-arm64
2017-08-30 01:17:39 +02:00
Srimanta Barua
bbda39982b
Added backtrace to gdb ( #8361 )
2017-08-28 16:40:12 +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
Srimanta Barua
637102385d
corrections, and switch to tid reported in stop reason
2017-08-15 21:46:22 +02:00
Srimanta Barua
d8099137be
switching threads
2017-08-15 21:46:22 +02:00
Srimanta Barua
ce94f8d711
Reading xml target description and parsing into r2 reg profile ( #8124 )
...
* send qXfer packet
* reading file includes
* parse
* r2-indent
* added missing profile = tmp2;
2017-08-05 12:22:02 +02:00
Srimanta Barua
b9695773ce
added =!detach, and replaced eprintfs with io->cb_printf ( #8125 )
...
* added =!detach, and replaced eprintfs with io->cb_printf
* keep error in eprintf
2017-08-04 19:18:43 +02:00
Srimanta Barua
0f690c7997
return tid after continue ( #8079 )
2017-08-01 11:40:43 +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
Srimanta Barua
058d5fe7b0
More fixes for when process dies ( #8032 )
2017-07-26 15:50:55 +02:00
Srimanta Barua
6f25437342
Handling of more stop reasons, cleanly close gdb connection ( #7998 )
2017-07-24 12:39:53 +02:00
Srimanta Barua
8c6a05dd58
Add reporting of debug info ( #7941 )
2017-07-17 11:39:34 +02:00
Srimanta Barua
066e85554e
gdb get exec file name, and threads list ( #7908 )
...
* Thread list
* Added check if thread is dead
* Added exec_file command to io system
2017-07-13 00:33:53 +02:00
Srimanta Barua
b1996bcffe
Removed eprintfs before release ( #7865 )
2017-07-06 00:26:59 +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
Srimanta Barua
d453d7430f
pid/tid specific continue with signal for gdb ( #7848 )
...
* Corrected tid syntax, added pid/thread-specific continue
* Added continue with sig
2017-07-02 19:09:04 +02:00
SrimantaBarua
5938053422
gdb reg caching
2017-06-26 11:39:30 +02:00
Srimanta Barua
c5eb7ef058
Support for dm commands in gdb ( #7770 )
...
* Added reading of memory maps from /proc/pid/maps
* Don't enable extended mode by default, only do so when attaching to process. Otherwise can't quit gdbserver
* Better gdb file reading
2017-06-19 19:43:55 +02:00
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
Srimanta Barua
06aae3080e
Added kill signal for gdb client
2017-05-25 15:41:07 +02:00
Srimanta Barua
a4d4002ce0
Reorganized shlr/gdb in preparation for gdbserver
2017-05-07 11:53:17 +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
pancake
62de135861
Check the state of the gdb connection
2016-09-26 14:40:26 +02:00
pancake
b44ec9b3e3
Add =!pkt in gdb:// and other minor fixes
2016-09-14 13:11:04 +02:00
pancake
cadb0bd845
Several fixes for gdb:// on avr, still wip
2016-09-13 03:31:54 +02:00
pancake
a59e0ce083
Fix crash in gdb:// and some oobreads
2016-09-13 02:38:08 +02:00
Damien Zammit
1a593a6318
GDB debug for lm32 architecture ( #4696 )
...
Signed-off-by: Damien Zammit <damien@zamaudio.com>
* Missing a couple of things in previous commit
Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-04-24 23:13:00 +02:00
pancake
805e3f26e8
Fixes for lldb/debugserver on x86-64
2016-02-03 12:09:58 +01:00
pancake
90e2fc3031
Fix reg-write in gdb-thumb and tiny io cache optimization
2016-01-27 00:26:49 +01:00
pancake
32dbac517f
Several bug fixes for gdb-arm and thumb remote debugger
2016-01-26 23:36:02 +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
jvoisin
3727f0794d
Change the anti pattern if (A) free (A); for free (A);
2015-12-20 19:28:39 +01:00
pancake
8eabe785fe
Boolify RDebug API
2015-12-04 02:57:56 +01:00
pancake
95791f76c2
Refactor drp command and implement drps to query/set arena size
2015-11-18 11:29:48 +01:00
pancake
2b446ad88a
Fix #2557 - Use same regprofile for thumb and arm in gdb debugger
2015-11-18 10:48:39 +01:00
pancake
5c99eb0c3f
Uppercase register aliases
2015-10-31 01:59:01 +01:00
pancake
82eba162a9
Fix warnings in the gdb volatile memcpy hack
2015-10-29 23:31:43 +01:00
Anton Kochkov
febc213975
Bring volatile back, to prevent optimization of the memset
2015-10-30 00:58:11 +03:00
pancake
6a85a44962
Handle syscalls in asm.emu, better debug.arg and osx-syscalls
2015-10-29 11:22:49 +01:00
Anton Kochkov
17750b5e03
Fix AVR regprofile, disable memset optimization
2015-10-24 01:25:25 +03:00
pancake
a05ac7eaa4
RDebugPlugin.arch.typeof(char*)
2015-10-22 03:11:03 +02:00
Anton Kochkov
4b89b73303
Expand x86 regprofiles a bit more
2015-08-23 13:23:08 +03:00
Anton Kochkov
00256ad1e5
Disable long registers in GDB for now
2015-08-22 22:24:59 +03:00
Anton Kochkov
cc5ae7fd43
Fix GDB AVR
2015-08-22 00:50:22 +03:00
Anton Kochkov
1eb6dfa61e
Add AVR in gdb://
2015-08-20 01:58:02 +03:00
Jonathan Neuschäfer
523aa3af5c
add .version to all plugins
2015-07-12 19:05:33 +02:00
dequis
b75cbd135d
debug_gdb: handle null return value from gdbr_read_registers
...
This would crash when doing r2 -d cat -c 'dh gdb'
Now that just prints "r_debug_reg: error reading registers"
2015-05-11 11:00:42 +02:00
pancake
9fa79fbf0c
Fix build
2014-12-07 19:37:03 +01:00