Lines Matching refs:buffer

33 /* Size of buffer used for remote communication.  */
51 char buffer[PBUFSIZ];
70 (*gdb_kod_query) ("oI;", buffer, &bufsiz);
72 strcpy (buffer, "Cisco IOS/Classic/13.4 0.0.0");
76 for (i = 0; count && buffer[i] != '\0'; ++i)
78 if (buffer[i] == ' ')
82 if (buffer[i] == '\0')
84 if (strcmp (&buffer[i], "0.0.0"))
85 error ("Remote returned unknown stub version: %s\n", &buffer[i]);
112 char buffer[PBUFSIZ], command[PBUFSIZ];
151 (*gdb_kod_query) (command, buffer, &bufsiz);
155 strcpy (buffer, "KAL,01,1,f500005f;f500005f;");
157 strcpy (buffer, "KAL,02,0,a500005a;a500005a;de02869f;");
161 if (strlen (buffer) == 0)
168 /* If we don't get a `K' response then the buffer holds the
170 if (buffer[0] != 'K')
172 (*gdb_kod_display) (buffer);
178 if (strncmp (buffer, "KAL,", 4))
188 count = strtol (&buffer[off], &s_end, 16);
189 if (s_end - &buffer[off] != 2 || buffer[off + 2] != ',')
198 if ((buffer[off] != '0' && buffer[off] != '1')
199 || buffer[off + 1] != ',')
205 done = buffer[off] == '1';
210 prev_id = &buffer[off];
211 if (strlen (prev_id) < 8 || buffer[off + 8] != ';')
217 buffer[off + 8] = '\0';
225 if (strlen (&buffer[off]) < 8 || buffer[off + 8] != ';')
231 buffer[off + 8] = '\0';
232 sync_ids[sync_next++] = xstrdup (&buffer[off]);
236 if (buffer[off] != '\0')
264 (*gdb_kod_query) (command, buffer, &bufsiz);
266 strcpy (buffer, "KAI,");
267 strcat (buffer, sync_ids[i]);
268 strcat (buffer, ",ffef00a0,cd00123d;");
271 if (strlen (buffer) == 0)
277 if (strncmp (buffer, "KAI,", 4))
284 if (strncmp (&buffer[off], sync_ids[i], 8)
285 || buffer[off + 8] != ',')
293 if (strlen (&buffer[off]) != 2 * 8 + 2
294 || buffer[off + 8] != ','
295 || buffer[off + 17] != ';')
301 buffer[off + 8] = '\0';
302 buffer[off + 17] = '\0';
307 (*gdb_kod_display) (&buffer[off]);
309 (*gdb_kod_display) (&buffer[off + 9]);