Commit Graph

152 Commits

Author SHA1 Message Date
Giovanni
397d6b1211 Fixed shlr java warnings and thread regression warning (#9447) 2018-02-21 05:03:03 +01:00
pancake
f1be2a2af3 Fix more crashes related to reopen gdb:// 2018-02-18 03:18:30 +01:00
pancake
eef94066a0 Fix some crashes for 9410 2018-02-18 03:08:17 +01:00
whitequark
c816dc7e66 Don't try to build shared libraries if configured as --without-pic.
Specifically, avoid building all plugins as non-static objects,
as well as some supplementary libraries. In fact, a large amount
of plugins was already gated to build as shared objects only with
WITHPIC=1, but this was not done consistently.
This gating has been moved to */p/Makefile.

Building these shared objects is a waste of time and breaks
the --without-pic build unless CFLAGS is forced in the make
invocation.
2018-01-11 23:09:22 +01:00
Srimanta Barua
2d2c38bb2c add sp to mips profile (#8958) 2017-12-05 11:39:13 +01:00
Srimanta Barua
a7af340174 Fixed double free in the gdbclient 2017-11-28 17:59:26 +01:00
pancake
9f12bb05cc Fix last covs 2017-11-23 14:38:28 +01:00
Srimanta Barua
21abaf4b51 Changed to a more correct system for parsing xml (#8863) 2017-11-22 12:03:09 +01:00
Srimanta Barua
7c6a992df6 fix appveyor 2017-10-05 11:01:44 +02:00
Srimanta Barua
95b3a74052 don't make signal handler do much work 2017-10-05 11:01:44 +02:00
Srimanta Barua
5eebf1efba sort of remove infinite loop 2017-10-05 11:01:44 +02:00
Srimanta Barua
852584ffac simulavr (plus some general) gdb fixes 2017-10-05 11:01:44 +02:00
pancake
71a6177b8a Fixes for the gdb-avr backend, lower min pkgtsz and fix tid<1 issue 2017-09-25 10:47:27 +02:00
pancake
b787a49d54 Fix stepping with Apple's debugerver 2017-09-23 00:06:04 +02:00
pancake
8520138afe Fix buffer overflow issues in gdb-read operations 2017-09-22 23:56:49 +02:00
Srimanta Barua
3640a7cb8b paged reading for gdb (otherwise it doesn't work on qemu) (#8572) 2017-09-20 13:33:45 +02:00
Srimanta Barua
915589b51d cleaned up and corrected memory reading (#8568) 2017-09-19 15:02:49 +02:00
pancake
08f64793ea Implement r_io_map_reset and new command omm 2017-09-13 00:23:26 +02:00
pancake
6d1be4ad06 Make r2k and gdb rwx by default 2017-09-12 01:26:38 +02:00
Srimanta Barua
7071e51d1a bring back a not-quite-infinite loop (#8386) 2017-08-30 23:51:12 +02:00
pancake
d67ecceea1 Fix infinite loop if connection is lost 2017-08-30 02:15:13 +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
Giovanni
52826ff3ef 7 more coverity bugs fixed (#8306)
* 1379842/1379836 Resource leak
* 1379834 Resource leak
* 1379742/1379747/1379748/1379749/1379750/1379747/1379760 Resource leak
* 1379752 Resource leak
* 1379751 Double free
* 1379743 Use after free
* 1379624 Uninitialized scalar variable
* 1379332 Out-of-bounds read
2017-08-26 13:08:53 +02:00
Srimanta Barua
b44ab3f9ef wrong parenthesis on sizeof for the gdb xml code 2017-08-23 01:07:32 +02:00
pancake
94d8b8261a Fix gdbclient xml issue 2017-08-22 23:27:19 +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
9f02ca3af0 read packet waits, sends sigterm on ctrl-c. not yet done for windows 2017-08-15 21:46:22 +02:00
Srimanta Barua
9d5306a520 remove strlcpy (was breaking on windows) 2017-08-13 16:39:32 +08:00
Lowly Worm
d602844c09 fix unchecked copy from regname in gdb xml parser 2017-08-12 22:13:45 -07:00
Srimanta Barua
9d65eebb36 Additions to gdb xml parsing (#8196)
* load gdbr register array from xml
* fix (probably unimportant) memory leak
* parsing of flag types
* r2-indent
2017-08-12 10:36:46 +02:00
SrimantaBarua
e115ba98c5 fixed xml reading bug for small packet sizes 2017-08-09 16:17:03 +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
74c80f9e09 min-checks on gdb packet size (#8106) 2017-08-02 14:14:11 +02:00
pancake
bf8651454b Avoid another divbyzero in gdb code 2017-08-02 13:28:07 +02:00
Srimanta Barua
7b5de5cb51 fix divide by zero (#8100) 2017-08-02 12:13:28 +02:00
Srimanta Barua
f6f5199ef6 let gdbserver select thread (#8101) 2017-08-02 12:10:43 +02:00
Srimanta Barua
9f9192232a Fix a lot of incorrect 'garbage at end of packet' messages (#8080) 2017-08-01 11:40:33 +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
277771156c fix gdb covs (#8036) 2017-07-26 20:20:07 +02:00
Srimanta Barua
058d5fe7b0 More fixes for when process dies (#8032) 2017-07-26 15:50:55 +02:00
Srimanta Barua
d05f865f77 read registers from lldb (#8004) 2017-07-25 16:28:58 +08:00
Srimanta Barua
6f25437342 Handling of more stop reasons, cleanly close gdb connection (#7998) 2017-07-24 12:39:53 +02:00
Srimanta Barua
e4cce06671 Added reading of executed file name to gdbserver 2017-07-21 20:06:41 +02:00
Guillaume Valadon
ea8adc48da Use void in prototypes (#7974) 2017-07-20 14:50:13 +02:00
Srimanta Barua
6f2eb2843b Added command to get/set packet size for gdb io system (#7961)
* Added pktsz to io system
* Add env var to control gdb packet size
2017-07-20 11:57:29 +02:00
Srimanta Barua
8c6a05dd58 Add reporting of debug info (#7941) 2017-07-17 11:39:34 +02:00
Srimanta Barua
4916b318d8 fix memleak in gdbserver (#7940) 2017-07-17 09:30:48 +02:00