Mercurial > repos > blastem
comparison debug.c @ 919:38dca41f151d
Initialize commands field of breakpoint struct to NULL. Remove a debug printf
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 17 Jan 2016 14:36:25 -0800 |
parents | bacd67a82d58 |
children | f33e8d88ab6f |
comparison
equal
deleted
inserted
replaced
918:2e465934bddc | 919:38dca41f151d |
---|---|
526 switch(input_buf[0]) | 526 switch(input_buf[0]) |
527 { | 527 { |
528 case 'c': | 528 case 'c': |
529 if (input_buf[1] == 0 || input_buf[1] == 'o' && input_buf[2] == 'n') | 529 if (input_buf[1] == 0 || input_buf[1] == 'o' && input_buf[2] == 'n') |
530 { | 530 { |
531 printf("%X, %X\n", input_buf[1], input_buf[2]); | |
532 puts("Continuing"); | 531 puts("Continuing"); |
533 return 0; | 532 return 0; |
534 } else if (input_buf[1] == 'o' && input_buf[2] == 'm') { | 533 } else if (input_buf[1] == 'o' && input_buf[2] == 'm') { |
535 param = find_param(input_buf); | 534 param = find_param(input_buf); |
536 if (!param) { | 535 if (!param) { |
604 insert_breakpoint(context, value, (uint8_t *)debugger); | 603 insert_breakpoint(context, value, (uint8_t *)debugger); |
605 new_bp = malloc(sizeof(bp_def)); | 604 new_bp = malloc(sizeof(bp_def)); |
606 new_bp->next = breakpoints; | 605 new_bp->next = breakpoints; |
607 new_bp->address = value; | 606 new_bp->address = value; |
608 new_bp->index = bp_index++; | 607 new_bp->index = bp_index++; |
608 new_bp->commands = NULL; | |
609 breakpoints = new_bp; | 609 breakpoints = new_bp; |
610 printf("68K Breakpoint %d set at %X\n", new_bp->index, value); | 610 printf("68K Breakpoint %d set at %X\n", new_bp->index, value); |
611 } | 611 } |
612 break; | 612 break; |
613 case 'a': | 613 case 'a': |