Commit Graph

65 Commits

Author SHA1 Message Date
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
Anton Kochkov
e0b20554ec Try to implement ARM32 gdb reg profile 2014-10-23 20:32:22 +04:00
Anton Kochkov
179dab57ec Fix GDB for ARM 2014-10-23 17:40:32 +04:00
pancake
5a3d3253cd Fix #1419 - wrong mips esil for LW 2014-09-25 00:47:43 +02:00
pancake
240e0d98a9 Fix some warnings 2014-09-20 10:13:48 +02:00
defragger
fdceb6373c fixes the 16bit issue, we still need to improve the performance here 2014-09-16 16:07:16 +02:00
defragger
eb300a5412 adds setting and removing breakpoints for gdb remote 2014-08-15 03:35:56 +02:00
jvoisin
bcbeb3c066 Fix some gcc warnings 2014-08-11 16:07:17 +02:00
jvoisin
6b5176e0a8 Fix another batch of coverity issues 2014-07-28 21:58:44 +02:00
pancake
7e06e13b3b Fix #1133 - gdbr warnings, and some other 2014-07-21 18:19:31 +02:00
pancake
15312da46b Fix w32 build 2014-07-17 10:34:53 +02:00
pancake
42215d3610 %hhx is not supported by mingw32 2014-07-17 10:30:31 +02:00
defragger
dde49da67c Adds the use of r_socket implementation 2014-07-17 09:45:00 +02:00