MCPcopy Create free account
hub / github.com/boostorg/build / debug_parent_clear

Function debug_parent_clear

src/engine/debugger.cpp:1487–1518  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1485}
1486
1487static 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
1520static void debug_parent_print( int argc, const char * * argv )
1521{

Callers

nothing calls this directly

Calls 3

debug_errorFunction · 0.85
get_breakpoint_by_nameFunction · 0.85
debug_parent_deleteFunction · 0.85

Tested by

no test coverage detected