Lines Matching refs:lastchar
208 char *lastchar; in kdb_read() local
231 lastchar = cp; in kdb_read()
243 if (cp < lastchar) { in kdb_read()
244 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
245 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
247 *(--lastchar) = '\0'; in kdb_read()
258 *lastchar++ = '\n'; in kdb_read()
259 *lastchar++ = '\0'; in kdb_read()
267 if (cp < lastchar) { in kdb_read()
268 memcpy(tmpbuffer, cp+1, lastchar - cp - 1); in kdb_read()
269 memcpy(cp, tmpbuffer, lastchar - cp - 1); in kdb_read()
270 *(--lastchar) = '\0'; in kdb_read()
287 if (cp < lastchar) { in kdb_read()
289 cp = lastchar; in kdb_read()
300 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
302 (lastchar-buffer)) = '\0'; in kdb_read()
304 *lastchar = (char)key; in kdb_read()
305 *(lastchar+1) = '\0'; in kdb_read()
306 return lastchar; in kdb_read()
308 if (cp < lastchar) { in kdb_read()
315 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
317 (lastchar-buffer)) = '\0'; in kdb_read()
319 *lastchar = (char)key; in kdb_read()
320 *(lastchar+1) = '\0'; in kdb_read()
321 return lastchar; in kdb_read()
364 strncpy(p_tmp+len_tmp, cp, lastchar-cp+1); in kdb_read()
370 lastchar += len; in kdb_read()
375 if (key >= 32 && lastchar < bufend) { in kdb_read()
376 if (cp < lastchar) { in kdb_read()
377 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
378 memcpy(cp+1, tmpbuffer, lastchar - cp); in kdb_read()
379 *++lastchar = '\0'; in kdb_read()
389 *++lastchar = '\0'; in kdb_read()
403 if (lastchar - buffer >= 5 && in kdb_read()
404 strcmp(lastchar - 5, "$?#3f") == 0) { in kdb_read()
405 kdb_gdb_state_pass(lastchar - 5); in kdb_read()
410 if (lastchar - buffer >= 11 && in kdb_read()
411 strcmp(lastchar - 11, "$qSupported") == 0) { in kdb_read()
412 kdb_gdb_state_pass(lastchar - 11); in kdb_read()