Commit Graph

77 Commits

Author SHA1 Message Date
Sajjad Pourali
028099f185 fix an unimportant warning (gdbserver/core.c) (#7695) 2017-06-07 16:27:28 +02:00
pancake
796dd28aaa Fix ext2 buffer overflow in r2_sbu_grub_memmove 2017-06-05 12:38:39 +02:00
Srimanta Barua
ad764839b2 Initial breakpoints, step, and continue for gdbserver. Plus *started* talking to GDB (#7679)
* GDB doesn't crash when connecting to us anymore

* Added initial support for breakpoints, step, continue to gdbserver
2017-06-04 22:22:01 +02:00
pancake
91daa516eb Fix build for android-mips 2017-05-30 19:39:22 +02:00
Srimanta Barua
0da8862a83 Add read reg/mem to gdbserver (#7625)
* bug fixes in client, and adding kill signal for server without multiprocess support
* commented out currently unnecessary packets sent by client
* Corrections to client kill signal code
* More functionality for gdbserver. Read regs and memory
2017-05-29 21:36:42 +02:00
pancake
4ee963ee98 Fix some clang-analyzer issues 2017-05-29 15:01:11 +02:00
Srimanta Barua
06aae3080e Added kill signal for gdb client 2017-05-25 15:41:07 +02:00
pancake
9b44b6bb23 Fixes for the -lr_socket issue 2017-05-24 02:00:56 +02:00
pancake
9e19118eff Fix latest covs 2017-05-23 11:24:04 +02:00
Srimanta Barua
d3958f00e4 Initial stub for gdbserver support
* Renaming functions, reorganizing code, adding temporary hack for closing gdbserver
2017-05-22 19:37:48 +02:00
SkUaTeR
7d7c9cb5a7 More fixes in shlr for MSVC 2017-05-16 20:14:39 +02:00
pancake
ad54e9ddf1 Refix mingw32 build 2017-05-10 00:34:05 +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
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
Michael Scherer
0e69dfbb56 Do not fail if vFile:fstat is not implemented on the remote side
See handle_vFile in ./gdb/gdbserver/hostio.c in gdb git, and the documentation
https://sourceware.org/gdb/onlinedocs/gdb/Host-I_002fO-Packets.html#Host-I_002fO-Packets

         An empty response indicates that this operation is not recognized.

vFile:fstat is not supported by gdb 7.6.1, shipped on RHEL 7, for example.
2017-04-21 10:08:18 +02:00
pancake
47d90a9842 strdup g->data in qStatus 2017-04-12 03:51:45 +02:00
pancake
65776308c9 RAR disassembler and bin plugin moved to radare2-extras 2017-04-11 13:53:58 +02:00
pancake
c1592008a0 Fix #7231 - cant connect and read memory with gdb:// 2017-04-10 17:32:07 +02:00
pancake
a8106859a5 Fix crash in gdb:// 2017-04-10 17:00:26 +02:00
Srimanta Barua
e7909f008c Improve gdb remote debugging (#7027)
* Added bitflag structure for qSupported

* Get if process is attached/created and get file name

* Set process/thread id for subsequent 'g' commands

* Use strbuf instead of big buffer,started work on fstat

* Fix indent, brackets. Use bool instead of bitflags

* Minor fixes
2017-03-20 15:26:18 +01:00
pancake
32a38d7c9b Remove the use of -ggdb 2017-02-01 22:32:11 +01:00
Paul Fertser
d9d64b6cac gdb: use simple packets instead of vCont for single-threaded (#6409)
When debugging a single-threaded application via GDB Serial protocol
some GDB servers (notably OpenOCD) do not support vCont command, so
neither step nor continue work. Even though current protocol
description deprecates plain "s" and "c" it does so only for
multi-threading cases.

Signed-off-by: Paul Fertser <fercerpav@gmail.com>
2017-01-16 01:12:18 +01:00
pancake
ea5c83ce4e Fix a bunch of malloc(0) 2016-11-08 15:09:52 +01:00
pancake
b44ec9b3e3 Add =!pkt in gdb:// and other minor fixes 2016-09-14 13:11:04 +02:00
pancake
bd5e22c17e Some more osx-ppc fixes 2016-06-06 16:20:03 +02:00
pancake
df26636c14 Fix mingw32 build after the osx-ppc changes 2016-05-01 15:17:52 +02:00
pancake
aae417badf More OSX-PPC fixes 2016-04-27 01:52:35 +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
Ido Yariv
8ee54db24e Rewrite remote gdb packet handling
This patch addresses several issues with the current implementation,
including:
- Excessive recursions
- Incorrect handling of the escape character
- Buffer size limitations
2016-02-05 17:24:00 +01:00
Ido Yariv
cba51be5b8 Skip first packet when connecting to gdbserver
QEMU seems to send a T02thread message upon connection. This can get the
client side out of sync wrt requests & responses.

To work around this, read a packet after a connection is made. This
could time out, but that should be harmless.
2016-02-03 11:29:54 +01:00
Ido Yariv
0952fd0815 Avoid needless polling on incoming gdb packets
In case the packet checksum is received, there's little point in
continuing to poll for data.
2016-02-01 12:23:52 +01:00
pancake
289aece1f9 More code cleanup for gdm debugger plugin 2016-01-27 01:56:24 +01:00
Anton Kochkov
17750b5e03 Fix AVR regprofile, disable memset optimization 2015-10-24 01:25:25 +03:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
Anton Kochkov
1eb6dfa61e Add AVR in gdb:// 2015-08-20 01:58:02 +03:00
Kamil Rytarowski
aa7edcda24 Remove redundant inclusion of ../../shlr/zip/deps.mk 2015-07-09 01:01:27 +02:00
pancake
48b4c474dc Fix iOS build after the libzip "fix" 2015-07-06 17:38:45 +02:00
Pierre Pronchery
180322823e Fix build with --with-syszip 2015-07-03 12:40:54 -04:00
pancake
8f25a9b344 Fix iOS build, crashes in reflines, analysis issues on OSX debugger and more! 2015-06-21 00:50:53 +02:00
Kamil Rytarowski
165ce9e408 Unbreak gdb build with external libzip
Caught on pkgsrc / NetBSD.
2015-06-18 18:41:10 +02:00
Anton Kochkov
7e79b198b1 Fix some more Coverity issues
Fix CID 1171365
Fix CID 1211169
Fix CID 1230038
Fix CID 1295063, 1295062, 1295061
Fix CID 1295070
Fix CID 1295068
Fix CID 12950067
2015-04-19 04:53:08 +03:00
pancake
4e6549b5ae Add some ARM anal ops and fix #2390 null deref in gdb io without debug 2015-04-19 01:28:23 +02:00
pancake
997dda6e5b Add support for iOS-simulator and static-OSX builds 2015-04-14 17:14:43 +02:00
pancake
12ea9734b5 Fix about 15 more random COVs 2015-03-21 02:04:49 +01:00
jvoisin
55f5c73008 Coverifix++ 2015-02-19 12:59:13 +01:00
pancake
28006d32cc Fix build issue reported by @PheonixOS 2015-02-03 00:52:13 +01:00
trndr
83ad35e39a Try to implement MIPS gdb reg profile 2014-11-04 02:17:35 +01:00
pancake
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00