• Home
  • Raw
  • Download

Lines Matching refs:buffer

35 static int kgdb_transition_check(char *buffer)  in kgdb_transition_check()  argument
37 if (buffer[0] != '+' && buffer[0] != '$') { in kgdb_transition_check()
39 kdb_printf("%s", buffer); in kgdb_transition_check()
41 int slen = strlen(buffer); in kgdb_transition_check()
42 if (slen > 3 && buffer[slen - 3] == '#') { in kgdb_transition_check()
43 kdb_gdb_state_pass(buffer); in kgdb_transition_check()
44 strcpy(buffer, "kgdb"); in kgdb_transition_check()
196 static char *kdb_read(char *buffer, size_t bufsize) in kdb_read() argument
198 char *cp = buffer; in kdb_read()
199 char *bufend = buffer+bufsize-2; /* Reserve space for newline in kdb_read()
205 int len = strlen(buffer); in kdb_read()
220 if (*(buffer+len-1) == '\n') in kdb_read()
226 kdb_printf("%s", buffer); in kdb_read()
233 if (cp > buffer) { in kdb_read()
244 kdb_printf("%s", buffer); in kdb_read()
253 kdb_printf("%s", buffer); in kdb_read()
256 return buffer; in kdb_read()
266 kdb_printf("%s", buffer); in kdb_read()
271 if (cp > buffer) { in kdb_read()
274 cp = buffer; in kdb_read()
284 if (cp > buffer) { in kdb_read()
291 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
293 (lastchar-buffer)) = '\0'; in kdb_read()
306 strlen(kdb_prompt_str) + (lastchar-buffer)); in kdb_read()
308 (lastchar-buffer)) = '\0'; in kdb_read()
316 p_tmp = buffer; in kdb_read()
355 kdb_printf("%s", buffer); in kdb_read()
380 kdb_printf("%s", buffer); in kdb_read()
390 if (kgdb_transition_check(buffer)) in kdb_read()
391 return buffer; in kdb_read()
397 if (lastchar - buffer >= 5 && in kdb_read()
400 strcpy(buffer, "kgdb"); in kdb_read()
402 return buffer; in kdb_read()
404 if (lastchar - buffer >= 11 && in kdb_read()
407 strcpy(buffer, "kgdb"); in kdb_read()
409 return buffer; in kdb_read()
436 char *kdb_getstr(char *buffer, size_t bufsize, const char *prompt) in kdb_getstr() argument
442 return kdb_read(buffer, bufsize); in kdb_getstr()