This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug server/13984] gdb stops controlling a thread after "Remote 'g' packet reply is too long: ..." error message


https://sourceware.org/bugzilla/show_bug.cgi?id=13984

--- Comment #3 from Mehmet Ali SARIKAYA <sarikayameh at gmail dot com> ---
Comment on attachment 8506
  --> https://sourceware.org/bugzilla/attachment.cgi?id=8506
gdb/remote.c change set

6064 /* Further sanity checks, with knowledge of the architecture. 
6065 //SunnyBeike
6066 
6067 // if (buf_len  > 2 * rsa->sizeof_g_packet) 
6068 // error (_("Remote 'g' packet reply is too long: %s"), rs->buf); 
6069 
6070    if(buf_len > 2 * rsa->sizeof_g_packet) {
6071         rsa->sizeof_g_packet = buf_len;
6072         for(i = 0; i < gdbarch_num_regs(gdbarch); i++){
6073             if(rsa->regs->pnum == -1)
6074                continue;
6075             if(rsa->regs->offset >= rsa->sizeof_g_packet)
6076                rsa->regs->in_g_packet = 0;
6077             else
6078                rsa->regs->in_g_packet = 1;
6079         } 
6080    }
6081

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]