06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

pROBE+ and ESp <strong>System</strong> <strong>Calls</strong> db_input<br />

db_input Prompts and gets input from the high-level debugger.<br />

long db_input (<br />

char *inbuf, /* user input buffer */<br />

unsigned long inbuf_len, /* user input buffer length */<br />

char *prompt, /* prompt string */<br />

unsigned long prompt_len, /* prompt string length */<br />

unsigned long *nbytes /* number of bytes written */<br />

)<br />

Description<br />

Arguments<br />

Target<br />

Return Value<br />

This system call passes the string prompt to the high-level debugger (HLD) to be<br />

printed on the output screen and waits for input back from the HLD. Upon receipt<br />

of the input, it copies up to inbuf_len bytes into inbuf and writes inbuf’s length<br />

into nbytes.<br />

inbuf Points to the buffer in which db_input() writes input<br />

from the HLD.<br />

inbuf_len Specifies the number of bytes of input data to be written<br />

in inbuf.<br />

prompt Points to the string to be passed to the HLD as a prompt.<br />

prompt_len Specifies the number of characters in prompt.<br />

nbytes Points to the buffer in which db_input() writes the<br />

actual length of inbuf.<br />

68K MRI<br />

For 68K processors with MRI host tools, this system call is not<br />

supported.<br />

This call returns 0 on success and an error code on failure.<br />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 6-3<br />

6

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!