| 459 | } |
| 460 | |
| 461 | void debug_on_instruction( FRAME * frame, OBJECT * file, int line ) |
| 462 | { |
| 463 | int breakpoint_id; |
| 464 | assert( debug_is_debugging() ); |
| 465 | if ( debug_state == DEBUG_NEXT && |
| 466 | ( debug_depth < 0 || ( debug_depth == 0 && debug_line != line ) ) ) |
| 467 | { |
| 468 | debug_file = file; |
| 469 | debug_line = line; |
| 470 | debug_frame = frame; |
| 471 | debug_end_stepping(); |
| 472 | } |
| 473 | else if ( debug_state == DEBUG_STEP && debug_line != line ) |
| 474 | { |
| 475 | debug_file = file; |
| 476 | debug_line = line; |
| 477 | debug_frame = frame; |
| 478 | debug_end_stepping(); |
| 479 | } |
| 480 | else if ( debug_state == DEBUG_FINISH && debug_depth < 0 ) |
| 481 | { |
| 482 | debug_file = file; |
| 483 | debug_line = line; |
| 484 | debug_frame = frame; |
| 485 | debug_end_stepping(); |
| 486 | } |
| 487 | else if ( ( debug_file == NULL || ! object_equal( file, debug_file ) || |
| 488 | line != debug_line || debug_depth != 0 ) && |
| 489 | ( breakpoint_id = handle_line_breakpoint( file, line ) ) ) |
| 490 | { |
| 491 | debug_file = file; |
| 492 | debug_line = line; |
| 493 | debug_frame = frame; |
| 494 | debug_on_breakpoint( breakpoint_id ); |
| 495 | } |
| 496 | else if ( ( debug_state == DEBUG_RUN || debug_state == DEBUG_FINISH ) && |
| 497 | ( debug_depth < 0 || ( debug_depth == 0 && debug_line != line ) ) ) |
| 498 | { |
| 499 | debug_file = NULL; |
| 500 | debug_line = 0; |
| 501 | } |
| 502 | } |
| 503 | |
| 504 | void debug_on_enter_function( FRAME * frame, OBJECT * name, OBJECT * file, int line ) |
| 505 | { |
no test coverage detected