-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgdb-8.0.patch
More file actions
22 lines (20 loc) · 829 Bytes
/
gdb-8.0.patch
File metadata and controls
22 lines (20 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff -urNdw gdb-8.0-orig/gdb/remote.c gdb-8.0/gdb/remote.c
--- gdb-8.0-orig/gdb/remote.c 2017-06-18 01:40:57.749799247 +0200
+++ gdb-8.0/gdb/remote.c 2017-06-18 01:41:27.000000000 +0200
@@ -7583,7 +7583,17 @@
/* Further sanity checks, with knowledge of the architecture. */
if (buf_len > 2 * rsa->sizeof_g_packet)
- error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
+ {
+ rsa->sizeof_g_packet = buf_len;
+ for (i = 0; i < gdbarch_num_regs (gdbarch); i++) {
+ if (rsa->regs[i].pnum == -1)
+ continue;
+ if (rsa->regs[i].offset >= rsa->sizeof_g_packet)
+ rsa->regs[i].in_g_packet = 0;
+ else
+ rsa->regs[i].in_g_packet = 1;
+ }
+ }
/* Save the size of the packet sent to us by the target. It is used
as a heuristic when determining the max size of packets that the