Commit Graph

1321 Commits

Author SHA1 Message Date
pancake
39e63acfe0 Fix last COVs (double free and memleak in grub code) 2017-07-05 13:13:53 +02:00
Sven Steinbauer
b61e278c01 Conditionally remove sh for iOS 2017-07-05 13:01:02 +02:00
j123123
f3f71b195b Add NULL check at shlr/sdb/src/json/api.c (#7859) 2017-07-05 06:52:56 +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
pancake
c57997e76e Fix r2_hbo_grub_memmove ext2 crash 2017-07-04 19:38:33 +02:00
pancake
8c3035acc2 Fix ios-sdk builds 2017-07-04 19:16:24 +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
Srimanta Barua
2424f962ce Check which vcont commands and use them if they are (#7847) 2017-07-01 21:16:48 +02:00
Srimanta Barua
ff7b6c1df2 Optimized gdbserver mem read, and added gdbserver mem write 2017-06-29 17:17:22 +02:00
pancake
48fd6485bc Update sdb 2017-06-27 23:29:56 +02:00
pancake
fc41044e93 Iterate over all DT_FLAGS, and update capstone 2017-06-27 18:16:37 +02:00
SrimantaBarua
59a5c07d8f invalidate reg cache 2017-06-26 11:39:30 +02:00
SrimantaBarua
5938053422 gdb reg caching 2017-06-26 11:39:30 +02:00
pancake
2320b29e8f Fix memleak and invalid format string for gdb 2017-06-24 20:49:59 +02:00
pancake
87fe418092 Fix #7706 - Enhance the Java assembler 2017-06-24 19:58:48 +02:00
SrimantaBarua
9651b6a997 Attach pid 2017-06-23 11:50:26 +08:00
xarkes
ca5a68ebb3 Adding files to meson + windows env refactor 2017-06-20 18:03:30 +08: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
xarkes
c1a565e381 Windows environment fix 2017-06-19 15:51:07 +08:00
Adrian Pistol
3381ae974e Fixes to #7759 which I failed to push in. (#7766) 2017-06-18 02:45:37 +02:00
pancake
473c1ba28f honor-unsigned capstone patch has been merged upstream 2017-06-18 02:00:22 +02:00
Sajjad Pourali
efe373de18 add #include <stdlib.h> for free func (#7762) 2017-06-18 01:01:11 +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
ba1bba5401 Speed up gdb considerably if gdbserver supports no-ack mode (#7763) 2017-06-18 00:58:38 +02:00
Srimanta Barua
040ea8cafd Bug-fixes for read/write mem (#7758) 2017-06-17 03:02:05 +02:00
xarkes
675fa9b9ff Windows fixes and fix graph tests 2017-06-16 21:18:50 +02:00
pancake
0b4eb1740c Update the capstone-x86-unsigned patch 2017-06-15 10:07:20 +02:00
Srimanta Barua
fe6372339d Corrected gdbserver register-setting 2017-06-14 15:38:10 +02:00
Srimanta Barua
e5e860a3ea Added loading of offsets 2017-06-14 15:38:10 +02:00
Zohn_Z
76f0ce7c9f Several fixes for ragg2
* fixed some bugs in rcc_pushstr in egg_lang.c
* fix bugs when strings within ',' and strating with non-zero char
* fix some error fixes
* fix the segment fault when calling functions with arguments
* add support for directory in include
* make some little changes
* add support for include and alias
* add some debug eprintf
* fix wrong label bugs in "while" syntax and rename some label
* fix odd syntax in "while" and "if"
* rename the labels
* add support for if\-else
* make some little changes for pretty print
* take a snapshot before writing confusing mathop
* finish mathop
* delete some unnecessary code in if-else frame to bypass test
* reindent all the thing
2017-06-14 15:35:29 +02:00
xarkes
46deac0dde Fixing appveyor build (#7735) 2017-06-14 13:45:48 +02:00
pancake
6c37a9aa10 Add serial support in RSocket for gdb:///dev/ttyUSB0:9600 2017-06-12 22:25:58 +02:00
pancake
966b6475c4 Fix warnings in rcons and update www-m 2017-06-12 17:20:34 +02:00
pancake
bda42cb592 Update the www-t 2017-06-12 15:33:21 +02:00
pancake
54150fa3db Fix last covs 2017-06-12 11:28:54 +02:00
pancake
65000a7fd9 Fix #7723 - crash in ext2 GRUB code because of variable size array in stack 2017-06-12 09:57:30 +02:00
Srimanta Barua
d81f369fa1 Fix gdb client packet size (#7703)
* Fixes for packet too long
* Proper escaping in packets and run-length encoding
* Removed old cache code
* Removed currently unnecessary code from client initialization
* Preparation for customized packet sizes
* Better packet-size configuration
* Minimum packet size (for AVR)
* mem_write too
* Corrections to packing code
* Was overcompensating for AVR. (pkt_sz = 16 => read_mem_len = 8)
2017-06-11 02:12:44 +02:00
pancake
aad2d70552 Fix some warnings 2017-06-09 03:22:18 -11:00
Sajjad Pourali
028099f185 fix an unimportant warning (gdbserver/core.c) (#7695) 2017-06-07 16:27:28 +02:00
pancake
608d10dc4b Fix grub warnings 2017-06-06 18:46:21 +02:00
pancake
90480d325b Fix last covs 2017-06-05 13:23:39 +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
Sajjad Pourali
347e72a8ad Remove Unused variable (bt) in tccgen.c (#7668) 2017-06-03 11:55:32 +02:00
pancake
b15b3d71fb Return early on grub-ext2 error 2017-06-01 19:17:15 +02:00
Francesco Tamagni
1c6ee8dd3a Honor cpu on anal_mips_cs and add/fix some mips64 instruction (#7643)
* Honor cpu on anal_mips_cs and add/fix some mips64 instruction
* Add mips2 capstone patch
* mips: add v2 cpu, remove 64v2, mips32/64 is default
2017-06-01 18:18:15 +02:00
Anton Kochkov
f4a2b07139 TCC - Saving types across sessions and add Arch/OS specific defines 2017-06-01 16:57:00 +02:00
pancake
9a21711c5d Fix #7650 - Division by zero in Ext2 code from Grub 2017-06-01 13:14:11 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
pancake
91daa516eb Fix build for android-mips 2017-05-30 19:39:22 +02:00