GDB7.6 Remote 'g' packet reply is too long
2013-05-06 01:03
387 查看
修改gdb/remote.c文件,屏蔽process_g_packet函数中的下列两行:
if (buf_len > 2 * rsa->sizeof_g_packet)
error (_(“Remote ‘g’ packet reply is too long: %s”), rs->buf);
在其后添加:
if (buf_len > 2 * rsa->sizeof_g_packet) {
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;
}
}
if (buf_len > 2 * rsa->sizeof_g_packet)
error (_(“Remote ‘g’ packet reply is too long: %s”), rs->buf);
在其后添加:
if (buf_len > 2 * rsa->sizeof_g_packet) {
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;
}
}
相关文章推荐
- Remote 'g' packet reply is too long 解决方法
- Qemu 调试内核 出错 Remote 'g' packet reply is too long:
- Remote 'g' packet reply is too long问题的解决
- GCC出现warning: integer constant is too large for 'long' type"
- 32位嵌入式处理器编程:warning: integer constant is too large for 'long' type
- Eexception is com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'PIC' at
- Data truncation: Data too long for column 'name' at row 1
- This client is too old to work with working copy '...'
- Data truncation: Data too long for column 'big_bit' at row 1
- 在程序中写了一段代码向数据库中插入数据,出现了data too long for column 'name' at row 1的问题。
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- com.mysql.jdbc.PacketTooBigException: Packet for query is too large (2017898 > 1048576)
- MySQL中Packet for query is too large (1327736 > 1048576)错误
- SSH - Data truncation: Data too long for column 'name' at row 1
- com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'title' at row 1
- Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'content' a
- data too long for column 'Auser' at row 1
- The major.minor version '49.0' is too recent for this tool to understand.
- SQLSTATE[22001]: String data, right truncated: 1406 Data too long for column 'dtdate' 解决方法
- 【Hibernate错误解决办法】Could not execute JDBC batch update; Data too long for column 'name' at row 1