Lines Matching refs:lastchar
240 char *lastchar; in kdb_read() local
262 lastchar = cp; in kdb_read()
272 memmove(cp-1, cp, lastchar - cp + 1); in kdb_read()
273 lastchar--; in kdb_read()
281 *lastchar++ = '\n'; in kdb_read()
282 *lastchar++ = '\0'; in kdb_read()
290 if (cp < lastchar) { in kdb_read()
291 memmove(cp, cp+1, lastchar - cp); in kdb_read()
292 lastchar--; in kdb_read()
304 if (cp < lastchar) { in kdb_read()
306 cp = lastchar; in kdb_read()
318 (int)(strlen(kdb_prompt_str) + (lastchar - buffer)), in kdb_read()
320 *lastchar = (char)key; in kdb_read()
321 *(lastchar+1) = '\0'; in kdb_read()
322 return lastchar; in kdb_read()
324 if (cp < lastchar) { in kdb_read()
367 if (cp != lastchar) in kdb_read()
372 if (lastchar + len_tmp >= bufend) in kdb_read()
373 len_tmp = bufend - lastchar; in kdb_read()
377 memmove(cp+len_tmp, cp, (lastchar-cp) + 1); in kdb_read()
381 lastchar += len_tmp; in kdb_read()
382 if (cp != lastchar) in kdb_read()
390 if (key >= 32 && lastchar < bufend) { in kdb_read()
391 if (cp < lastchar) { in kdb_read()
392 memmove(cp+1, cp, lastchar - cp + 1); in kdb_read()
393 lastchar++; in kdb_read()
399 *++lastchar = '\0'; in kdb_read()
413 if (lastchar - buffer >= 5 && in kdb_read()
414 strcmp(lastchar - 5, "$?#3f") == 0) { in kdb_read()
415 kdb_gdb_state_pass(lastchar - 5); in kdb_read()
420 if (lastchar - buffer >= 11 && in kdb_read()
421 strcmp(lastchar - 11, "$qSupported") == 0) { in kdb_read()
422 kdb_gdb_state_pass(lastchar - 11); in kdb_read()