symbian-qemu-0.9.1-12/qemu-symbian-svp/gdbstub.c
changeset 106 3bc1a978be44
parent 1 2fb8b9db1c86
equal deleted inserted replaced
105:70ccc05e6c8c 106:3bc1a978be44
  2289 
  2289 
  2290     port_num = strtol(port, &p, 10);
  2290     port_num = strtol(port, &p, 10);
  2291     if (*p == 0) {
  2291     if (*p == 0) {
  2292         /* A numeric value is interpreted as a port number.  */
  2292         /* A numeric value is interpreted as a port number.  */
  2293         snprintf(gdbstub_port_name, sizeof(gdbstub_port_name),
  2293         snprintf(gdbstub_port_name, sizeof(gdbstub_port_name),
  2294                  "tcp::%d,nowait,nodelay,server", port_num);
  2294                  "tcp:127.0.0.1:%d,nowait,nodelay,server", port_num);
  2295         port = gdbstub_port_name;
  2295         port = gdbstub_port_name;
  2296     }
  2296     }
  2297 
  2297 
  2298     chr = qemu_chr_open("gdb", port);
  2298     chr = qemu_chr_open("gdb", port);
  2299     if (!chr)
  2299     if (!chr)