if(net_slirp_redir((char*)buf) < 0)
continue;
- printf("SDB listening on port from %d to %d\n", port, port+9);
+ fprintf(stdout,"SDBD established on port %d\n", port+1);
success = 1;
break;
}
fprintf(stderr, "it seems too many emulator instances are running on this machine. Aborting\n" );
exit(1);
}
- setenv( "SDB_PORT", (char*)buf, 1);
- fflush(stdout);
/* Save base port. */
SLP_base_port = port;
sprintf(tmp,"0013host:emulator:%d",port+1);
socket_send(s, tmp, 30);
- printf("sent '%s' to SDB server\n", tmp);
- fflush(stdout);
+// printf("sent '%s' to SDB server\n", tmp);
+// fflush(stdout);
}
while (0);
#include "arch_init.h"
#include "vl.h"
#include "ui/qemu-spice.h"
+#include "sdb.h"
//#define DEBUG_NET
//#define DEBUG_SLIRP
* when bus is created by qdev.c */
qemu_register_reset(qbus_reset_all_fn, sysbus_get_default());
qemu_run_machine_init_done_notifiers();
+
+ /* call sdb setup function */
+ sdb_setup();
qemu_system_reset();
if (loadvm) {