View | Details | Raw Unified | Return to bug 13984
Collapse All | Expand All

(-)remote.c (-2 / +14 lines)
Lines 6154-6161 Link Here
6154
  buf_len = strlen (rs->buf);
6154
  buf_len = strlen (rs->buf);
6155
6155
6156
  /* Further sanity checks, with knowledge of the architecture.  */
6156
  /* Further sanity checks, with knowledge of the architecture.  */
6157
  if (buf_len > 2 * rsa->sizeof_g_packet)
6157
  //if (buf_len > 2 * rsa->sizeof_g_packet)
6158
    error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
6158
  //  error (_("Remote 'g' packet reply is too long: %s"), rs->buf);
6159
  
6160
    if(buf_len > 2 * rsa->sizeof_g_packet) {
6161
        rsa->sizeof_g_packet = buf_len;
6162
        for(i = 0; i < gdbarch_num_regs(gdbarch); i++){
6163
            if(rsa->regs->pnum == -1)
6164
               continue;
6165
            if(rsa->regs->offset >= rsa->sizeof_g_packet)
6166
               rsa->regs->in_g_packet = 0;
6167
            else
6168
               rsa->regs->in_g_packet = 1;
6169
        } 
6170
    }  
6159
6171
6160
  /* Save the size of the packet sent to us by the target.  It is used
6172
  /* Save the size of the packet sent to us by the target.  It is used
6161
     as a heuristic when determining the max size of packets that the
6173
     as a heuristic when determining the max size of packets that the

Return to bug 13984