/[qemu]/qemu/gdbstub.c
ViewVC logotype

Diff of /qemu/gdbstub.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.5 by bellard, Tue Sep 30 21:04:53 2003 UTC revision 1.6 by bellard, Sun Oct 5 14:28:56 2003 UTC
# Line 437  int cpu_gdbstub(void *opaque, int (*main Line 437  int cpu_gdbstub(void *opaque, int (*main
437                  goto breakpoint_error;                  goto breakpoint_error;
438              }              }
439              break;              break;
440            case 'Q':
441                if (!strncmp(p, "Tinit", 5)) {
442                    /* init traces */
443                    put_packet("OK");
444                } else if (!strncmp(p, "TStart", 6)) {
445                    /* start log (gdb 'tstart' command) */
446                    cpu_set_log(CPU_LOG_ALL);
447                    put_packet("OK");
448                } else if (!strncmp(p, "TStop", 5)) {
449                    /* stop log (gdb 'tstop' command) */
450                    cpu_set_log(0);
451                    put_packet("OK");
452                } else {
453                    goto unknown_command;
454                }
455                break;
456          default:          default:
457            unknown_command:
458              /* put empty packet */              /* put empty packet */
459              buf[0] = '\0';              buf[0] = '\0';
460              put_packet(buf);              put_packet(buf);

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26