| 1485 | } |
| 1486 | |
| 1487 | static void debug_parent_clear( int argc, const char * * argv ) |
| 1488 | { |
| 1489 | char buf[ 16 ]; |
| 1490 | const char * new_args[ 2 ]; |
| 1491 | int id; |
| 1492 | if ( argc < 2 ) |
| 1493 | { |
| 1494 | debug_error( "Missing argument to clear." ); |
| 1495 | return; |
| 1496 | } |
| 1497 | else if ( argc > 2 ) |
| 1498 | { |
| 1499 | debug_error( "Too many arguments to clear." ); |
| 1500 | return; |
| 1501 | } |
| 1502 | id = get_breakpoint_by_name( argv[ 1 ] ); |
| 1503 | if ( id == 0 ) |
| 1504 | { |
| 1505 | debug_error( "No breakpoint at %s.", argv[ 1 ] ); |
| 1506 | return; |
| 1507 | } |
| 1508 | |
| 1509 | if ( debug_interface == DEBUG_INTERFACE_CONSOLE ) |
| 1510 | { |
| 1511 | printf( "Deleted breakpoint %d\n", id ); |
| 1512 | } |
| 1513 | |
| 1514 | sprintf( buf, "%d", id ); |
| 1515 | new_args[ 0 ] = "delete"; |
| 1516 | new_args[ 1 ] = buf; |
| 1517 | debug_parent_delete( 2, new_args ); |
| 1518 | } |
| 1519 | |
| 1520 | static void debug_parent_print( int argc, const char * * argv ) |
| 1521 | { |
nothing calls this directly
no test coverage detected