client_fd(0),
recv_buf(64 * 1024), send_buf(64 * 1024)
{
- // TODO: listen on socket
socket_fd = socket(AF_INET, SOCK_STREAM, 0);
if (socket_fd == -1) {
fprintf(stderr, "failed to make socket: %s (%d)\n", strerror(errno), errno);
try {
send(p->get_csr(n - REG_CSR0));
} catch(trap_t& t) {
- // TODO, can we return error here, and update 'info reg all' to display
- // it sensibly?
+ // It would be nicer to return an error here, but if you do that then gdb
+ // exits out of 'info registers all' as soon as it encounters a register
+ // that can't be read.
send((reg_t) 0);
}
} else {
self.spike.wait()
def test_turbostep(self):
- """Single step until the program exits. TODO"""
+ """Single step a bunch of times."""
last_pc = None
for _ in range(100):
self.gdb.command("stepi")