| 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); |