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

Function debug_parent_break

src/engine/debugger.cpp:1382–1410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1380}
1381
1382static void debug_parent_break( int argc, const char * * argv )
1383{
1384 int id;
1385 if ( argc < 2 )
1386 {
1387 debug_error( "Missing argument to break." );
1388 return;
1389 }
1390 else if ( argc > 2 )
1391 {
1392 debug_error( "Too many arguments to break." );
1393 return;
1394 }
1395 id = debug_add_breakpoint( argv[ 1 ] );
1396 debug_parent_forward_nowait( argc, argv, 1, 0 );
1397 if ( debug_interface == DEBUG_INTERFACE_CONSOLE )
1398 {
1399 printf( "Breakpoint %d set at %s\n", id, argv[ 1 ] );
1400 }
1401 else if ( debug_interface == DEBUG_INTERFACE_MI )
1402 {
1403 debug_mi_format_token();
1404 printf( "^done\n(gdb) \n" );
1405 }
1406 else
1407 {
1408 assert( !"wrong value of debug_interface." );
1409 }
1410}
1411
1412int check_breakpoint_fn_args( int argc, const char * * argv )
1413{

Callers

nothing calls this directly

Calls 4

debug_errorFunction · 0.85
debug_add_breakpointFunction · 0.85
debug_mi_format_tokenFunction · 0.85

Tested by

no test coverage detected