mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add shorthand for -gdb tcp::1234, i.e. open a gdbserver on TCP port 1234.
This commit is contained in:
parent
4ea7fabf1d
commit
d6e8abe624
1 changed files with 2 additions and 2 deletions
|
@ -193,7 +193,7 @@ static void wait_qemu_available(void)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
int wd = inotify_add_watch(fd, tmpname, IN_MODIFY|IN_CREATE);
|
||||
int wd = inotify_add_watch(fd, "/tmp", IN_MODIFY|IN_CREATE);
|
||||
|
||||
while(1) {
|
||||
int length = read(fd, buffer, BUF_LEN);
|
||||
|
@ -221,7 +221,7 @@ static int init_qemu(char *path)
|
|||
char monitor_str[MAX_PATH];
|
||||
char chardev_file[MAX_PATH];
|
||||
char* qemu_str = "qemu-system-x86_64";
|
||||
char* qemu_argv[] = {qemu_str, "-nographic", "-smp", "1", "-m", "2G", "-net", "nic,model=rtl8139", "-net", hostfwd, "-chardev", chardev_file, "-device", "pci-serial,chardev=gnc0", "-monitor", monitor_str, "-kernel", loader_path, "-initrd", path, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
||||
char* qemu_argv[] = {qemu_str, "-s", "-nographic", "-smp", "1", "-m", "2G", "-net", "nic,model=rtl8139", "-net", hostfwd, "-chardev", chardev_file, "-device", "pci-serial,chardev=gnc0", "-monitor", monitor_str, "-kernel", loader_path, "-initrd", path, NULL, NULL, NULL, NULL, NULL, NULL, NULL};
|
||||
|
||||
str = getenv("HERMIT_CPUS");
|
||||
if (str)
|
||||
|
|
Loading…
Add table
Reference in a new issue