Lines Matching refs:lastchar
201 char *lastchar; in kdb_read() local
224 lastchar = cp; in kdb_read()
234 if (cp < lastchar) { in kdb_read()
235 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
236 memcpy(cp-1, tmpbuffer, lastchar - cp); in kdb_read()
238 *(--lastchar) = '\0'; in kdb_read()
249 *lastchar++ = '\n'; in kdb_read()
250 *lastchar++ = '\0'; in kdb_read()
258 if (cp < lastchar) { in kdb_read()
259 memcpy(tmpbuffer, cp+1, lastchar - cp - 1); in kdb_read()
260 memcpy(cp, tmpbuffer, lastchar - cp - 1); in kdb_read()
261 *(--lastchar) = '\0'; in kdb_read()
278 if (cp < lastchar) { in kdb_read()
280 cp = lastchar; in kdb_read()
291 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
293 (lastchar-buffer)) = '\0'; in kdb_read()
295 *lastchar = (char)key; in kdb_read()
296 *(lastchar+1) = '\0'; in kdb_read()
297 return lastchar; in kdb_read()
299 if (cp < lastchar) { in kdb_read()
306 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
308 (lastchar-buffer)) = '\0'; in kdb_read()
310 *lastchar = (char)key; in kdb_read()
311 *(lastchar+1) = '\0'; in kdb_read()
312 return lastchar; in kdb_read()
358 strncpy(p_tmp+len_tmp, cp, lastchar-cp+1); in kdb_read()
364 lastchar += len; in kdb_read()
369 if (key >= 32 && lastchar < bufend) { in kdb_read()
370 if (cp < lastchar) { in kdb_read()
371 memcpy(tmpbuffer, cp, lastchar - cp); in kdb_read()
372 memcpy(cp+1, tmpbuffer, lastchar - cp); in kdb_read()
373 *++lastchar = '\0'; in kdb_read()
383 *++lastchar = '\0'; in kdb_read()
397 if (lastchar - buffer >= 5 && in kdb_read()
398 strcmp(lastchar - 5, "$?#3f") == 0) { in kdb_read()
399 kdb_gdb_state_pass(lastchar - 5); in kdb_read()
404 if (lastchar - buffer >= 11 && in kdb_read()
405 strcmp(lastchar - 11, "$qSupported") == 0) { in kdb_read()
406 kdb_gdb_state_pass(lastchar - 11); in kdb_read()